{
  "openapi": "3.1.0",
  "info": {
    "title": "Easymailing API",
    "description": "The Easymailing API provides a comprehensive set of RESTful endpoints that allow you to programmatically manage campaigns, audiences, subscribers, statistics, and more.  \nBuilt around REST principles, the API features predictable resource-oriented URLs, standard HTTP response codes, and commonly used methods such as GET, POST, PUT, and DELETE.  \nThis documentation outlines all available REST API methods, complete with example requests and responses. Additionally, you can import this documentation into tools like Postman to test and interact with the API using your personal authentication token.  \n\nIf you need additional functionality that the API doesn't currently support, please [contact us](https://ayuda.easymailing.com).\n\n### Cross-Origin Resource Sharing (CORS)  \nThe Easymailing API is designed to be accessed from server-side applications only. Client-side requests are not permitted.  \n\n### Authentication  \nThe Easymailing API supports two authentication methods:\n\n#### Option 1: API Key (recommended for direct integrations)  \nAPI keys are the quickest way to implement machine-to-machine authentication. Use this method when building your own integrations with Easymailing.  \n- Use the `X-Auth-Token` header to provide your API key in each request.  \n- You can generate your API key in the Easymailing control panel under **Config > API Keys**.  \n\nExample request:  \n```bash\ncurl -X GET 'https://api.easymailing.com/my_suscription' \\\n     --header 'Content-Type: application/ld+json' \\\n     --header 'X-Auth-Token: <YOUR_API_KEY>'\n```\n\n#### Option 2: OAuth2 Bearer Token (for third-party apps)  \nIf you are building a third-party application that connects to Easymailing on behalf of users, use OAuth2 authentication. Users authorize your app through the OAuth2 flow, and your app receives an access token to make API requests on their behalf.  \n- Use the `Authorization` header with the Bearer token.  \n- Refer to our [OAuth2 documentation](https://developers.easymailing.com/oauth) for details on implementing the authorization flow.  \n\nExample request:  \n```bash\ncurl -X GET 'https://api.easymailing.com/my_suscription' \\\n     --header 'Content-Type: application/ld+json' \\\n     --header 'Authorization: Bearer <ACCESS_TOKEN>'\n```",
    "contact": {
      "name": "API Support",
      "url": "https://ayuda.easymailing.com/hc/es/requests/new",
      "email": "-"
    },
    "version": "v1.1",
    "x-logo": {
      "url": "https://developers.easymailing.com/build/files/logo_easymailing.png",
      "altText": "Easymailinglogo"
    }
  },
  "servers": [
    {
      "url": "https://api.easymailing.com",
      "description": "Server"
    }
  ],
  "paths": {
    "/ai_agents": {
      "get": {
        "operationId": "list_ai_agents",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgent collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAgent-ai_agent.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `status` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List AI agents",
        "description": "Lists the AI agents of the account, the last changed first, without their definition: name, description, state, version, who can use them, which tools they have, how many automations use them and what they spent in the last 30 days.\n\n**What an agent is:** a helper of the account that is set up once (instructions, tools, limits) and then used wherever it is needed: in an automation step, or asked directly with `run_ai_agent`.\n\n**When to use:** To find an agent by name or state before reading it with `get_ai_agent`, or before asking it something with `run_ai_agent`. Also to check that an agent with a similar purpose does not exist before creating another one.\n\n**When not to use:** To read the instructions and tools of one agent use `get_ai_agent`: the list leaves the definition out. Automations that use an agent are `list_workflows`; classic automations are `list_automations`.\n\n**Filters:** All filters are optional and combine with AND.\n- `search`: part of the name, case-insensitive; surrounding spaces are ignored (up to 120 characters).\n- `status`: only agents in that state. Without it the list has every agent except the archived ones; send `archived` to see those.\nSorting: fixed, last changed first; there is no `order` parameter.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100), like the rest of the API; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Part of the name of the agent, case-insensitive. Up to 120 characters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "investigador"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only agents in this state. Without it, every agent but the archived ones.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/AiAgentStatus"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "published"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Agents per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "ai agent",
            "ai agents",
            "list agents",
            "find an agent",
            "assistants of the account",
            "researcher agent"
          ],
          "es": [
            "agente de ia",
            "agentes de ia",
            "asistentes de la cuenta",
            "agente investigador"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `status` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "201": {
            "description": "AiAgent resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent-ai_agent.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`ai_agent_automatic_write_not_allowed`: The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: A field of the agent is not valid: `name` over 120 characters, `description` over 500, `icon` that is not a key like `agent-spark`, `access` outside `team` / `managers`, or `period_cap` that is not a positive `{amount, currency}` in EUR. Read `violations[].propertyPath`.\n\n`ai_agent_definition_invalid`: The definition in `draft` is not valid. `violations[].propertyPath` gives the path (for example `draft.tools[1].type`) and `violations[].code` the reason: `invalid_type`, `invalid_value`, `too_long`, `too_many`, `required`, `out_of_range`, `unknown_field`, `unknown_tool`, `duplicate_tool`, `invalid_domain` or `duplicate_domain`. Nothing was saved; fix that part and send it again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create an AI agent as a draft",
        "description": "Creates an AI agent as a DRAFT: it is saved, but nothing runs from it and no automation can use it until it is published with `publish_ai_agent`. Everything is optional; what is not sent takes its default (no instructions, no tools, limits of 10 tool calls, 120 seconds and 0.25 EUR per task, access for the whole team, no own cap).\n\n**When to use:** To save a new agent. To start from an idea, call `propose_ai_agent` first and send its answer here (it has the same keys). To improve an agent that already exists, use `update_ai_agent`.\n\n**When not to use:** Do not create a second agent when `list_ai_agents` shows one with the same purpose: improve that one. Creating does not publish and does not spend anything; to try the draft use `run_ai_agent` with `version: draft`.\n\n**Side effects:** The agent appears in Settings › AI agents of Easymailing as a draft, created by the person who owns the token. Nothing is published, sent or charged. When Maia makes the request, it cannot set a tool that writes in `auto` (automatic) mode (see the errors).\n\n**Permissions:** Requires the `automations.manage` capability. It also needs AI in the plan (`maia.access`). The account must also have CRM Pro.",
        "parameters": [],
        "requestBody": {
          "description": "The new AiAgent resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgent.AiAgentCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgent.AiAgentCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create ai agent",
            "new agent",
            "build an agent",
            "set up an assistant",
            "researcher agent"
          ],
          "es": [
            "crear agente de ia",
            "montar un agente",
            "configurar un asistente",
            "agente investigador"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 403,
            "code": "ai_agent_automatic_write_not_allowed",
            "meaning": "The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "A field of the agent is not valid: `name` over 120 characters, `description` over 500, `icon` that is not a key like `agent-spark`, `access` outside `team` / `managers`, or `period_cap` that is not a positive `{amount, currency}` in EUR. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "ai_agent_definition_invalid",
            "meaning": "The definition in `draft` is not valid. `violations[].propertyPath` gives the path (for example `draft.tools[1].type`) and `violations[].code` the reason: `invalid_type`, `invalid_value`, `too_long`, `too_many`, `required`, `out_of_range`, `unknown_field`, `unknown_tool`, `duplicate_tool`, `invalid_domain` or `duplicate_domain`. Nothing was saved; fix that part and send it again."
          }
        ]
      }
    },
    "/ai_agents/actions/propose": {
      "post": {
        "operationId": "propose_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgentProposal resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentProposal.jsonld-ai_agent_proposal.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentProposal-ai_agent_proposal.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`ai_credits_exhausted`: The included AI balance is used up and extra spending is off. Nothing was spent or started. An administrator can turn on extra spending in Settings › Plan.\n\n`ai_overage_exhausted`: The extra spending limit is reached. An administrator can raise it in Settings › Plan.\n\n`ai_agents_cap_reached`: The cap for all agents in this billing period is reached. An administrator can raise it in Settings › Plan; it starts again with the next period.\n\n`ai_overage_unlimited`: The account has extra spending without a limit, which agents do not use. An administrator has to set a limit in Settings › Plan.\n\n`ai_payment_pending`: There is an unpaid charge for extra spending that blocks new AI use. An administrator has to pay it; it is never reported as «balance used up».",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: `description` is missing, empty or longer than 2,000 characters. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "502": {
            "description": "`ai_output_invalid`: The model did not return a proposal that could be cleaned into a valid agent. The call is charged. Describe the agent with more detail and try once more.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`ai_unavailable`: The AI provider failed after three attempts. Nothing is charged for a failed call. Retry in a minute; do not retry in a loop.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Propose an AI agent from a description",
        "description": "Turns a description into a proposal of agent: name, description, icon, instructions, tools and limits. THE PROPOSAL IS NOT SAVED: nothing is created. It has the same keys as the body of `create_ai_agent`, so it can be sent there as it is, or after changing it.\n\nThe proposal is cleaned before it is returned: it only has tools that exist, with valid values, and never connects anything or uploads files. If the description needs something the account cannot do (for example, writing to an external app), the answer says so in `warnings` and leaves it out.\n\n**When to use:** When the user describes an agent in words and you want a good starting definition («create an agent that researches the companies from the form»). Then show it to the user, create it with `create_ai_agent` and, once tried, publish it.\n\n**When not to use:** To save an agent whose definition you already know, use `create_ai_agent` directly. To improve an existing agent, read it with `get_ai_agent` and change it with `update_ai_agent`; this operation always starts from scratch. Do not call it again just to get a different wording: every call is charged.\n\n**Side effects:** IT SPENDS AI BALANCE: one AI call, charged to the shared balance of the account (and to the cap of agents, if there is one) and shown as authoring help in the breakdown of the period. The balance is checked before the call. A call that fails is not charged. Nothing else changes.\n\n**Permissions:** Requires the `automations.manage` capability. It also needs AI in the plan (`maia.access`). The account must also have CRM Pro.",
        "parameters": [],
        "requestBody": {
          "description": "The new AiAgentProposal resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgentProposal.AiAgentProposeInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgentProposal.AiAgentProposeInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "propose ai agent",
            "suggest an agent",
            "create agent from a description",
            "agent from a prompt",
            "draft an agent with ai"
          ],
          "es": [
            "proponer agente de ia",
            "crear agente desde una descripción",
            "agente desde un prompt",
            "redactar un agente con ia"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 409,
            "code": "ai_credits_exhausted",
            "meaning": "The included AI balance is used up and extra spending is off. Nothing was spent or started. An administrator can turn on extra spending in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_overage_exhausted",
            "meaning": "The extra spending limit is reached. An administrator can raise it in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_agents_cap_reached",
            "meaning": "The cap for all agents in this billing period is reached. An administrator can raise it in Settings › Plan; it starts again with the next period."
          },
          {
            "status": 409,
            "code": "ai_overage_unlimited",
            "meaning": "The account has extra spending without a limit, which agents do not use. An administrator has to set a limit in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_payment_pending",
            "meaning": "There is an unpaid charge for extra spending that blocks new AI use. An administrator has to pay it; it is never reported as «balance used up»."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "`description` is missing, empty or longer than 2,000 characters. Read `violations[].propertyPath`."
          },
          {
            "status": 502,
            "code": "ai_output_invalid",
            "meaning": "The model did not return a proposal that could be cleaned into a valid agent. The call is charged. Describe the agent with more detail and try once more."
          },
          {
            "status": 503,
            "code": "ai_unavailable",
            "meaning": "The AI provider failed after three attempts. Nothing is charged for a failed call. Retry in a minute; do not retry in a loop."
          }
        ]
      }
    },
    "/ai_agents/{uuid}": {
      "get": {
        "operationId": "get_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgent resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent-ai_agent.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an AI agent",
        "description": "Reads one AI agent: its draft (the definition being edited) and its current published version (the one that runs), with the state, who can use it, its spend cap and how much it is used.\n\n**Draft and published:** `draft` is what `update_ai_agent` changes and nothing runs from it until it is published. `published` is the frozen version that automations and `run_ai_agent` use. When `unpublished_changes` is true they differ.\n\n**When to use:** To see what an agent does (instructions, tools, limits) before asking it something, improving it or publishing it. Read it before `update_ai_agent`: a key of `draft` that is sent (for example `tools`) replaces that key as a whole.\n\n**When not to use:** To find an agent by name use `list_ai_agents`. To see earlier published versions use `list_ai_agent_versions`. To see what an agent answered, use `get_ai_agent_run`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent. Get it from `list_ai_agents`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "ai agent",
            "get agent",
            "agent instructions",
            "agent tools",
            "agent draft",
            "published agent"
          ],
          "es": [
            "agente de ia",
            "instrucciones del agente",
            "herramientas del agente",
            "borrador del agente",
            "agente publicado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          }
        ]
      },
      "put": {
        "operationId": "update_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgent resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent-ai_agent.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`ai_agent_automatic_write_not_allowed`: The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`ai_agent_archived`: The agent is archived and cannot change. Archiving is not undone through the API; create a new agent, or ask an administrator to restore it in Easymailing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: A field of the agent is not valid: `name` over 120 characters, `description` over 500, `icon` that is not a key like `agent-spark`, `access` outside `team` / `managers`, or `period_cap` that is not a positive `{amount, currency}` in EUR. Read `violations[].propertyPath`.\n\n`ai_agent_definition_invalid`: The definition in `draft` is not valid. `violations[].propertyPath` gives the path (for example `draft.tools[1].type`) and `violations[].code` the reason: `invalid_type`, `invalid_value`, `too_long`, `too_many`, `required`, `out_of_range`, `unknown_field`, `unknown_tool`, `duplicate_tool`, `invalid_domain` or `duplicate_domain`. Nothing was saved; fix that part and send it again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Change the draft of an AI agent",
        "description": "Changes the DRAFT of an agent (and its name, description, icon, access or own cap). Only the fields sent change. Inside `draft`, each key sent (`instructions`, `tools`, `limits`) replaces that key of the draft and the keys not sent are kept: sending only `instructions` keeps the tools and the limits. Nothing is published: the automations and the people who use the agent keep the published version until `publish_ai_agent`.\n\n**When to use:** To improve an agent («make the researcher also look at LinkedIn»): read it with `get_ai_agent`, send the key of `draft` that changes (for example the whole `tools` list with the new tool), try it with `run_ai_agent` (`version: draft`) and publish it. Also to rename it or change who can use it.\n\n**When not to use:** To make the change take effect use `publish_ai_agent` afterwards. To go back to an earlier version, read it with `list_ai_agent_versions` and send its `definition` here. To create a new agent use `create_ai_agent`. An archived agent cannot change.\n\n**Side effects:** Saves the draft; nothing else. No version is created, no automation changes and nothing is charged. There is no version check: if two people save at the same time, the last write wins. Changes to `access` and `period_cap` apply at once, not on publishing. When Maia makes the request, it cannot set a tool that writes in `auto` (automatic) mode (see the errors).\n\n**Permissions:** Requires the `automations.manage` capability. It also needs AI in the plan (`maia.access`). The account must also have CRM Pro.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          }
        ],
        "requestBody": {
          "description": "The updated AiAgent resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgent.AiAgentUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgent.AiAgentUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update ai agent",
            "edit agent",
            "improve an agent",
            "change agent instructions",
            "add a tool to an agent",
            "rename agent"
          ],
          "es": [
            "actualizar agente de ia",
            "cambiar instrucciones del agente",
            "añadir herramienta al agente"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 403,
            "code": "ai_agent_automatic_write_not_allowed",
            "meaning": "The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 409,
            "code": "ai_agent_archived",
            "meaning": "The agent is archived and cannot change. Archiving is not undone through the API; create a new agent, or ask an administrator to restore it in Easymailing."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "A field of the agent is not valid: `name` over 120 characters, `description` over 500, `icon` that is not a key like `agent-spark`, `access` outside `team` / `managers`, or `period_cap` that is not a positive `{amount, currency}` in EUR. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "ai_agent_definition_invalid",
            "meaning": "The definition in `draft` is not valid. `violations[].propertyPath` gives the path (for example `draft.tools[1].type`) and `violations[].code` the reason: `invalid_type`, `invalid_value`, `too_long`, `too_many`, `required`, `out_of_range`, `unknown_field`, `unknown_tool`, `duplicate_tool`, `invalid_domain` or `duplicate_domain`. Nothing was saved; fix that part and send it again."
          }
        ]
      }
    },
    "/ai_agents/{uuid}/actions/archive": {
      "post": {
        "operationId": "archive_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgent resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent-ai_agent.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive an AI agent",
        "description": "Retires an agent: it disappears from the selector of the automation step, it cannot change and it cannot be asked. Its versions and what it spent stay. Archiving an agent that is already archived changes nothing.\n\n**When to use:** When an agent is no longer wanted. Check `used_in` in `get_ai_agent` first.\n\n**When not to use:** To stop using an agent for a while, change `access` or just leave it. To replace it, create or improve another one and move the automations in Easymailing before archiving. There is no way to undo it through the API.\n\n**Side effects:** THE AUTOMATIONS THAT USE THE AGENT STOP: every execution that reaches an «AI agent» step with this agent is blocked with the cause `agent_unavailable` until someone changes the step or the agent is restored in Easymailing. Runs started with `run_ai_agent` that are still going are not interrupted. Nothing is deleted and nothing is charged.\n\n**Permissions:** Requires the `automations.manage` capability. It also needs AI in the plan (`maia.access`). The account must also have CRM Pro. When Maia asks, the person confirms it first in the chat.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "archive ai agent",
            "retire agent",
            "remove agent",
            "disable agent"
          ],
          "es": [
            "archivar agente de ia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          }
        ]
      }
    },
    "/ai_agents/{uuid}/actions/publish": {
      "post": {
        "operationId": "publish_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "201": {
            "description": "AiAgent resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent.jsonld-ai_agent.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgent-ai_agent.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`ai_agent_automatic_write_not_allowed`: The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`ai_agent_archived`: The agent is archived and cannot change. Archiving is not undone through the API; create a new agent, or ask an administrator to restore it in Easymailing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`ai_agent_name_required`: The agent has no name. Set it with `update_ai_agent`.\n\n`ai_agent_definition_invalid`: The draft cannot be published: it has no instructions (`violations[].propertyPath` = `draft.instructions`, code `required`), or another part is not valid as in `update_ai_agent`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Publish an AI agent",
        "description": "Freezes the draft as the next version of the agent (version n+1) and makes it the current one (`published_version`). From then on `run_ai_agent` and new automations use it.\n\n**Automations that already use the agent keep the version they validated:** publishing does not change them. They are brought to the new version in Easymailing, by a person who can see and edit everything the new version touches.\n\n**When to use:** When the draft is ready and has been tried with `run_ai_agent` (`version: draft`). A draft that was never published cannot be asked or used in an automation.\n\n**When not to use:** To save changes without making them live use `update_ai_agent`. Publishing needs a name and instructions: without them the answer is 422. Publishing again a draft with no changes still creates a new version; check `unpublished_changes` first.\n\n**Side effects:** Creates a version and changes what `run_ai_agent` uses. It does not touch running or published automations, sends nothing and charges nothing. It cannot be undone, but the previous version stays in `list_ai_agent_versions` and can be copied back into the draft and published again. When Maia makes the request, it is refused if the draft sets a tool that writes in `auto` (automatic) mode, even when a person set it (see the errors).\n\n**Permissions:** Requires the `automations.manage` capability. It also needs AI in the plan (`maia.access`). The account must also have CRM Pro. When Maia asks, the person confirms it first in the chat.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "publish ai agent",
            "make agent live",
            "release agent version",
            "activate agent"
          ],
          "es": [
            "publicar agente de ia",
            "poner el agente en marcha",
            "publicar versión del agente"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 403,
            "code": "ai_agent_automatic_write_not_allowed",
            "meaning": "The request comes from Maia (header `x-easymailing-agent: maia`) and the definition sets a tool that writes in `auto` (automatic) mode. Maia never does that: a person has to set it in Easymailing › Settings › AI agents. Leave the tool in `approval` mode, or remove it."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 409,
            "code": "ai_agent_archived",
            "meaning": "The agent is archived and cannot change. Archiving is not undone through the API; create a new agent, or ask an administrator to restore it in Easymailing."
          },
          {
            "status": 422,
            "code": "ai_agent_name_required",
            "meaning": "The agent has no name. Set it with `update_ai_agent`."
          },
          {
            "status": 422,
            "code": "ai_agent_definition_invalid",
            "meaning": "The draft cannot be published: it has no instructions (`violations[].propertyPath` = `draft.instructions`, code `required`), or another part is not valid as in `update_ai_agent`."
          }
        ]
      }
    },
    "/ai_agents/{uuid}/runs": {
      "get": {
        "operationId": "list_ai_agent_runs",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgentRun collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AiAgentRun.jsonld-ai_agent_run.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAgentRun-ai_agent_run.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `state` outside the allowed values, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the runs of an AI agent",
        "description": "Lists the runs of an agent started with `run_ai_agent` in the last 30 days, the last one first, with the same fields as `get_ai_agent_run`: state, answer, sources, tools used, cost and cause when it stopped. Each person sees only the runs they started; administrators of automations (`automations.manage`) see every run of the agent.\n\n**When to use:** To find a run whose `uuid` was lost, or to see what an agent has been asked lately and what it cost.\n\n**When not to use:** To follow one run you already started use `get_ai_agent_run` with its `uuid`. Executions of the agent inside automations are not runs: they are in `list_workflow_executions`. Tests made in Easymailing (the «Test» panel of the agent) are not listed.\n\n**Filters:** All filters are optional and combine with AND.\n- `state`: only runs in that state.\nSorting: fixed, last started first; there is no `order` parameter.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100); the total is in `hydra:totalItems`. Runs older than 30 days are not listed.\n\n**Permissions:** Requires the `automations.read` capability. Only the runs the person started, unless they are an administrator of automations (`automations.manage`), who sees them all. What the agent read in the CRM is shown in `tools_used` only for records the reader can see.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          },
          {
            "name": "state",
            "in": "query",
            "description": "Only runs in this state.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/AiAgentRunState"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "completed"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Runs per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "agent runs",
            "list agent runs",
            "agent answers",
            "what the agent answered",
            "agent tasks",
            "lost run"
          ],
          "es": [
            "ejecuciones del agente",
            "listar ejecuciones del agente",
            "respuestas del agente",
            "qué respondió el agente",
            "tareas del agente",
            "ejecución perdida"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `state` outside the allowed values, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "run_ai_agent",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "202": {
            "description": "AiAgentRun resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentRun.jsonld-ai_agent_run.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentRun-ai_agent_run.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability, or the person is not allowed to use this agent (access `managers` needs `automations.manage`; `version: draft` too). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`economic_entitlement_unavailable`: The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`ai_not_included`: The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.\n\n`unknown_record`: The record in `record` does not exist in this account, or the user cannot see it. Nothing was started.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`agent_unavailable`: The agent is archived. Nothing was started. Use another agent from `list_ai_agents`.\n\n`ai_agent_not_published`: `version` is `published` and the agent was never published. Publish it with `publish_ai_agent`, or ask with `version: draft`.\n\n`client_request_reused`: That `client_request_id` was used with a different body. Use a new key for a new task.\n\n`ai_credits_exhausted`: The included AI balance is used up and extra spending is off. Nothing was spent or started. An administrator can turn on extra spending in Settings › Plan.\n\n`ai_overage_exhausted`: The extra spending limit is reached. An administrator can raise it in Settings › Plan.\n\n`ai_agents_cap_reached`: The cap for all agents in this billing period is reached. An administrator can raise it in Settings › Plan; it starts again with the next period.\n\n`ai_agent_cap_reached`: This agent reached its own cap for the period (`period_cap`). Raise it with `update_ai_agent`, or use another agent.\n\n`ai_credits_insufficient`: What is left of the balance or of the cap is less than the maximum cost of one task of this agent (`limits.max_cost`). Add balance or raise the cap, or lower `max_cost` in the draft and publish it.\n\n`ai_overage_unlimited`: The account has extra spending without a limit, which agents do not use. An administrator has to set a limit in Settings › Plan.\n\n`ai_payment_pending`: There is an unpaid charge for extra spending that blocks new AI use. An administrator has to pay it; it is never reported as «balance used up».\n\n`ai_agent_run_confirmation_required`: Reserved: not returned today, because a run asked through the API never writes. When runs can write (with approval), it will mean that the request comes from Maia (header `x-easymailing-agent: maia`), the version that would run has a tool that writes in `auto` (automatic) mode and the body does not carry `confirmed: true`. Nothing is started or charged; confirm with the person and repeat with `confirmed: true`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: `task` is missing, empty or longer than 4,000 characters; `record` is not the IRI of a contact, company or opportunity; `response_format` or `version` outside their values; `fields` missing with `response_format: fields`, over 30 items, with a repeated or invalid `path` or an unknown `type`; or `client_request_id` over 64 characters. Read `violations[].propertyPath`.\n\n`ai_agent_record_needs_crm_read`: `record` was sent but the agent does not have the `crm_read` tool, so it could not read it. Remove `record` and put the facts in `task`, or add the tool to the agent.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Ask an AI agent to do a task",
        "description": "Gives a task to a published agent and starts it. It is ASYNCHRONOUS: the answer is immediate with the run in `queued` state (202); the agent works in the background, searching, reading pages and reading the CRM within its limits, and the result is read with `get_ai_agent_run` until `state` is `completed` or `stopped`. A task usually takes under two minutes.\n\nThe answer is free text, or, with `response_format: fields`, one validated value per field you define. The agent always gives the sources it used and the tools it called.\n\n**When to use:** When the user asks to delegate research or analysis to an agent: «ask the Investigador to look at arenalsalud.es». Pass `record` when the task is about a contact, company or opportunity. Use `version: draft` to try an agent that is still being improved.\n\n**When not to use:** For a single answer that needs no tools or search, use the AI of the product directly. To have the result written into the CRM, create a note or update the record yourself with the answer (`create_note`, `update_company`): through the API an agent only reads. For automatic processing of every new lead, use an automation with an «AI agent» step in Easymailing, not repeated calls here. Do not repeat the call when it seems slow: poll `get_ai_agent_run`, or send a `client_request_id`.\n\n**Side effects:** IT SPENDS AI BALANCE. The agent is charged after each turn, in the same shared balance as Maia and the automations, up to `limits.max_cost` for this task, up to the cap of the agent (`period_cap`) and up to the cap for all agents of the account; extra spending is used only up to its limit. Before starting, the balance, the caps and the plan are checked, and there must be at least `max_cost` left. A run of the draft is charged as a test. The agent only reads: searching the web and opening pages sends nothing to anyone and writes nothing in the CRM. Its tools that write never write in a run asked through the API, whatever their mode: as in the «Test» panel of Easymailing, they say what they would have done (in `tools_used`), and the run never waits for an approval. Runs are kept for 30 days. At most 5 agents work at the same time per account; the rest wait in `queued`.\n\n**Permissions:** Requires the `automations.read` capability. It also needs AI in the plan (`maia.access`) and CRM Pro, and the person must be allowed to use the agent: with access `team`, the `automations.work` capability; with access `managers`, `automations.manage`. `version: draft` always needs `automations.manage`. The agent works with the permissions of the person who owns the token (never more): with `crm_read` it only sees the records that person can see.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent. Get it from `list_ai_agents`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          }
        ],
        "requestBody": {
          "description": "The new AiAgentRun resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgentRun.AiAgentRunInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAgentRun.AiAgentRunInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "run ai agent",
            "ask the agent",
            "delegate a task to an agent",
            "research a company with an agent",
            "agent task",
            "use the researcher"
          ],
          "es": [
            "pedir al agente",
            "ejecutar agente de ia",
            "delegar una tarea a un agente",
            "investigar una empresa con un agente",
            "tarea para el agente",
            "usar el investigador"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability, or the person is not allowed to use this agent (access `managers` needs `automations.manage`; `version: draft` too). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have CRM Pro, and AI agents are part of it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "ai_not_included",
            "meaning": "The plan of the account does not include AI (`maia.access`). Nothing was changed; an administrator has to change the plan."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The record in `record` does not exist in this account, or the user cannot see it. Nothing was started."
          },
          {
            "status": 409,
            "code": "agent_unavailable",
            "meaning": "The agent is archived. Nothing was started. Use another agent from `list_ai_agents`."
          },
          {
            "status": 409,
            "code": "ai_agent_not_published",
            "meaning": "`version` is `published` and the agent was never published. Publish it with `publish_ai_agent`, or ask with `version: draft`."
          },
          {
            "status": 409,
            "code": "client_request_reused",
            "meaning": "That `client_request_id` was used with a different body. Use a new key for a new task."
          },
          {
            "status": 409,
            "code": "ai_credits_exhausted",
            "meaning": "The included AI balance is used up and extra spending is off. Nothing was spent or started. An administrator can turn on extra spending in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_overage_exhausted",
            "meaning": "The extra spending limit is reached. An administrator can raise it in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_agents_cap_reached",
            "meaning": "The cap for all agents in this billing period is reached. An administrator can raise it in Settings › Plan; it starts again with the next period."
          },
          {
            "status": 409,
            "code": "ai_agent_cap_reached",
            "meaning": "This agent reached its own cap for the period (`period_cap`). Raise it with `update_ai_agent`, or use another agent."
          },
          {
            "status": 409,
            "code": "ai_credits_insufficient",
            "meaning": "What is left of the balance or of the cap is less than the maximum cost of one task of this agent (`limits.max_cost`). Add balance or raise the cap, or lower `max_cost` in the draft and publish it."
          },
          {
            "status": 409,
            "code": "ai_overage_unlimited",
            "meaning": "The account has extra spending without a limit, which agents do not use. An administrator has to set a limit in Settings › Plan."
          },
          {
            "status": 409,
            "code": "ai_payment_pending",
            "meaning": "There is an unpaid charge for extra spending that blocks new AI use. An administrator has to pay it; it is never reported as «balance used up»."
          },
          {
            "status": 409,
            "code": "ai_agent_run_confirmation_required",
            "meaning": "Reserved: not returned today, because a run asked through the API never writes. When runs can write (with approval), it will mean that the request comes from Maia (header `x-easymailing-agent: maia`), the version that would run has a tool that writes in `auto` (automatic) mode and the body does not carry `confirmed: true`. Nothing is started or charged; confirm with the person and repeat with `confirmed: true`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "`task` is missing, empty or longer than 4,000 characters; `record` is not the IRI of a contact, company or opportunity; `response_format` or `version` outside their values; `fields` missing with `response_format: fields`, over 30 items, with a repeated or invalid `path` or an unknown `type`; or `client_request_id` over 64 characters. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "ai_agent_record_needs_crm_read",
            "meaning": "`record` was sent but the agent does not have the `crm_read` tool, so it could not read it. Remove `record` and put the facts in `task`, or add the tool to the agent."
          }
        ]
      }
    },
    "/ai_agents/{uuid}/runs/{runUuid}": {
      "get": {
        "operationId": "get_ai_agent_run",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgentRun resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentRun.jsonld-ai_agent_run.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAgentRun-ai_agent_run.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.\n\n`ai_agent_run_not_found`: The run does not exist for this agent, it belongs to someone else and the reader is not an administrator of automations, or it is older than 30 days. A `runUuid` that is not a valid UUID also gives 404.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the result of an AI agent run",
        "description": "Reads a run started with `run_ai_agent`: its state, the answer when it is `completed`, the sources, the tools the agent used, what it cost, how long it worked and, when it was `stopped`, the cause.\n\n**When to use:** After `run_ai_agent`, to get the answer: call it again after `retry_after_ms` while `state` is `queued` or `running`, until it is `completed` or `stopped`. Also to read the cost of a run, or to see why it stopped.\n\n**When not to use:** To start a task use `run_ai_agent`. Runs are kept 30 days; to find one whose `uuid` was lost use `list_ai_agent_runs`. A `waiting_approval` run does not move by polling: a person has to decide in Easymailing. Do not poll faster than `retry_after_ms`.\n\n**Permissions:** Requires the `automations.read` capability. Only the person who started the run, and administrators of automations (`automations.manage`), can read it. What the agent read in the CRM is shown in `tools_used` only for records the reader can see.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          },
          {
            "name": "runUuid",
            "in": "path",
            "description": "UUID of the run, from the answer of `run_ai_agent`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d4a8f3c1-7b52-4e09-8c16-5a2e9d0b4f73"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "agent run",
            "agent result",
            "agent answer",
            "check the agent task",
            "agent cost",
            "why did the agent stop"
          ],
          "es": [
            "resultado del agente",
            "respuesta del agente",
            "comprobar la tarea del agente",
            "coste del agente",
            "por qué se paró el agente",
            "ejecución del agente"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 404,
            "code": "ai_agent_run_not_found",
            "meaning": "The run does not exist for this agent, it belongs to someone else and the reader is not an administrator of automations, or it is older than 30 days. A `runUuid` that is not a valid UUID also gives 404."
          }
        ]
      }
    },
    "/ai_agents/{uuid}/versions": {
      "get": {
        "operationId": "list_ai_agent_versions",
        "tags": [
          "AI agents"
        ],
        "responses": {
          "200": {
            "description": "AiAgentVersion collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AiAgentVersion.jsonld-ai_agent_version.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAgentVersion-ai_agent_version.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`ai_agent_not_found`: The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`page` or `itemsPerPage` outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the versions of an AI agent",
        "description": "Lists the published versions of an agent, the last one first. Each one keeps the definition that was frozen when it was published.\n\n**When to use:** To see how an agent changed over time, or to find the definition of an earlier version, for example to copy it back into the draft with `update_ai_agent`.\n\n**When not to use:** The current version is already in `published` of `get_ai_agent`. A draft is not a version until it is published with `publish_ai_agent`.\n\n**Filters:** Sorting: fixed, last version first. Pagination: `page` and `itemsPerPage` (default 25, maximum 100); the total is in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the agent.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Versions per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "agent versions",
            "agent history",
            "previous version of an agent",
            "published versions"
          ],
          "es": [
            "versiones del agente",
            "historial del agente",
            "versión anterior de un agente",
            "versiones publicadas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "ai_agent_not_found",
            "meaning": "The agent does not exist in this account. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_ai_agents`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`page` or `itemsPerPage` outside their range. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/activities": {
      "get": {
        "operationId": "list_activities",
        "tags": [
          "Activity"
        ],
        "responses": {
          "200": {
            "description": "Activity collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Activity.jsonld-activity.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Activity-activity.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token lacks the capability listed under Permissions for the record you asked for (`contacts.read` for a contact). Use one that has it; the response does not say which permission is missing.\n\n`crm_capability_required`: You asked for a company or an opportunity and the account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: You asked for a company or an opportunity and the user's role lacks the capability listed under Permissions, or the token has no user behind it. Use credentials of a user who has it.\n\n`crm_seat_required`: You asked for a company or an opportunity and the user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The contact, company or opportunity does not exist in this account, the value is not a UUID, or the user cannot see it (for an opportunity, no read access to its pipeline). Find it with `list_contacts`, `list_companies` or `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_activity_invalid_filter`: None of `contact`, `company` and `opportunity` was sent, more than one was sent, or another filter is not valid. Send exactly one record and check `category[]`, `type[]` and the dates.\n\n`crm_activity_invalid_cursor`: `cursor[gt]` is malformed or was issued for another user, record or set of filters. Start again from the first page.\n\nA query parameter is outside its limits: `itemsPerPage` outside 1 to 50, more than 8 categories or 60 types, a category that does not exist, or a date that is not `YYYY-MM-DD`. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the activity of a record",
        "description": "Returns the activity timeline of one contact, company or opportunity, newest first: what happened and who did it, as the Activity tab of the record in the Customer App shows it. It covers changes to the record, tasks, notes, files, emails and meetings linked to it and, for a contact, also its subscriptions, campaign results, automations, orders, forms and surveys.\n\n**When to use:** To know what has happened with a record before acting on it: the last emails and meetings, who changed what, which campaigns it received, how an opportunity moved through its stages. Narrow it with `category[]`, `type[]` and the dates when the record has a long history.\n\n**When not to use:** It is read-only: to add something to the timeline, create a note with `create_note` or a task with `create_task`; the activity is written by the action itself. To read the full text of a note, use `get_note` or `list_notes`; for tasks, `list_tasks`. To read one member's subscription history in an audience, use `list_member_activities`, which is empty in accounts that already use the new Customer App. There is no combined timeline of the whole account: you must name the record.\n\n**Filters:** Exactly one of `contact`, `company` or `opportunity` is required, with the UUID of the record. A UUID that is not valid, does not exist or belongs to a record the user cannot see gives `404`.\n`category[]` and `type[]` keep only those categories and types; `occurred_from` and `occurred_to` keep a range of days in the time zone of the account. The order is fixed (most recent `occurred_at` first); there is no `order` parameter and no text search. A company or an opportunity only has `crm` rows and the `automation` rows of the workflows it went through, so another category gives an empty list.\nVisibility is decided row by row: a task or note row is hidden to a user without `crm.tasks_notes.read` or who cannot see that task, and an email or meeting row is hidden to a user who cannot read that mailbox or calendar. Hidden rows are not removed: they come back with `availability` `unavailable` (or `deleted` when the email or meeting was deleted for good), no `data` and an anonymous actor, so the list never leaks their content. Rows from a Google mailbox or calendar that was disconnected are not returned at all.\nPagination: activity is paged with `itemsPerPage` (default 25, maximum 50) and an opaque `cursor[gt]`: to read the next page, call again with the same record and the same filters and the `cursor[gt]` of the `hydra:next` link of the previous response. The cursor only works for the same user, record and filters. The response gives the total number of rows in `hydra:totalItems`, counted when the first page is read (hidden rows count; rows written afterwards do not change it); keep following `hydra:next` until a page comes back empty.\n\n**Permissions:** Requires any of the `contacts.read`, `crm.contacts_companies.read` or `crm.opportunities.read` capabilities. Reading a contact requires the `contacts.read` capability; no CRM seat is needed. The rows of the `crm` category (company, owner, opportunities, tasks, notes, files, emails and meetings) are included only if the user also has a CRM seat and `crm.contacts_companies.read`; without them they are left out silently. Reading a company requires a CRM seat and `crm.contacts_companies.read`. Reading an opportunity requires a CRM seat, `crm.opportunities.read` and read access to its pipeline.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: its activity. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: its activity. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: its activity. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "category[]",
            "in": "query",
            "description": "Keep only these categories (up to 8). Repeat the parameter to send several: `category[]=marketing&category[]=crm`. Values are combined with OR. Without it, every category the user can see is returned.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EntityActivityCategory"
              }
            },
            "style": "form",
            "explode": true,
            "allowReserved": false,
            "example": [
              "marketing",
              "crm"
            ]
          },
          {
            "name": "type[]",
            "in": "query",
            "description": "Keep only these activity types, for example `marketing.email.campaign` or `opportunity.stage_changed` (up to 60, each up to 190 characters). Repeat the parameter to send several. Values are combined with OR and with the category filter by AND.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true,
            "allowReserved": false,
            "example": [
              "note.created",
              "task.completed"
            ]
          },
          {
            "name": "occurred_from",
            "in": "query",
            "description": "First day to include, `YYYY-MM-DD`, in the time zone of the account.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-10-01"
          },
          {
            "name": "occurred_to",
            "in": "query",
            "description": "Last day to include, `YYYY-MM-DD`, in the time zone of the account, until 23:59:59.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-10-31"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Activities per page. Default 25, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same record and the same filters, as the same user.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "q3F0aGlzLWlzLW5vdC1hLXJlYWwtY3Vyc29y"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "activity",
            "timeline",
            "history",
            "record history",
            "activity feed",
            "what happened",
            "last interactions",
            "audit trail",
            "contact history",
            "company history",
            "deal history",
            "record timeline"
          ],
          "es": [
            "actividad",
            "línea de tiempo",
            "historial",
            "historial del contacto",
            "historial de la empresa",
            "qué ha pasado",
            "últimas interacciones",
            "movimientos",
            "seguimiento",
            "historial del negocio",
            "timeline"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token lacks the capability listed under Permissions for the record you asked for (`contacts.read` for a contact). Use one that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "You asked for a company or an opportunity and the account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "You asked for a company or an opportunity and the user's role lacks the capability listed under Permissions, or the token has no user behind it. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "You asked for a company or an opportunity and the user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The contact, company or opportunity does not exist in this account, the value is not a UUID, or the user cannot see it (for an opportunity, no read access to its pipeline). Find it with `list_contacts`, `list_companies` or `list_opportunities`."
          },
          {
            "status": 422,
            "code": "crm_activity_invalid_filter",
            "meaning": "None of `contact`, `company` and `opportunity` was sent, more than one was sent, or another filter is not valid. Send exactly one record and check `category[]`, `type[]` and the dates."
          },
          {
            "status": 422,
            "code": "crm_activity_invalid_cursor",
            "meaning": "`cursor[gt]` is malformed or was issued for another user, record or set of filters. Start again from the first page."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A query parameter is outside its limits: `itemsPerPage` outside 1 to 50, more than 8 categories or 60 types, a category that does not exist, or a date that is not `YYYY-MM-DD`. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/activity_history_status": {
      "get": {
        "operationId": "get_activity_history_status",
        "tags": [
          "Activity"
        ],
        "responses": {
          "200": {
            "description": "ActivityHistoryStatus resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityHistoryStatus.jsonld-activity_history_status.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityHistoryStatus-activity_history_status.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token has none of the capabilities listed under Permissions. Use one that has one of them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Check if the old activity is still loading",
        "description": "Tells whether the account's earlier activity history is still being copied into the new timeline. While `loading` is `true`, `list_activities` can be missing older events of contacts.\n\n**When to use:** Before telling someone that a contact has no earlier history, or when `list_activities` shows less than expected for an account that has just moved to the new Customer App.\n\n**When not to use:** It says nothing about a particular record; to read the activity of one, use `list_activities`.\n\n**Permissions:** Requires any of the `contacts.read`, `crm.contacts_companies.read` or `crm.opportunities.read` capabilities. No CRM seat is needed.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "old activity still loading",
            "activity import status",
            "is the backlog ready",
            "timeline complete"
          ],
          "es": [
            "actividad antigua cargando",
            "importación de actividad",
            "ya está listo lo antiguo",
            "actividad completa"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token has none of the capabilities listed under Permissions. Use one that has one of them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/async_tasks": {
      "get": {
        "operationId": "list_async_tasks",
        "tags": [
          "Async tasks"
        ],
        "responses": {
          "200": {
            "description": "AsyncTask collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AsyncTask.jsonld-async_task.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AsyncTask-async_task.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List async tasks",
        "description": "Returns the background tasks of the account, newest first, each with its type, status and progress. A task is created when you call one of the asynchronous operations on groups and segments (for example `async_task_group_export` or `async_task_segment_add_to_group`).\n\n**When to use:** To find a task whose UUID you did not keep, or to see what is still running.\n\n**When not to use:** To follow one task whose UUID you know use `get_async_task`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "background jobs",
            "job queue",
            "long running operations",
            "export status"
          ],
          "es": [
            "tareas en segundo plano",
            "procesos asíncronos",
            "cola de trabajos",
            "estado de exportaciones"
          ]
        }
      }
    },
    "/async_tasks/{uuid}": {
      "get": {
        "operationId": "get_async_task",
        "tags": [
          "Async tasks"
        ],
        "responses": {
          "200": {
            "description": "AsyncTask resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AsyncTask.jsonld-async_task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AsyncTask-async_task.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The task does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an async task",
        "description": "Returns the state of one background task: its status, how many items were processed or failed, the progress and, if it failed, the error. For exports it also gives a temporary address (valid 15 minutes) to download the file.\n\n**When to use:** After calling an asynchronous operation (those whose `operationId` starts with `async_task_`): it returns a task at once, not the result. Repeat this call every few seconds until `status` is `completed` or `failed`; then use `result_meta` or `result_file_url`. Do not assume the work is done before that.\n\n**When not to use:** To follow a batch of API calls use `get_batch_operation`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task: the `uuid` returned by the operation that started it, or found with `list_async_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6b1e4d90-2a73-4c58-8f0b-e5d9a3c71f24"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "job status",
            "poll task",
            "export download",
            "progress",
            "background job result"
          ],
          "es": [
            "estado de la tarea",
            "consultar resultado",
            "descargar exportación",
            "progreso",
            "resultado del proceso"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments": {
      "get": {
        "operationId": "list_audience_segments",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "200": {
            "description": "ListSegment collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ListSegment-list_segment.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List audience segments",
        "description": "Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Lists the saved segments of one audience, newest first, each with its conditions and how many members match it. A segment is a saved filter whose members update by themselves as data changes.\n\n**When to use:** To find a segment to use in a campaign or in a bulk action, or to see how an audience is sliced by rules.\n\n**When not to use:** For the segments Customer App shows (global, over contacts), use `list_contact_segments`. For labels you assign by hand, use groups: `list_audience_groups`. To see the fields you can filter on, use `list_audience_condition_fields`.\n\n**Filters:** `name` and `description`: partial match on the text. Sorting: `order[field]=asc|desc` with `createdAt`, `updatedAt` or `name`; default `createdAt` descending.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "name",
            "in": "query",
            "description": "Part of the segment name. Returns the segments whose name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Spain"
          },
          {
            "name": "description",
            "in": "query",
            "description": "Part of the segment description. Returns the segments whose description contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "located"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "UUID of an audience. Redundant here, because the audience is already in the path.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": true,
        "x-mcp-keywords": {
          "en": [
            "saved filters",
            "dynamic lists",
            "smart lists",
            "audience filters",
            "legacy segment"
          ],
          "es": [
            "filtros guardados",
            "segmentos",
            "listas dinámicas",
            "segmentación",
            "segmento antiguo"
          ]
        }
      },
      "post": {
        "operationId": "create_audience_segment",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment-list_segment.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an audience segment",
        "description": "Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Creates a saved segment: a filter with up to five conditions on member data (country, custom fields, campaign activity, groups, purchases...). Members who match are computed and kept up to date by themselves.\n\n**When to use:** When the user wants to target or act on a slice of an audience defined by rules, for example everyone in Spain who opened the last campaign. First read the available fields with `list_audience_condition_fields`.\n\n**When not to use:** To create a segment that Customer App shows and campaigns can use, use `create_contact_segment` (its fields come from `list_contact_filter_fields`). For a label you assign by hand, create a group with `create_audience_group`. For a one-off rule that adds people to a group, use `async_task_group_add_from_conditions`, which needs no saved segment.\n\n**Side effects:** The member count (`subscriber_count`) is calculated in the background, so it can be empty right after creating the segment. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields. A segment has 1 to 5 conditions.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to create the segment in. If the account has several audiences, confirm with the user which one. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new ListSegment resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListSegment-list_segment.write"
              }
            }
          },
          "required": true
        },
        "deprecated": true,
        "x-mcp-keywords": {
          "en": [
            "new filter",
            "create smart list",
            "audience filter",
            "target by rules",
            "legacy segment"
          ],
          "es": [
            "crear segmento",
            "nuevo filtro",
            "segmentar suscriptores",
            "crear filtro guardado",
            "segmento antiguo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}": {
      "get": {
        "operationId": "get_audience_segment",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "200": {
            "description": "ListSegment resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment-list_segment.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an audience segment",
        "description": "Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Returns one segment with its conditions (field, operator and value) and the number of members that match.\n\n**When to use:** To read the rules of a segment you already know before using or changing it.\n\n**When not to use:** For a contact segment, use `get_contact_segment`. To find a segment by name, use `list_audience_segments` with the `name` filter. To see the matching people, use the segment in a campaign or export it with `async_task_segment_export`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "deprecated": true,
        "x-mcp-keywords": {
          "en": [
            "segment conditions",
            "filter rules",
            "segment size",
            "legacy segment"
          ],
          "es": [
            "condiciones del segmento",
            "reglas del filtro",
            "cuántos hay en el segmento",
            "segmento antiguo"
          ]
        }
      },
      "put": {
        "operationId": "update_audience_segment",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "200": {
            "description": "ListSegment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment-list_segment.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an audience segment",
        "description": "Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Changes the name, description, match mode or conditions of a segment. The conditions you send replace all the existing ones.\n\n**When to use:** To rename a segment or change the rules it uses.\n\n**When not to use:** To change a contact segment, use `update_contact_segment`. There is no conversion of an old segment into a contact segment: create the new one with the same conditions. To create a new segment, use `create_audience_segment`. Members cannot be edited here: they are whoever matches the conditions.\n\n**Side effects:** The member count is recalculated in the background, so it can lag right after the change.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "requestBody": {
          "description": "The updated ListSegment resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListSegment.jsonld-list_segment.write.update_audience_segment"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListSegment-list_segment.write.update_audience_segment"
              }
            }
          },
          "required": true
        },
        "deprecated": true,
        "x-mcp-keywords": {
          "en": [
            "edit segment",
            "change filter rules",
            "modify conditions",
            "legacy segment"
          ],
          "es": [
            "editar segmento",
            "cambiar condiciones del segmento",
            "modificar filtro",
            "segmento antiguo"
          ]
        }
      },
      "delete": {
        "operationId": "delete_audience_segment",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "204": {
            "description": "ListSegment resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an audience segment",
        "description": "Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Permanently deletes the segment definition. The members it selected are not affected. Campaigns that were aimed at it lose their segment.\n\n**When to use:** Only when the user explicitly wants the saved filter to disappear.\n\n**When not to use:** To delete a contact segment, use `delete_contact_segment`. To delete the people it selects, use `async_task_segment_delete_contacts`. To unsubscribe them, use `async_task_segment_unsubscribe`.\n\n**Side effects:** Email and SMS campaigns that targeted this segment keep their \"send to a segment\" setting but lose the segment (it is set to empty). Nothing stops the deletion if a campaign is scheduled: when it is sent, it fails with `Campaign can not be sent: No active suscribers found` and the campaign goes to `error` status, until you choose another segment or group. No webhook fires.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "deprecated": true,
        "x-mcp-keywords": {
          "en": [
            "remove segment",
            "drop filter",
            "legacy segment"
          ],
          "es": [
            "borrar segmento",
            "eliminar filtro guardado",
            "segmento antiguo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}/actions/add_to_group": {
      "post": {
        "operationId": "async_task_segment_add_to_group",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "`group_uuid` is missing, or the group belongs to a different audience than the segment. Send a group of the same audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment or group does not exist in this audience. Check the segment UUID with `list_audience_segments` and the group UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Add segment members to a group",
        "description": "Starts a background job that adds to a group every member who currently matches the segment. Members already in the group are skipped. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To turn the people a segment selects into a fixed group, for example to keep a snapshot or to start an automation that triggers when someone joins the group.\n\n**When not to use:** It only accepts old audience segments (`list_audience_segments`), never contact segments. For one member, use `member_add_from_group`. For a rule you do not want to save as a segment, use `async_task_group_add_from_conditions`. To remove them instead, use `async_task_segment_remove_from_group`.\n\n**Side effects:** Starts an async task. For each member added, an entry is recorded in the member's activity and the automations triggered by joining a group fire; the group's member count is refreshed. It does not fire the `member_added_to_group` webhook. `result_meta.added` holds the number of members added.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "group_uuid"
                ],
                "properties": {
                  "group_uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the group that receives the members. It must belong to the same audience as the segment. The key is camelCase. Get it from `list_audience_groups`.",
                    "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
                  }
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "tag segment",
            "segment to group",
            "bulk add to group from filter",
            "legacy segment"
          ],
          "es": [
            "segmento a grupo",
            "etiquetar un segmento",
            "añadir segmento a un grupo",
            "segmento clásico"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}/actions/delete_contacts": {
      "post": {
        "operationId": "async_task_segment_delete_contacts",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete segment members",
        "description": "Starts a background job that permanently deletes from the audience every member who matches the segment, with the ecommerce customer records linked to them. Each person stays as a contact in the account and in their other audiences. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** Only when the user explicitly wants to clean the audience of everyone a segment selects.\n\n**When not to use:** It only accepts old audience segments (`list_audience_segments`), never contact segments. To keep the people but stop emailing them, use `async_task_segment_unsubscribe`. To delete a single member, use `delete_audience_member`.\n\n**Side effects:** Starts an async task that cannot be undone through the API. No webhook fires and no automation is notified; the audience statistics are refreshed afterwards. `result_meta.deleted` holds the number of members the segment matched when the job started.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "mass delete",
            "purge contacts",
            "bulk delete subscribers",
            "clean list",
            "legacy segment"
          ],
          "es": [
            "borrado masivo",
            "eliminar contactos del segmento",
            "limpiar lista",
            "borrar suscriptores en masa",
            "segmento clásico"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}/actions/export": {
      "post": {
        "operationId": "async_task_segment_export",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Export segment members",
        "description": "Starts a background job that exports the members who match the segment to an Excel file. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`. When it is completed, `result_file_url` is a temporary download link.\n\n**When to use:** When the user wants a spreadsheet of the people a segment selects.\n\n**When not to use:** It only accepts old audience segments (`list_audience_segments`), never contact segments. To export a group, use `async_task_group_export`. To read a few members in the response, use `list_audience_members`.\n\n**Side effects:** Starts an async task and creates the file; nothing is sent to anyone. `result_meta.exported` holds the number of rows.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "download segment",
            "segment to Excel",
            "spreadsheet of filter",
            "legacy segment"
          ],
          "es": [
            "exportar segmento",
            "descargar segmento",
            "excel del segmento",
            "segmento clásico"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}/actions/remove_from_group": {
      "post": {
        "operationId": "async_task_segment_remove_from_group",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "`group_uuid` is missing, or the group belongs to a different audience than the segment. Send a group of the same audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment or group does not exist in this audience. Check the segment UUID with `list_audience_segments` and the group UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Remove segment members from a group",
        "description": "Starts a background job that removes from a group every member who currently matches the segment. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To take out of a group everyone a saved segment selects.\n\n**When not to use:** It only accepts old audience segments (`list_audience_segments`), never contact segments. To act from the group side, use `async_task_group_remove_from_segment`. For a rule that is not a saved segment, use `async_task_group_remove_from_conditions`. For one member, use `member_remove_from_group`.\n\n**Side effects:** Starts an async task. Members stay in the audience; only their link to the group is removed. For each member removed an entry is recorded in the member's activity and the group's member count is refreshed. It does not fire the `member_removed_from_group` webhook or the automations triggered by leaving a group. `result_meta.removed` holds the number of members taken out.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "group_uuid"
                ],
                "properties": {
                  "group_uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the group the members are removed from. It must belong to the same audience as the segment. The key is camelCase. Get it from `list_audience_groups`.",
                    "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
                  }
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "untag segment",
            "segment out of group",
            "bulk remove from group from filter",
            "legacy segment"
          ],
          "es": [
            "quitar segmento de un grupo",
            "desetiquetar un segmento",
            "sacar del grupo por segmento",
            "segmento clásico"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_segments/{uuid}/actions/unsubscribe": {
      "post": {
        "operationId": "async_task_segment_unsubscribe",
        "tags": [
          "Audience segments"
        ],
        "responses": {
          "201": {
            "description": "ListSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSegment.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The segment does not exist in this audience. Find its UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Unsubscribe segment members",
        "description": "Starts a background job that unsubscribes the email and the SMS channel of the members of the segment that are confirmed. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`. It is NOT the bulk version of `member_unsubscribe`: it writes the new status directly.\n\n**When to use:** To stop sending to a whole slice of an audience at once, for example inactive contacts.\n\n**When not to use:** It only accepts old audience segments (`list_audience_segments`), never contact segments. For a single member, use `member_unsubscribe`, which also fires the unsubscription webhook and cancels the member's automations. To delete the people instead of unsubscribing them, use `async_task_segment_delete_contacts`.\n\n**Side effects:** Starts an async task. The affected members change to `suscriber.status.unsuscribed.admin` (email) and their SMS status to the same value, they stop receiving campaigns, and the unsubscription is recorded in the activity of each email-unsubscribed member. Unlike `member_unsubscribe` it does NOT fire the `member_unsubscribed` / `member_sms_unsubscribed` webhooks and does NOT cancel the automations the members are in. The audience statistics are refreshed afterwards. `result_meta.unsubscribed` counts only the members whose email status was confirmed. Channels that are not confirmed are left as they are. If no member of the segment has a confirmed email, the job ends without changing anyone, even if some have a confirmed SMS.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the segment belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_audience_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "bulk unsubscribe",
            "unsubscribe a segment",
            "stop emailing inactive contacts",
            "mass opt out",
            "legacy segment"
          ],
          "es": [
            "baja masiva",
            "dar de baja un segmento",
            "dejar de enviar a inactivos",
            "baja de todo un segmento",
            "segmento clásico"
          ]
        }
      }
    },
    "/audiences": {
      "get": {
        "operationId": "list_audiences",
        "tags": [
          "Audiences"
        ],
        "responses": {
          "200": {
            "description": "Audience collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Audience.jsonld-audience.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Audience-audience.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List audiences",
        "description": "Lists the audiences of the account, newest first, each with its subscriber totals, groups, segments, custom fields, sender defaults and GDPR settings.\n\n**When to use:** At the start of almost any task: most other operations need an `audienceUuid`, so call this to find the audience the user means.\n\n**When not to use:** To read one audience you already know, use `get_audience`. To list the people inside an audience, use `list_audience_members`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "mailing list",
            "subscriber lists",
            "newsletter lists",
            "which lists exist"
          ],
          "es": [
            "listas",
            "listas de correo",
            "audiencias",
            "listas de suscriptores",
            "boletines"
          ]
        }
      },
      "post": {
        "operationId": "create_audience",
        "tags": [
          "Audiences"
        ],
        "responses": {
          "201": {
            "description": "Audience resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience.jsonld-audience.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience-audience.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.  If `notifications.sms_sender` is given, that SMS sender must be `active`, otherwise the message is \"The SMS sender must be active.\"",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an audience",
        "description": "Creates an audience, the list that holds your subscribers, with its default sender, notification settings and GDPR configuration. The new audience starts with no members of its own except the one added automatically (see side effects).\n\n**When to use:** When the user wants a separate list of subscribers, for example customers apart from leads. Check `list_audiences` first and reuse an existing audience unless the user asks for a new one.\n\n**When not to use:** To change an audience that already exists, use `update_audience`. To add people to an audience, use `create_audience_member`.\n\n**Side effects:** When the API key or token belongs to a user, the audience is created with a test group (\"Pruebas\") and that user's email address as its first member, confirmed at once: no confirmation or welcome email is sent to it. The audience's customizable pages (such as the confirmation page) are created from the defaults.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Audience resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Audience.jsonld-audience.write.create_audience"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Audience-audience.write.create_audience"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new list",
            "new mailing list",
            "new newsletter list",
            "set up audience"
          ],
          "es": [
            "crear lista",
            "nueva lista",
            "nueva audiencia",
            "nueva lista de correo",
            "lista de suscriptores"
          ]
        }
      }
    },
    "/audiences/{uuid}": {
      "get": {
        "operationId": "get_audience",
        "tags": [
          "Audiences"
        ],
        "responses": {
          "200": {
            "description": "Audience resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience.jsonld-audience.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience-audience.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an audience",
        "description": "Returns one audience with its subscriber totals, how many campaigns, automations, forms and landing pages use it, its default sender, notification and company settings, groups, segments, custom fields and GDPR configuration.\n\n**When to use:** When you need the configuration of an audience before acting on it: its default sender, whether it uses double opt-in, or its GDPR settings.\n\n**When not to use:** To find which audience to use, list them with `list_audiences`. To see the people in it, use `list_audience_members`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the audience. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "audience details",
            "list settings",
            "list configuration",
            "double opt-in setting"
          ],
          "es": [
            "detalle de la lista",
            "configuración de la lista",
            "ajustes de la audiencia",
            "ver lista"
          ]
        }
      },
      "put": {
        "operationId": "update_audience",
        "tags": [
          "Audiences"
        ],
        "responses": {
          "200": {
            "description": "Audience resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience.jsonld-audience.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Audience-audience.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.  If `notifications.sms_sender` is given, that SMS sender must be `active`, otherwise the message is \"The SMS sender must be active.\"",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an audience",
        "description": "Changes an audience's name, description, currency, timezone, default sender, company details, notification settings or GDPR configuration. Fields you leave out keep their current value; inside `company` and `notifications` only the fields you send change.\n\n**When to use:** To rename an audience or change how it behaves, for example its default sender, welcome email, double opt-in or GDPR settings.\n\n**When not to use:** To create an audience, use `create_audience`. To change one person's data, use `update_audience_member`; groups, segments and custom fields have their own operations.\n\n**Side effects:** The subscription forms of the audience are rebuilt in the background. Existing members and their statuses are not changed.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the audience to update. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The updated Audience resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Audience.jsonld-audience.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Audience-audience.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit audience",
            "rename list",
            "change list settings",
            "change default sender"
          ],
          "es": [
            "editar lista",
            "modificar audiencia",
            "cambiar remitente de la lista",
            "renombrar lista",
            "cambiar doble opt-in"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps": {
      "get": {
        "operationId": "list_automation_steps",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationStep-automation_step.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List automation steps",
        "description": "Lists every step of an automation, with its type, its settings, the steps that follow it (one next step, or the yes and no branches of a condition) and how many contacts completed it or are waiting at it.\n\n**When to use:** To read the structure of a flow and to get step uuids before adding, updating, moving or deleting steps.\n\n**When not to use:** To see the whole automation, with its triggers and counters, use `get_automation`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of items per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "flow structure",
            "workflow actions",
            "blocks of the flow",
            "actions list"
          ],
          "es": [
            "estructura del flujo",
            "acciones de la automatización",
            "bloques del flujo",
            "pasos del flujo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/add_to_group": {
      "post": {
        "operationId": "create_step_add_to_group",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroupResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroupResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.group` is missing or is not a group IRI, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an add-to-group step",
        "description": "Adds the contact to a group when it reaches this step and lets it continue; nothing changes if the contact is already in the group. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To classify contacts as they move through a flow: mark buyers, interested leads or people who finished onboarding.\n\n**When not to use:** To take a contact out of a group, use `create_step_remove_from_group`. To add one contact to a group outside any flow, use `member_add_from_group`; to add many at once, use `async_task_group_add_from_conditions`.\n\n**Side effects:** Adding the contact fires the `member_added_to_group` webhook, is recorded in its activity and can start other automations that have a `contact_added_to_group` trigger for that group. If the contact is already in the group, nothing happens and no event fires. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroup.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroup-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "tag contact",
            "assign group",
            "label contact",
            "classify contact",
            "add add to group step",
            "new add to group step"
          ],
          "es": [
            "etiquetar contacto",
            "asignar grupo",
            "clasificar contacto",
            "meter en grupo",
            "añadir paso de añadir a grupo",
            "nuevo paso de añadir a grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/condition": {
      "post": {
        "operationId": "create_step_condition",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepConditionResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepConditionResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.conditions` is empty, `action.match` is not valid, or a condition has no `field` or `operator`, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a condition step",
        "description": "Splits the flow in two: the contact is checked against the conditions you define and goes down the \"yes\" branch if it meets them (all of them, or any of them) and down the \"no\" branch if not. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To treat contacts differently inside a flow: send another email to those who live in a given city, or skip an offer for those already in a group.\n\n**When not to use:** A condition only splits the flow. To wait, use `create_step_delay`; to change the contact's data, use `create_step_update_custom_field`.\n\n**Side effects:** The check happens when the contact reaches the step, with its data at that moment. The conditions are stored as an internal segment of the audience that does not appear in the segments list. Steps that follow go in a branch: place them with `parent_yes` or `parent_no` of this step, because `parent` cannot point to a condition step. If the chosen position is already occupied, the new step is inserted there and the step that was there moves into its \"yes\" branch.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepCondition.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepCondition-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "if else",
            "branch",
            "split flow",
            "decision",
            "filter contacts",
            "add condition step",
            "new condition step"
          ],
          "es": [
            "si no",
            "bifurcación",
            "decisión",
            "dividir flujo",
            "filtrar contactos",
            "añadir paso de condición",
            "nuevo paso de condición"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/delay": {
      "post": {
        "operationId": "create_step_delay",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepDelayResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepDelayResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `delay_unit` is missing or not valid; `delay_value` is missing or not positive for a relative wait; the fields a fixed-moment wait needs (`time_hour`, `time_minute`, `day_week`, `day_month` or `date_year`) are missing; or `date_year` is not in the future, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a delay step",
        "description": "Holds the contact before it moves to the next step, either for a relative amount of time (minutes, hours, days or weeks) or until a fixed moment: a time of day, certain weekdays, a day of the month or a calendar date. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** Between steps of a flow: wait two days after a welcome email before the follow-up, or hold the next message until 9:00 the next morning.\n\n**When not to use:** To branch on what the contact did, use `create_step_condition`; a delay only waits.\n\n**Side effects:** The wait starts when the contact reaches the step. Time is counted in the contact's time zone, or in the audience's if the contact has none, or in UTC. A time-of-day wait ends at the next occurrence of that time, and a calendar date that has already passed lets the contact continue at once. Known issue: `day_week` is saved as the numbers you send (0 = Sunday), but the engine that resumes the contact reads weekday names, so a contact that reaches a `specific_day_week` wait may get stuck there; use another unit for now. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepDelay.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepDelay-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "wait",
            "pause",
            "hold",
            "time gap",
            "send at specific time",
            "add delay step",
            "new delay step"
          ],
          "es": [
            "esperar",
            "pausa",
            "retardo",
            "intervalo de tiempo",
            "enviar a una hora",
            "añadir paso de espera",
            "nuevo paso de espera"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/move_to_step": {
      "post": {
        "operationId": "create_step_move_to_step",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStepResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStepResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON. A move-to-step step can only be placed at the end of a branch: the position must be free.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.target_step` is missing (on update) or is not a step IRI, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a move-to-step step",
        "description": "Sends the contact to another step of the same automation, to make a loop or a shortcut. It can only be placed at the end of a branch, and until you set its target with `update_step_move_to_step` the contact's run simply ends here.\n\n**When to use:** To repeat part of a flow, or to join two branches into the same continuation.\n\n**When not to use:** To hand the contact to a different automation, use `create_step_trigger_automation`.\n\n**Side effects:** The target cannot be this step itself, another move-to-step step, a step of another automation, or a step that would create an endless loop. The target is not set when the step is created: set it afterwards with `update_step_move_to_step`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStep.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStep-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "jump",
            "go to step",
            "loop",
            "goto",
            "join branches",
            "add move to step step",
            "new move to step step"
          ],
          "es": [
            "saltar a paso",
            "ir a otro paso",
            "bucle",
            "repetir pasos",
            "unir ramas",
            "añadir paso de salto a otro paso",
            "nuevo paso de salto a otro paso"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/remove_from_group": {
      "post": {
        "operationId": "create_step_remove_from_group",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroupResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroupResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.group` is missing or is not a group IRI, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a remove-from-group step",
        "description": "Removes the contact from a group when it reaches this step and lets it continue; nothing changes if the contact is not in the group. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To clear a classification that no longer applies: take buyers out of a prospects group.\n\n**When not to use:** To put a contact into a group, use `create_step_add_to_group`. To remove many contacts from a group at once, outside any flow, use `async_task_group_remove_from_conditions`.\n\n**Side effects:** The removal is recorded in the contact's activity. It does not fire `contact_removed_from_group` triggers of other automations or the `member_removed_from_group` webhook. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroup.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroup-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "untag",
            "drop from group",
            "unassign group",
            "clean group",
            "add remove from group step",
            "new remove from group step"
          ],
          "es": [
            "quitar etiqueta",
            "sacar de grupo",
            "desasignar",
            "limpiar grupo",
            "añadir paso de quitar de grupo",
            "nuevo paso de quitar de grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/send_campaign": {
      "post": {
        "operationId": "create_step_send_campaign",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaignResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaignResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON. It is also returned when `template_simple_json_code` cannot be converted into an email.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `subject` or `from_name` is missing; none of `template`, `template_simple_json_code` and `template_html` was sent; `from_email` or `reply_to` is missing and the audience has no default; or `template_html` was sent for a step whose email was built with the builder (use `template_simple_json_code` to change it), or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a send-email step",
        "description": "Sends an email to the contact when it reaches this step, with content taken from an existing template, builder JSON or raw HTML, and lets it continue. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To send an email inside a flow: a welcome message, a reminder, a thank-you. Prefer `template_simple_json_code` to write new content, because it stays editable in the visual editor; use `template` only to reuse an existing template.\n\n**When not to use:** To send an email to a whole audience once, create an email campaign with `create_campaign`. To alert your own team instead of the contact, use `create_step_send_notification`.\n\n**Side effects:** The step keeps its email settings as an internal automation campaign. A real email goes to the contact and counts against the plan's sending limits. The contact needs an email address and a confirmed subscription, otherwise the step is skipped; the same email is not sent twice within 6 hours. If the account cannot send (not enough credits, daily limit reached, expired plan, blocked audience), the internal campaign is marked as failed and the step does not complete. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaign.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaign-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email",
            "send email",
            "message",
            "automated email",
            "drip email",
            "add send email step",
            "new send email step"
          ],
          "es": [
            "enviar email",
            "correo",
            "mensaje",
            "email automático",
            "enviar correo en el flujo",
            "añadir paso de enviar email",
            "nuevo paso de enviar email"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/send_notification": {
      "post": {
        "operationId": "create_step_send_notification",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotificationResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotificationResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.emails` has none or more than 10 valid addresses, or `action.subject` is missing or longer than 150 characters, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a send-notification step",
        "description": "Sends an internal email to the addresses you list (not to the contact) when the contact reaches this step, with the contact's data merged into the text. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To alert your team about a lead: tell sales that a contact clicked the pricing link or finished a flow.\n\n**When not to use:** To email the contact, use `create_step_send_campaign`. To tell another system instead of a person, use `create_step_send_webhook`.\n\n**Side effects:** An email is sent to every listed address each time a contact reaches the step, with tags in the subject and body replaced by that contact's data. The addresses do not have to be contacts. It fails if the account cannot send. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotification.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotification-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "alert team",
            "internal email",
            "notify sales",
            "staff notification",
            "lead alert",
            "add send notification step",
            "new send notification step"
          ],
          "es": [
            "avisar al equipo",
            "notificación interna",
            "alerta comercial",
            "aviso a ventas",
            "email interno",
            "añadir paso de notificación interna",
            "nuevo paso de notificación interna"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/send_sms": {
      "post": {
        "operationId": "create_step_send_sms",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendSmsResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendSmsResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.title`, `action.message` or `action.sms_sender` is missing, or the SMS sender does not exist or is not active, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a send-SMS step",
        "description": "Sends an SMS to the contact when it reaches this step and lets it continue. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To send a text inside a flow: order updates, appointment reminders or time-limited offers.\n\n**When not to use:** To send an email, use `create_step_send_campaign`. To send an SMS to a whole audience once, use `create_sms_campaign`.\n\n**Side effects:** The step keeps its SMS settings as an internal automation campaign. A real SMS goes to the contact and uses the account's SMS credits. The contact needs a phone number and a confirmed SMS subscription, otherwise the step is skipped; the same SMS is not sent twice within 6 hours. If the account has too few SMS credits, the country is not available or the provider rejects the message, the SMS is logged as failed and the contact moves on anyway. If the account is inactive, suspended or expired, the audience is blocked or the SMS sender is not active, the step does not complete. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/ld+json": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "object",
                    "description": "Settings of the step.",
                    "required": [
                      "title",
                      "message",
                      "sms_sender"
                    ],
                    "properties": {
                      "title": {
                        "type": "string",
                        "description": "Internal title of the SMS, not shown to the contact.",
                        "example": "Order reminder"
                      },
                      "message": {
                        "type": "string",
                        "description": "Text of the SMS.",
                        "example": "Hi, your order is waiting for you at Acme."
                      },
                      "sms_sender": {
                        "type": "string",
                        "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
                        "example": "/sms_senders/1"
                      },
                      "track_clicks": {
                        "type": "boolean",
                        "description": "Count the clicks on the links of the message.",
                        "example": true
                      },
                      "track_ecommerce": {
                        "type": "boolean",
                        "description": "Enable ecommerce tracking for this SMS.",
                        "example": false
                      },
                      "track_google_analytics": {
                        "type": "boolean",
                        "description": "Add Google Analytics tracking to the links of the message.",
                        "example": false
                      },
                      "google_analytics_tag": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
                        "example": "welcome-sms"
                      }
                    }
                  },
                  "parent": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_yes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_no": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  }
                }
              },
              "example": {
                "action": {
                  "title": "Order reminder",
                  "message": "Hi, your order is waiting for you at Acme.",
                  "sms_sender": "/sms_senders/1",
                  "track_clicks": true
                },
                "parent": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "object",
                    "description": "Settings of the step.",
                    "required": [
                      "title",
                      "message",
                      "sms_sender"
                    ],
                    "properties": {
                      "title": {
                        "type": "string",
                        "description": "Internal title of the SMS, not shown to the contact.",
                        "example": "Order reminder"
                      },
                      "message": {
                        "type": "string",
                        "description": "Text of the SMS.",
                        "example": "Hi, your order is waiting for you at Acme."
                      },
                      "sms_sender": {
                        "type": "string",
                        "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
                        "example": "/sms_senders/1"
                      },
                      "track_clicks": {
                        "type": "boolean",
                        "description": "Count the clicks on the links of the message.",
                        "example": true
                      },
                      "track_ecommerce": {
                        "type": "boolean",
                        "description": "Enable ecommerce tracking for this SMS.",
                        "example": false
                      },
                      "track_google_analytics": {
                        "type": "boolean",
                        "description": "Add Google Analytics tracking to the links of the message.",
                        "example": false
                      },
                      "google_analytics_tag": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
                        "example": "welcome-sms"
                      }
                    }
                  },
                  "parent": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_yes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_no": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  }
                }
              },
              "example": {
                "action": {
                  "title": "Order reminder",
                  "message": "Hi, your order is waiting for you at Acme.",
                  "sms_sender": "/sms_senders/1",
                  "track_clicks": true
                },
                "parent": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "text message",
            "mobile text",
            "phone message",
            "text reminder",
            "add send SMS step",
            "new send SMS step"
          ],
          "es": [
            "mensaje de texto",
            "sms en el flujo",
            "aviso al móvil",
            "recordatorio por sms",
            "añadir paso de enviar SMS",
            "nuevo paso de enviar SMS"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/send_webhook": {
      "post": {
        "operationId": "create_step_send_webhook",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhookResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhookResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.url` is missing or is not a valid URL, or more than 20 `payload_items` were sent, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a send-webhook step",
        "description": "Sends an HTTP POST with the contact, the automation and the step, plus any extra key-value pairs you add, when the contact reaches this step, and lets the contact continue without waiting for the response. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To tell another system (a CRM, a chat bridge, your own app) that a contact reached a point of the flow.\n\n**When not to use:** To be notified of Easymailing events in general, such as subscriptions or clicks, create a webhook with `create_webhook`. To alert a person by email, use `create_step_send_notification`.\n\n**Side effects:** Creates a webhook for this step, titled \"Automation: <automation title>\", with a generated signing secret if you do not send one; each request carries an `Easymailing-Webhook-Signature` header (HMAC-SHA256 of the body). Known behavior: webhooks are matched by event type, not by step, so when any send-webhook step runs, every active webhook of the audience that listens to this event receives the call, including the webhooks of the other send-webhook steps. The payload names the automation and the step, so a receiver can ignore the ones it does not want. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhook.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhook-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "http post",
            "call url",
            "notify external system",
            "push to crm",
            "zapier",
            "add send webhook step",
            "new send webhook step"
          ],
          "es": [
            "llamar a una url",
            "avisar a otro sistema",
            "enviar a crm",
            "petición http",
            "integración",
            "añadir paso de enviar webhook",
            "nuevo paso de enviar webhook"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/trigger_automation": {
      "post": {
        "operationId": "create_step_trigger_automation",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomationResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomationResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.automation` is missing or is not an automation IRI, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a trigger-automation step",
        "description": "Starts another automation for the same contact when it reaches this step, through that automation's manual trigger, and lets the contact continue in this one. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To chain flows: hand a contact over to a long nurturing flow after an onboarding flow ends.\n\n**When not to use:** To start an automation from outside Easymailing, use `trigger_custom_api`.\n\n**Side effects:** The other automation must be active and have a manual trigger. If it is not, nothing is started there and the contact does not continue past this step either: its run stays stuck as running. If the manual trigger of the other automation is paused, or the contact is already running through it or has already finished it and the trigger does not allow repeating, nothing starts there but the contact does continue here. The other automation starts in the background. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomation.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomation-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "chain automations",
            "start another flow",
            "hand over",
            "nested workflow",
            "launch automation",
            "add trigger automation step",
            "new trigger automation step"
          ],
          "es": [
            "encadenar automatizaciones",
            "lanzar otro flujo",
            "pasar a otra automatización",
            "flujo anidado",
            "añadir paso de lanzar automatización",
            "nuevo paso de lanzar automatización"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/unsubscribe": {
      "post": {
        "operationId": "create_step_unsubscribe",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribeResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribeResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an unsubscribe step",
        "description": "Unsubscribes the contact from the audience, on each channel (email, SMS) where it is subscribed, when it reaches this step and ends its run: nothing placed after this step is executed. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To remove contacts who answered \"stop\", who asked to leave, or at the end of a sunset flow for inactive contacts.\n\n**When not to use:** To only take a contact out of a group, use `create_step_remove_from_group`. To unsubscribe one contact outside any flow, use `member_unsubscribe`; to unsubscribe a segment, `async_task_segment_unsubscribe`.\n\n**Side effects:** The contact is marked as unsubscribed by an administrator on the channels where it was subscribed and stops receiving the audience's messages there; its other automation runs in this audience are cancelled, and the matching unsubscribed webhook (`member_unsubscribed` for email) fires. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribe.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribe-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opt out",
            "remove from list",
            "stop emails",
            "sunset inactive",
            "cleanup",
            "add unsubscribe step",
            "new unsubscribe step"
          ],
          "es": [
            "darse de baja",
            "dar de baja",
            "limpiar inactivos",
            "quitar de la lista",
            "cancelar suscripción",
            "añadir paso de dar de baja",
            "nuevo paso de dar de baja"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/update_custom_field": {
      "post": {
        "operationId": "create_step_update_custom_field",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomFieldResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomFieldResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.field` or `action.value` is missing, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an update-custom-field step",
        "description": "Writes a fixed value into one custom field of the contact when it reaches this step, replacing what the field held before, and lets it continue. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To record progress or a preference in the contact's data: set a \"Customer type\" field to \"Premium\" after a purchase.\n\n**When not to use:** To change the contact's quality score, use `create_step_update_score`. To classify the contact, use `create_step_add_to_group`.\n\n**Side effects:** If the contact has no value yet for that field, one is created. The value is the same for every contact: it cannot be copied from another field. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomField.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomField-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "set field",
            "write data",
            "change attribute",
            "fill field",
            "save value",
            "add update custom field step",
            "new update custom field step"
          ],
          "es": [
            "actualizar campo",
            "escribir dato",
            "cambiar atributo",
            "rellenar campo personalizado",
            "añadir paso de actualizar campo",
            "nuevo paso de actualizar campo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/update_score": {
      "post": {
        "operationId": "create_step_update_score",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "201": {
            "description": "AutomationStep resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScoreResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScoreResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid. The message says which case: the automation already has a first step (give `parent`, `parent_yes` or `parent_no`), `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, or the step given as position, does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.value` is missing or outside the range -5 to 5, or more than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an update-score step",
        "description": "Adds points, from -5 to 5, to the contact's quality score when it reaches this step and lets it continue. Its place in the flow is set with `parent`, `parent_yes` or `parent_no`; with none of them it becomes the first step.\n\n**When to use:** To rate engagement inside a flow: add 2 points for reaching a key email, subtract 1 for ignoring a reminder.\n\n**When not to use:** To store a value in a custom field, use `create_step_update_custom_field`.\n\n**Side effects:** The change accumulates: every time a contact passes the step, its score moves again. The score never goes below 0 or above 20. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScore.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScore-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "lead scoring",
            "engagement points",
            "rating",
            "rank contact",
            "points",
            "add update score step",
            "new update score step"
          ],
          "es": [
            "puntuación",
            "calificar contacto",
            "puntos",
            "valoración",
            "scoring de leads",
            "añadir paso de actualizar puntuación",
            "nuevo paso de actualizar puntuación"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}": {
      "get": {
        "operationId": "get_automation_step",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep-automation_step.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The step does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an automation step",
        "description": "Returns one step of an automation: its type, its settings, the steps that follow it and the counters of contacts that completed it or are waiting at it.\n\n**When to use:** To check how a step is configured before updating it.\n\n**When not to use:** To list all the steps of an automation, use `list_automation_steps`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "step settings",
            "step configuration",
            "step details"
          ],
          "es": [
            "ajustes del paso",
            "configuración del paso",
            "detalle del paso"
          ]
        }
      },
      "delete": {
        "operationId": "delete_automation_step",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "204": {
            "description": "AutomationStep resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The step does not exist or was already deleted. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an automation step",
        "description": "Deletes a step from the flow. By default the steps that followed it are reconnected to its parent so the flow stays connected; with `mode` set to cascade, the step and everything after it are deleted.\n\n**When to use:** To remove one action from a flow, for example an email that is no longer wanted.\n\n**When not to use:** To move a step instead of removing it, use `move_step_position`.\n\n**Side effects:** Deleting a condition step in the default mode keeps only its \"yes\" branch and deletes the \"no\" branch. Any `mode` value other than `reconnect` is treated as `cascade`, which deletes the step and everything after it, so check the value before sending. It cannot be undone.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "description": "What happens to the steps that follow: they are reconnected to the deleted step's parent, or they are deleted too. Any value other than the default behaves as the second option.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "reconnect",
                "cascade"
              ],
              "default": "reconnect"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "reconnect"
          },
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove step",
            "delete action",
            "discard block"
          ],
          "es": [
            "quitar paso",
            "borrar acción",
            "eliminar bloque"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/add_to_group": {
      "put": {
        "operationId": "update_step_add_to_group",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroupResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroupResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an add-to-group step",
        "description": "Changes an existing add-to-group step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the group the contact is added to.\n\n**When not to use:** To add a new add-to-group step to a flow, use `create_step_add_to_group`. Call this operation only on a step whose `step_type` is `step.add.to.group`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroup.jsonld-automation_step.write.update_step_add_to_group"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepAddToGroup-automation_step.write.update_step_add_to_group"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit add to group step",
            "change add to group step settings",
            "modify existing add to group step",
            "tag contact"
          ],
          "es": [
            "editar paso de añadir a grupo",
            "cambiar ajustes del paso de añadir a grupo",
            "modificar paso existente de añadir a grupo",
            "etiquetar contacto"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/condition": {
      "put": {
        "operationId": "update_step_condition",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepConditionResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepConditionResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.conditions` is empty, `action.match` is not valid, or a condition has no `field` or `operator`. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a condition step",
        "description": "Changes an existing condition step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the conditions or whether all of them or any of them must be met.\n\n**When not to use:** To add a new condition step to a flow, use `create_step_condition`. Call this operation only on a step whose `step_type` is `step.condition`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepCondition.jsonld-automation_step.write.update_step_condition"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepCondition-automation_step.write.update_step_condition"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit condition step",
            "change condition step settings",
            "modify existing condition step",
            "if else"
          ],
          "es": [
            "editar paso de condición",
            "cambiar ajustes del paso de condición",
            "modificar paso existente de condición",
            "si no"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/delay": {
      "put": {
        "operationId": "update_step_delay",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepDelayResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepDelayResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `delay_unit` is missing or not valid; `delay_value` is missing or not positive for a relative wait; the fields a fixed-moment wait needs (`time_hour`, `time_minute`, `day_week`, `day_month` or `date_year`) are missing; or `date_year` is not in the future. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a delay step",
        "description": "Changes an existing delay step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change how long or until when the contact waits.\n\n**When not to use:** To add a new delay step to a flow, use `create_step_delay`. Call this operation only on a step whose `step_type` is `step.delay`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepDelay.jsonld-automation_step.write.update_step_delay"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepDelay-automation_step.write.update_step_delay"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit delay step",
            "change delay step settings",
            "modify existing delay step",
            "wait"
          ],
          "es": [
            "editar paso de espera",
            "cambiar ajustes del paso de espera",
            "modificar paso existente de espera",
            "esperar"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/move_to_step": {
      "put": {
        "operationId": "update_step_move_to_step",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStepResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStepResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The target is not valid: it is this step itself, another move-to-step step, a step of another automation, or it would create an endless loop. The message says which. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, the step or the target step does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.target_step` is missing (on update) or is not a step IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a move-to-step step",
        "description": "Changes an existing move-to-step step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the step the contact jumps to. This is also how you set the target of a new move-to-step step, which has none when created.\n\n**When not to use:** To add a new move-to-step step to a flow, use `create_step_move_to_step`. Call this operation only on a step whose `step_type` is `step.move.to.step`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStep.jsonld-automation_step.write.update_step_move_to_step"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepMoveToStep-automation_step.write.update_step_move_to_step"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit move to step step",
            "change move to step step settings",
            "modify existing move to step step",
            "jump"
          ],
          "es": [
            "editar paso de salto a otro paso",
            "cambiar ajustes del paso de salto a otro paso",
            "modificar paso existente de salto a otro paso",
            "saltar a paso"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/position": {
      "put": {
        "operationId": "move_step_position",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The position is not valid: `parent` points to a condition step (use `parent_yes` or `parent_no`), `parent_yes` or `parent_no` points to a step that is not a condition, the target belongs to another automation, or the move would create a loop. The message says which. It is also returned when the body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation, the step or the target step does not exist. List the steps with `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "More than one position field was sent, or a position value is not a step IRI of the form /automations/{uuid}/automation_steps/{uuid}.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Move a step to a new position",
        "description": "Moves an existing step to another place in the flow: the first position, after another step, or into the yes or no branch of a condition step.\n\n**When to use:** To reorder a flow without deleting and recreating steps, or to attach an orphan step (one not connected to the flow) to it.\n\n**When not to use:** To change the settings of a step, use the matching `update_step_*` operation.\n\n**Side effects:** The step that followed the moved one takes its old place. If the target position is occupied, the moved step is inserted there and the step that was there ends up after it; moving to first position makes the previous first step follow the moved one.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepPosition.jsonld-automation_step.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepPosition-automation_step.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reorder step",
            "change order",
            "drag step",
            "reattach orphan step"
          ],
          "es": [
            "reordenar paso",
            "cambiar orden",
            "mover paso",
            "reconectar paso huérfano"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/remove_from_group": {
      "put": {
        "operationId": "update_step_remove_from_group",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroupResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroupResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a remove-from-group step",
        "description": "Changes an existing remove-from-group step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the group the contact is removed from.\n\n**When not to use:** To add a new remove-from-group step to a flow, use `create_step_remove_from_group`. Call this operation only on a step whose `step_type` is `step.remove.from.group`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroup.jsonld-automation_step.write.update_step_remove_from_group"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepRemoveFromGroup-automation_step.write.update_step_remove_from_group"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit remove from group step",
            "change remove from group step settings",
            "modify existing remove from group step",
            "untag"
          ],
          "es": [
            "editar paso de quitar de grupo",
            "cambiar ajustes del paso de quitar de grupo",
            "modificar paso existente de quitar de grupo",
            "quitar etiqueta"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/send_campaign": {
      "put": {
        "operationId": "update_step_send_campaign",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaignResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaignResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON, or `template_simple_json_code` cannot be converted into an email.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `subject` or `from_name` is missing; none of `template`, `template_simple_json_code` and `template_html` was sent; `from_email` or `reply_to` is missing and the audience has no default; or `template_html` was sent for a step whose email was built with the builder (use `template_simple_json_code` to change it). The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a send-email step",
        "description": "Changes an existing send-email step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the subject, sender or content of the email.\n\n**When not to use:** To add a new send-email step to a flow, use `create_step_send_campaign`. Call this operation only on a step whose `step_type` is `step.send.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings. The email settings of the step's internal campaign are updated in place.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaign.jsonld-automation_step.write.update_step_send_campaign"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendCampaign-automation_step.write.update_step_send_campaign"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit send email step",
            "change send email step settings",
            "modify existing send email step",
            "email"
          ],
          "es": [
            "editar paso de enviar email",
            "cambiar ajustes del paso de enviar email",
            "modificar paso existente de enviar email",
            "enviar email"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/send_notification": {
      "put": {
        "operationId": "update_step_send_notification",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotificationResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotificationResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.emails` has none or more than 10 valid addresses, or `action.subject` is missing or longer than 150 characters. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a send-notification step",
        "description": "Changes an existing send-notification step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the recipients or the text of the notification.\n\n**When not to use:** To add a new send-notification step to a flow, use `create_step_send_notification`. Call this operation only on a step whose `step_type` is `step.send.notification`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotification.jsonld-automation_step.write.update_step_send_notification"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendNotification-automation_step.write.update_step_send_notification"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit send notification step",
            "change send notification step settings",
            "modify existing send notification step",
            "alert team"
          ],
          "es": [
            "editar paso de notificación interna",
            "cambiar ajustes del paso de notificación interna",
            "modificar paso existente de notificación interna",
            "avisar al equipo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/send_sms": {
      "put": {
        "operationId": "update_step_send_sms",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendSmsResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendSmsResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.title`, `action.message` or `action.sms_sender` is missing, or the SMS sender does not exist or is not active. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a send-SMS step",
        "description": "Changes an existing send-SMS step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the text, the sender or the tracking of the SMS.\n\n**When not to use:** To add a new send-SMS step to a flow, use `create_step_send_sms`. Call this operation only on a step whose `step_type` is `step.send.sms`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/ld+json": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "object",
                    "description": "Settings of the step.",
                    "required": [
                      "title",
                      "message",
                      "sms_sender"
                    ],
                    "properties": {
                      "title": {
                        "type": "string",
                        "description": "Internal title of the SMS, not shown to the contact.",
                        "example": "Order reminder"
                      },
                      "message": {
                        "type": "string",
                        "description": "Text of the SMS.",
                        "example": "Hi, your order is waiting for you at Acme."
                      },
                      "sms_sender": {
                        "type": "string",
                        "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
                        "example": "/sms_senders/1"
                      },
                      "track_clicks": {
                        "type": "boolean",
                        "description": "Count the clicks on the links of the message.",
                        "example": true
                      },
                      "track_ecommerce": {
                        "type": "boolean",
                        "description": "Enable ecommerce tracking for this SMS.",
                        "example": false
                      },
                      "track_google_analytics": {
                        "type": "boolean",
                        "description": "Add Google Analytics tracking to the links of the message.",
                        "example": false
                      },
                      "google_analytics_tag": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
                        "example": "welcome-sms"
                      }
                    }
                  },
                  "parent": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_yes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_no": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  }
                }
              },
              "example": {
                "action": {
                  "title": "Order reminder",
                  "message": "Hi, your order is waiting for you at Acme.",
                  "sms_sender": "/sms_senders/1",
                  "track_clicks": true
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "object",
                    "description": "Settings of the step.",
                    "required": [
                      "title",
                      "message",
                      "sms_sender"
                    ],
                    "properties": {
                      "title": {
                        "type": "string",
                        "description": "Internal title of the SMS, not shown to the contact.",
                        "example": "Order reminder"
                      },
                      "message": {
                        "type": "string",
                        "description": "Text of the SMS.",
                        "example": "Hi, your order is waiting for you at Acme."
                      },
                      "sms_sender": {
                        "type": "string",
                        "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
                        "example": "/sms_senders/1"
                      },
                      "track_clicks": {
                        "type": "boolean",
                        "description": "Count the clicks on the links of the message.",
                        "example": true
                      },
                      "track_ecommerce": {
                        "type": "boolean",
                        "description": "Enable ecommerce tracking for this SMS.",
                        "example": false
                      },
                      "track_google_analytics": {
                        "type": "boolean",
                        "description": "Add Google Analytics tracking to the links of the message.",
                        "example": false
                      },
                      "google_analytics_tag": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
                        "example": "welcome-sms"
                      }
                    }
                  },
                  "parent": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_yes": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  },
                  "parent_no": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
                    "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
                  }
                }
              },
              "example": {
                "action": {
                  "title": "Order reminder",
                  "message": "Hi, your order is waiting for you at Acme.",
                  "sms_sender": "/sms_senders/1",
                  "track_clicks": true
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit send SMS step",
            "change send SMS step settings",
            "modify existing send SMS step",
            "text message"
          ],
          "es": [
            "editar paso de enviar SMS",
            "cambiar ajustes del paso de enviar SMS",
            "modificar paso existente de enviar SMS",
            "mensaje de texto"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/send_webhook": {
      "put": {
        "operationId": "update_step_send_webhook",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhookResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhookResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.url` is missing or is not a valid URL, or more than 20 `payload_items` were sent. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a send-webhook step",
        "description": "Changes an existing send-webhook step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the URL, the secret or the extra fields of the webhook.\n\n**When not to use:** To add a new send-webhook step to a flow, use `create_step_send_webhook`. Call this operation only on a step whose `step_type` is `step.send.webhook`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings. The webhook created for the step is updated in place; as with creation, every active webhook of the audience that listens to the same event receives each call.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhook.jsonld-automation_step.write.update_step_send_webhook"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepSendWebhook-automation_step.write.update_step_send_webhook"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit send webhook step",
            "change send webhook step settings",
            "modify existing send webhook step",
            "http post"
          ],
          "es": [
            "editar paso de enviar webhook",
            "cambiar ajustes del paso de enviar webhook",
            "modificar paso existente de enviar webhook",
            "llamar a una url"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/trigger_automation": {
      "put": {
        "operationId": "update_step_trigger_automation",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomationResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomationResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.automation` is missing or is not an automation IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a trigger-automation step",
        "description": "Changes an existing trigger-automation step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the automation that is started.\n\n**When not to use:** To add a new trigger-automation step to a flow, use `create_step_trigger_automation`. Call this operation only on a step whose `step_type` is `step.trigger.automation`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomation.jsonld-automation_step.write.update_step_trigger_automation"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepTriggerAutomation-automation_step.write.update_step_trigger_automation"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit trigger automation step",
            "change trigger automation step settings",
            "modify existing trigger automation step",
            "chain automations"
          ],
          "es": [
            "editar paso de lanzar automatización",
            "cambiar ajustes del paso de lanzar automatización",
            "modificar paso existente de lanzar automatización",
            "encadenar automatizaciones"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/unsubscribe": {
      "put": {
        "operationId": "update_step_unsubscribe",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribeResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribeResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an unsubscribe step",
        "description": "Updates an existing unsubscribe step. The step has no settings, so the request changes nothing.\n\n**When to use:** Not needed in practice: the unsubscribe step has no settings to change.\n\n**When not to use:** To add a new unsubscribe step to a flow, use `create_step_unsubscribe`. Call this operation only on a step whose `step_type` is `step.unsuscribe`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribe.jsonld-automation_step.write.update_step_unsubscribe"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUnsubscribe-automation_step.write.update_step_unsubscribe"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit unsubscribe step",
            "change unsubscribe step settings",
            "modify existing unsubscribe step",
            "opt out"
          ],
          "es": [
            "editar paso de dar de baja",
            "cambiar ajustes del paso de dar de baja",
            "modificar paso existente de dar de baja",
            "darse de baja"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/update_custom_field": {
      "put": {
        "operationId": "update_step_update_custom_field",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomFieldResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomFieldResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.field` or `action.value` is missing. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an update-custom-field step",
        "description": "Changes an existing update-custom-field step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change the field or the value that is written.\n\n**When not to use:** To add a new update-custom-field step to a flow, use `create_step_update_custom_field`. Call this operation only on a step whose `step_type` is `step.custom.field`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomField.jsonld-automation_step.write.update_step_update_custom_field"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateCustomField-automation_step.write.update_step_update_custom_field"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit update custom field step",
            "change update custom field step settings",
            "modify existing update custom field step",
            "set field"
          ],
          "es": [
            "editar paso de actualizar campo",
            "cambiar ajustes del paso de actualizar campo",
            "modificar paso existente de actualizar campo",
            "actualizar campo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_steps/{uuid}/update_score": {
      "put": {
        "operationId": "update_step_update_score",
        "tags": [
          "Automation steps"
        ],
        "responses": {
          "200": {
            "description": "AutomationStep resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScoreResource.jsonld-automation_step.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScoreResource-automation_step.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the step does not exist. List them with `list_automations` and `list_automation_steps`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `action.value` is missing or outside the range -5 to 5. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an update-score step",
        "description": "Changes an existing update-score step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.\n\n**When to use:** To change how many points are added.\n\n**When not to use:** To add a new update-score step to a flow, use `create_step_update_score`. Call this operation only on a step whose `step_type` is `step.update.score`: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use `move_step_position`; to change its type, delete it with `delete_automation_step` and create a new one.\n\n**Side effects:** Contacts that have not yet passed this step use the new settings.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the step, as returned by `list_automation_steps`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationStep resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScore.jsonld-automation_step.write.update_step_update_score"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationStep.AutomationStepUpdateScore-automation_step.write.update_step_update_score"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit update score step",
            "change update score step settings",
            "modify existing update score step",
            "lead scoring"
          ],
          "es": [
            "editar paso de actualizar puntuación",
            "cambiar ajustes del paso de actualizar puntuación",
            "modificar paso existente de actualizar puntuación",
            "puntuación"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers": {
      "get": {
        "operationId": "list_automation_triggers",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List automation triggers",
        "description": "Lists the triggers of an automation. Each one shows its type, whether it is enabled, whether contacts can repeat the workflow, its configuration, and how many contacts it started, how many are running, completed or cancelled.\n\n**When to use:** To see what starts an automation and to get a trigger's uuid before updating, pausing or deleting it.\n\n**When not to use:** To read the steps of the automation, use `list_automation_steps`.\n\n**Side effects:** The counters are recalculated periodically in the background, so they can lag behind what just happened. The list also includes triggers created in the app of a type this API has no create or update operation for (for example a survey answered); they can be paused, enabled or deleted here.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of items per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "entry points",
            "start conditions",
            "what starts the workflow",
            "events that start a flow"
          ],
          "es": [
            "puntos de entrada",
            "condiciones de inicio",
            "qué inicia la automatización",
            "eventos de inicio"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/abandoned_cart": {
      "post": {
        "operationId": "create_trigger_abandoned_cart",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value`, `delay_unit` or `condition` is missing or invalid, the waiting time is longer than 1 month, or the condition selects specific products or categories but none were sent. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an abandoned cart trigger",
        "description": "Starts the automation for a shopper whose cart in a store has not been modified for the chosen waiting time, optionally only when the cart contains (or, with `exclude`, does not contain) certain products or categories.\n\n**When to use:** To send a cart-recovery email or SMS to shoppers who added products to a cart and never placed the order.\n\n**When not to use:** For an order that was placed but not paid, use `create_trigger_payment_reminder`. To react when an order is paid, use `create_trigger_order_paid` (or `create_trigger_buy_a_product` for certain products). For a message weeks after buying, use `create_trigger_time_since_last_purchase`.\n\n**Side effects:** Known limit: the scheduled check only looks at carts last modified within the previous 2 hours, so a waiting time above 2 hours matches no cart and the trigger never fires; the wait counts from the cart's last change, not from its creation. The run is cancelled automatically if the order is processed or paid first. The cart is attached to the run so emails can use its data, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAbandonedCart.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAbandonedCart-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "cart recovery",
            "unfinished checkout",
            "items left in cart",
            "complete your purchase reminder",
            "add abandoned cart trigger",
            "new abandoned cart trigger"
          ],
          "es": [
            "recuperar carrito",
            "compra sin terminar",
            "carrito olvidado",
            "carrito sin finalizar",
            "añadir disparador de carrito abandonado",
            "nuevo disparador de carrito abandonado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/admin_manual": {
      "post": {
        "operationId": "create_trigger_admin_manual",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an admin manual trigger",
        "description": "Adds a manual-start trigger to the automation. A manual trigger lets someone, or a step of another automation, put a contact into the automation by hand instead of waiting for an event.\n\n**When to use:** Rarely needed: every automation already gets one active manual trigger when it is created. Use this only if that trigger was deleted and you want manual starts back.\n\n**When not to use:** To start the automation from your own system, create a `custom_api` trigger with `create_trigger_custom_api` and call `trigger_custom_api`. To start it from the flow of another automation, use `create_step_trigger_automation`. To react to an event, use the trigger for that event.\n\n**Side effects:** Only the first manual trigger of an automation is used, so a second one adds nothing. This API has no operation that starts a manual trigger: contacts are added from the app (Add to automation) or by a trigger-automation step of another automation (`create_step_trigger_automation`).\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAdminManual.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAdminManual-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "manual enrollment",
            "add by hand",
            "manual start",
            "add to automation from the app",
            "add manual start trigger",
            "new manual start trigger"
          ],
          "es": [
            "inicio manual",
            "añadir a mano",
            "añadir a automatización desde la app",
            "entrada manual",
            "añadir disparador de inicio manual",
            "nuevo disparador de inicio manual"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/aniversary_date": {
      "post": {
        "operationId": "create_trigger_anniversary_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `list_field` is missing, `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an anniversary date trigger",
        "description": "Starts the automation every year on the day and month stored in a date custom field of the contact, such as a birthday or a customer-since date, from the start of that day, or a few days or weeks beforehand.\n\n**When to use:** For birthday messages or yearly anniversaries of a date you keep in a custom field.\n\n**When not to use:** For a one-off date, such as an event or a contract expiry, use `create_trigger_specific_date`. For the anniversary of the day the contact subscribed, use `create_trigger_suscription_date`. To welcome someone the day they subscribe, use `create_trigger_contact_subscribed`.\n\n**Side effects:** The day is the contact's own time zone when it has one, otherwise the audience's. Contacts born on 29 February are matched on 28 February in years that are not leap years. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact is never started again within 6 months of its previous run, and enters again at all only if `workflow_repeat` is true.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAniversaryDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAniversaryDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "birthday",
            "yearly date",
            "annual date",
            "recurring date",
            "custom field date every year",
            "add birthday trigger",
            "new birthday trigger"
          ],
          "es": [
            "cumpleaños",
            "felicitar aniversario",
            "fecha anual",
            "cada año",
            "efeméride",
            "añadir disparador de cumpleaños",
            "nuevo disparador de cumpleaños"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/buy_a_product": {
      "post": {
        "operationId": "create_trigger_buy_a_product",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store` or `condition` is missing, or the condition selects specific products or categories but none were sent. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a product purchase trigger",
        "description": "Starts the automation for a customer when an order of the chosen store is marked as paid and contains any product, specific products or products of specific categories.\n\n**When to use:** For post-purchase follow-ups tied to what was bought: thank-you emails, cross-sell offers or review requests.\n\n**When not to use:** To react to every paid order with no product filter, use `create_trigger_order_paid`. For an order that is placed but not yet paid, use `create_trigger_order_processed`. For a message some time after buying, use `create_trigger_time_since_last_purchase`.\n\n**Side effects:** Fires when the order is marked as paid (for example with `pay_order`); the same event also feeds `order_paid` triggers. The order is attached to the run so emails can use its data, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerBuyAProduct.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerBuyAProduct-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "purchase",
            "bought",
            "post-purchase",
            "thank you after buying",
            "cross-sell",
            "add product purchase trigger",
            "new product purchase trigger"
          ],
          "es": [
            "compra",
            "ha comprado",
            "producto comprado",
            "post-compra",
            "agradecer compra",
            "añadir disparador de compra de producto",
            "nuevo disparador de compra de producto"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/click_on_campaign": {
      "post": {
        "operationId": "create_trigger_click_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign click trigger",
        "description": "Starts the automation for a contact when a click on any link of the chosen email campaign is recorded.\n\n**When to use:** To follow up with people who showed interest by clicking: send more information, move them to a group or alert sales.\n\n**When not to use:** To react to one specific link only, use `create_trigger_click_on_campaign_link`. To react when a contact opens the email, use `create_trigger_open_on_campaign`. For contacts who received the campaign but did not click, use `create_trigger_not_click_on_campaign`.\n\n**Side effects:** The campaign must belong to the same audience as the automation: the API does not check it, and a trigger for a campaign of another audience is saved but never fires. Clicks made by automated software, such as link scanners, are recorded too and are not filtered out, so they can start the automation. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "link clicked",
            "engaged readers",
            "clicked email",
            "click reaction",
            "when someone clicks a campaign",
            "add campaign click trigger",
            "new campaign click trigger"
          ],
          "es": [
            "hizo clic",
            "clic en campaña",
            "interesado",
            "pulsó un enlace",
            "cuando alguien hace clic en una campaña",
            "añadir disparador de clic en campaña",
            "nuevo disparador de clic en campaña"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/click_on_campaign_link": {
      "post": {
        "operationId": "create_trigger_click_on_campaign_link",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `url` is missing or is not a valid URL. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign link click trigger",
        "description": "Starts the automation for a contact who clicks one specific link, identified by its exact destination URL, in a campaign.\n\n**When to use:** To react to interest in a particular offer or page, for example the pricing link or a product page link.\n\n**When not to use:** To react to any link of a campaign, use `create_trigger_click_on_campaign`. To react when a contact opens the email, use `create_trigger_open_on_campaign`.\n\n**Side effects:** The URL must match the destination of the link in the email exactly, including its query string. If `campaign` is omitted, a click on that URL in any campaign of the audience, email or SMS, starts the automation. The campaign must belong to the same audience as the automation: the API does not check it, and a trigger for a campaign of another audience is saved but never fires. Clicks made by automated software, such as link scanners, are recorded too and are not filtered out, so they can start the automation. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaignLink.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaignLink-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "specific link",
            "url clicked",
            "link tracking",
            "clicked offer",
            "add link click trigger",
            "new link click trigger"
          ],
          "es": [
            "enlace concreto",
            "clic en una url",
            "enlace específico",
            "url pulsada",
            "añadir disparador de clic en enlace",
            "nuevo disparador de clic en enlace"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/contact_added_to_group": {
      "post": {
        "operationId": "create_trigger_contact_added_to_group",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a contact added to group trigger",
        "description": "Starts the automation when a contact of the audience is added to the chosen group.\n\n**When to use:** To react to a classification: welcome a contact who joins the VIP group, or begin onboarding when someone is placed in a group.\n\n**When not to use:** To react when a contact leaves a group, use `create_trigger_contact_removed_from_group`. To react when a contact first subscribes, use `create_trigger_contact_subscribed`; for a given form, `create_trigger_form_completed`. To add contacts to a group from inside an automation, use `create_step_add_to_group`.\n\n**Side effects:** Fires whenever the contact is added to that group: from the app (one by one or in bulk), the API (including its asynchronous group tasks), a subscription form that assigns the group, an import into the group or an add-to-group step of another automation. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactAddedToGroup.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactAddedToGroup-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "joins group",
            "group membership",
            "tagged",
            "segment entry",
            "add added to group trigger",
            "new added to group trigger"
          ],
          "es": [
            "entra en un grupo",
            "pertenece a grupo",
            "añadido al grupo",
            "etiquetado",
            "añadir disparador de contacto añadido a grupo",
            "nuevo disparador de contacto añadido a grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/contact_removed_from_group": {
      "post": {
        "operationId": "create_trigger_contact_removed_from_group",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a contact removed from group trigger",
        "description": "Starts the automation when a contact of the audience is removed from the chosen group.\n\n**When to use:** To react when a contact stops belonging to a group: send an exit survey, or start a win-back flow when someone leaves a customers group.\n\n**When not to use:** To react when a contact joins a group, use `create_trigger_contact_added_to_group`. To remove contacts from a group from inside an automation, use `create_step_remove_from_group`.\n\n**Side effects:** Fires when a contact is removed from that group one at a time, from the app or the API (`member_remove_from_group`, or a change of the contact's groups). It does not fire for mass removals (bulk actions and asynchronous group tasks that remove contacts from a group) or for the remove-from-group step of an automation. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactRemovedFromGroup.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactRemovedFromGroup-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "leaves group",
            "left group",
            "untagged",
            "segment exit",
            "add removed from group trigger",
            "new removed from group trigger"
          ],
          "es": [
            "sale de un grupo",
            "quitado del grupo",
            "deja de pertenecer",
            "sin etiqueta",
            "añadir disparador de contacto quitado de grupo",
            "nuevo disparador de contacto quitado de grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/contact_subscribed": {
      "post": {
        "operationId": "create_trigger_contact_subscribed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `sources` is empty or contains a value that is not allowed. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a contact subscribed trigger",
        "description": "Starts the automation when a contact becomes subscribed to the automation's audience (by email or by SMS) from one of the chosen origins: added in the app, added through the API or subscribed through a form.\n\n**When to use:** For welcome series and onboarding of new subscribers.\n\n**When not to use:** To react every time someone completes a given form, including people who were already subscribed, use `create_trigger_form_completed`. To start contacts that are already in the audience, create a `custom_api` trigger with `create_trigger_custom_api` and call `trigger_custom_api`.\n\n**Side effects:** Fires when the subscription is confirmed (with double opt-in, when the contact confirms) and only if the contact was not subscribed yet: updating an existing subscriber does not fire it, a contact who subscribes again does. Contacts brought in by an import or a bulk action do not start it. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactSubscribed.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactSubscribed-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new subscriber",
            "signup",
            "welcome series",
            "opt-in",
            "new lead",
            "add subscriber signup trigger",
            "new subscriber signup trigger"
          ],
          "es": [
            "nuevo suscriptor",
            "alta",
            "serie de bienvenida",
            "nuevo contacto",
            "confirmación de suscripción",
            "añadir disparador de alta de suscriptor",
            "nuevo disparador de alta de suscriptor"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/custom_api": {
      "post": {
        "operationId": "create_trigger_custom_api",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a custom API trigger",
        "description": "Adds a trigger that your own system fires, one contact at a time, by calling `trigger_custom_api`.\n\n**When to use:** When another system (your app, a CRM, a payment tool) must decide who enters the automation and when.\n\n**When not to use:** If Easymailing can detect the event itself (a form, a purchase, a click), use the trigger for that event. To start the automation from another automation, use `create_step_trigger_automation`.\n\n**Side effects:** Nothing starts until `trigger_custom_api` is called with this trigger in `automation_trigger` and the automation is active. The automation is taken from that trigger: the `automationUuid` in the URL of that call is not checked. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerCustomApi.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerCustomApi-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "api call",
            "external trigger",
            "start from my app",
            "programmatic start",
            "webhook start",
            "add custom API trigger",
            "new custom API trigger"
          ],
          "es": [
            "llamada api",
            "disparador externo",
            "iniciar desde mi sistema",
            "integración externa",
            "desde mi aplicación",
            "añadir disparador de llamada API",
            "nuevo disparador de llamada API"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/form_completed": {
      "post": {
        "operationId": "create_trigger_form_completed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `suscription_form` is missing or is not a form IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a form completed trigger",
        "description": "Starts the automation each time a contact completes the chosen subscription form.\n\n**When to use:** To give one form its own follow-up, for example a different welcome email for each landing page.\n\n**When not to use:** To react to any new subscriber whatever the origin, use `create_trigger_contact_subscribed`; unlike this one, it does not fire for people who were already subscribed.\n\n**Side effects:** It fires every time the form is completed, also by contacts who were already subscribed; with double opt-in it fires when the contact confirms. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerFormCompleted.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerFormCompleted-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "form submission",
            "signup form",
            "lead form",
            "submitted form",
            "add form completed trigger",
            "new form completed trigger"
          ],
          "es": [
            "formulario enviado",
            "formulario de suscripción",
            "alta por formulario",
            "captación de leads",
            "añadir disparador de formulario completado",
            "nuevo disparador de formulario completado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/not_click_on_campaign": {
      "post": {
        "operationId": "create_trigger_not_click_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign not clicked trigger",
        "description": "Starts the automation for contacts who received the chosen email campaign but did not click any link in it, about 24 hours after the campaign finished sending.\n\n**When to use:** To nudge people who ignored the links of a campaign with a reminder or a different offer.\n\n**When not to use:** For contacts who did not open the campaign at all, use `create_trigger_not_open_on_campaign`. For those who did click, use `create_trigger_click_on_campaign`.\n\n**Side effects:** A scheduled check, run about every minute, looks at campaigns that finished sending 24 to 28 hours ago, so create the trigger and activate the automation before the campaign is 24 hours old: later it is too late. Only campaigns that contain at least one link can match. Contacts whose message bounced are not filtered out and count as not having clicked. The campaign must belong to the same audience as the automation: the API does not check it, and a trigger for a campaign of another audience is saved but never fires. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotClickOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotClickOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "no click",
            "ignored links",
            "did not click",
            "follow up non-clickers",
            "add no click trigger",
            "new no click trigger"
          ],
          "es": [
            "no hizo clic",
            "sin clic",
            "no pulsó",
            "seguimiento a quienes no clican",
            "añadir disparador de sin clic",
            "nuevo disparador de sin clic"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/not_open_on_campaign": {
      "post": {
        "operationId": "create_trigger_not_open_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign not opened trigger",
        "description": "Starts the automation for contacts who received the chosen email campaign but did not open it, about 24 hours after the campaign finished sending.\n\n**When to use:** To resend the same message with a new subject line, or to follow up with people who did not read it.\n\n**When not to use:** For contacts who opened but did not click, use `create_trigger_not_click_on_campaign`. For those who open it, use `create_trigger_open_on_campaign`.\n\n**Side effects:** A scheduled check, run about every minute, looks at campaigns that finished sending 24 to 28 hours ago, so create the trigger and activate the automation before the campaign is 24 hours old: later it is too late. Contacts whose message bounced are not filtered out and count as not having opened. The campaign must belong to the same audience as the automation: the API does not check it, and a trigger for a campaign of another audience is saved but never fires. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotOpenOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotOpenOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unopened",
            "not read",
            "did not open",
            "resend to non-openers",
            "add not opened trigger",
            "new not opened trigger"
          ],
          "es": [
            "no abrió",
            "sin abrir",
            "no leyó",
            "reenviar a quienes no abren",
            "añadir disparador de sin abrir",
            "nuevo disparador de sin abrir"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/open_on_campaign": {
      "post": {
        "operationId": "create_trigger_open_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign open trigger",
        "description": "Starts the automation for a contact when an open of the chosen email campaign is recorded.\n\n**When to use:** To follow up with readers right after they open: send a related offer or mark them as engaged.\n\n**When not to use:** To react to a click on a link, use `create_trigger_click_on_campaign`. For contacts who never opened it, use `create_trigger_not_open_on_campaign`.\n\n**Side effects:** A click on a link also records an open, so a contact who clicks starts it even if the tracking pixel was blocked. Opens made by mail privacy proxies or automated scanners are recorded too and are not filtered out, so they can start the automation. The campaign must belong to the same audience as the automation: the API does not check it, and a trigger for a campaign of another audience is saved but never fires. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOpenOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOpenOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opened email",
            "readers",
            "open tracking",
            "engaged after open",
            "when someone opens a campaign",
            "add campaign open trigger",
            "new campaign open trigger"
          ],
          "es": [
            "abrió el email",
            "apertura",
            "lectores",
            "leyó la campaña",
            "cuando alguien abre una campaña",
            "añadir disparador de apertura de campaña",
            "nuevo disparador de apertura de campaña"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/order_cancelled": {
      "post": {
        "operationId": "create_trigger_order_cancelled",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an order cancelled trigger",
        "description": "Starts the automation for the customer when an order of the chosen store is marked as cancelled.\n\n**When to use:** To follow up on a cancellation: ask why, offer help or a discount to win the customer back.\n\n**When not to use:** To react to a refund, use `create_trigger_order_refunded`. To react when an order is paid or shipped, use `create_trigger_order_paid` or `create_trigger_order_shipped`.\n\n**Side effects:** Fires when the order is cancelled (for example with `cancel_order`). The order is attached to the run, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderCancelled.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderCancelled-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "cancelled purchase",
            "order cancellation",
            "win back after cancel",
            "add order cancelled trigger",
            "new order cancelled trigger"
          ],
          "es": [
            "pedido cancelado",
            "cancelación de compra",
            "recuperar tras cancelar",
            "anulación",
            "añadir disparador de pedido cancelado",
            "nuevo disparador de pedido cancelado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/order_paid": {
      "post": {
        "operationId": "create_trigger_order_paid",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an order paid trigger",
        "description": "Starts the automation for the customer when an order of the chosen store is marked as paid.\n\n**When to use:** For payment confirmations, thank-you messages or invoices sent as soon as the money is received.\n\n**When not to use:** To react only when specific products or categories were bought, use `create_trigger_buy_a_product` (it fires on the same event). For orders still waiting for payment, use `create_trigger_payment_reminder`. For a message when the order is placed, use `create_trigger_order_processed`.\n\n**Side effects:** Fires when the order is paid (for example with `pay_order`). The order is attached to the run, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderPaid.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderPaid-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "payment received",
            "order confirmation",
            "receipt",
            "purchase completed",
            "when an order is paid",
            "add order paid trigger",
            "new order paid trigger"
          ],
          "es": [
            "pago recibido",
            "pedido pagado",
            "confirmación de compra",
            "cobro realizado",
            "cuando se paga un pedido",
            "añadir disparador de pedido pagado",
            "nuevo disparador de pedido pagado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/order_processed": {
      "post": {
        "operationId": "create_trigger_order_processed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an order processed trigger",
        "description": "Starts the automation for the customer when an order of the chosen store is marked as processed, that is, placed but not necessarily paid yet.\n\n**When to use:** For an immediate \"we received your order\" message.\n\n**When not to use:** For a message once the money arrives, use `create_trigger_order_paid`. To chase an unpaid order after some time, use `create_trigger_payment_reminder`. For a cart that was never placed, use `create_trigger_abandoned_cart`.\n\n**Side effects:** Fires when the order is processed (for example with `process_order`). It also cancels any cart-recovery run of that order. The order is attached to the run so emails can use its data, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderProcessed.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderProcessed-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "order placed",
            "new order",
            "checkout completed",
            "we received your order",
            "add order placed trigger",
            "new order placed trigger"
          ],
          "es": [
            "pedido realizado",
            "nuevo pedido",
            "pedido recibido",
            "checkout completado",
            "añadir disparador de pedido realizado",
            "nuevo disparador de pedido realizado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/order_refunded": {
      "post": {
        "operationId": "create_trigger_order_refunded",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an order refunded trigger",
        "description": "Starts the automation for the customer when an order of the chosen store is marked as refunded.\n\n**When to use:** To follow up on a refund: confirm it, ask for feedback or offer an alternative.\n\n**When not to use:** To react to a cancellation, use `create_trigger_order_cancelled`.\n\n**Side effects:** Fires when the order is refunded (for example with `refund_order`). The order is attached to the run, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderRefunded.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderRefunded-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "refund",
            "money back",
            "returned order",
            "return",
            "add order refunded trigger",
            "new order refunded trigger"
          ],
          "es": [
            "reembolso",
            "devolución",
            "pedido devuelto",
            "dinero devuelto",
            "añadir disparador de pedido reembolsado",
            "nuevo disparador de pedido reembolsado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/order_shipped": {
      "post": {
        "operationId": "create_trigger_order_shipped",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an order shipped trigger",
        "description": "Starts the automation for the customer when an order of the chosen store is marked as shipped.\n\n**When to use:** For shipping notifications, tracking information or delivery follow-ups.\n\n**When not to use:** To react when the order is paid, use `create_trigger_order_paid`; when it is placed, `create_trigger_order_processed`.\n\n**Side effects:** Fires when the order is shipped (for example with `ship_order`). The order is attached to the run, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderShipped.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderShipped-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "dispatched",
            "tracking number",
            "delivery notice",
            "shipping notification",
            "add order shipped trigger",
            "new order shipped trigger"
          ],
          "es": [
            "pedido enviado",
            "envío realizado",
            "número de seguimiento",
            "expedido",
            "añadir disparador de pedido enviado",
            "nuevo disparador de pedido enviado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/payment_reminder": {
      "post": {
        "operationId": "create_trigger_payment_reminder",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value` or `delay_unit` is missing, or the waiting time is longer than 1 month. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a payment reminder trigger",
        "description": "Starts the automation for a customer whose order was processed but is still unpaid after the chosen waiting time.\n\n**When to use:** To remind customers who placed an order, for example by bank transfer, to complete the payment.\n\n**When not to use:** For carts that were never placed, use `create_trigger_abandoned_cart`. To react when the order is paid, use `create_trigger_order_paid`. For an immediate \"we received your order\" message, use `create_trigger_order_processed`.\n\n**Side effects:** Known limit: the scheduled check only looks at orders processed within the previous 2 hours, so a waiting time above 2 hours matches no order and the trigger never fires. The run is cancelled automatically when the order is paid or deleted. The order is attached to the run so emails can use its data, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerPaymentReminder.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerPaymentReminder-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unpaid order",
            "pending payment",
            "awaiting payment",
            "payment nudge",
            "add payment reminder trigger",
            "new payment reminder trigger"
          ],
          "es": [
            "pago pendiente",
            "pedido sin pagar",
            "recordatorio de pago",
            "impago",
            "añadir disparador de recordatorio de pago",
            "nuevo disparador de recordatorio de pago"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/send_a_campaign": {
      "post": {
        "operationId": "create_trigger_send_a_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a campaign sent trigger",
        "description": "Starts the automation for each contact the chosen email campaign is sent to.\n\n**When to use:** To chain a follow-up to a campaign: for example add everyone who received it to a group, or wait and send a second email.\n\n**When not to use:** To react to what the contact does with the campaign, use `create_trigger_open_on_campaign` or `create_trigger_click_on_campaign`.\n\n**Side effects:** It fires for every recipient as the campaign is sent, when the message is handed to the mail server and before delivery is known, so contacts whose message later bounces start it too. The trigger and the active automation must exist before the campaign starts sending; contacts already sent are not started afterwards. Email campaigns only. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSendACampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSendACampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "campaign delivered",
            "after sending",
            "received the campaign",
            "follow-up email",
            "add campaign sent trigger",
            "new campaign sent trigger"
          ],
          "es": [
            "campaña enviada",
            "tras el envío",
            "recibió el email",
            "después de enviar",
            "añadir disparador de campaña enviada",
            "nuevo disparador de campaña enviada"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/specific_date": {
      "post": {
        "operationId": "create_trigger_specific_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `list_field` is missing, `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a specific date trigger",
        "description": "Starts the automation for a contact when the date stored in a date custom field is reached, or a few days or weeks before it.\n\n**When to use:** For one-off dates: an event the contact signed up for, a contract expiry or the end of a trial.\n\n**When not to use:** For dates that repeat every year, such as birthdays, use `create_trigger_anniversary_date`. For the anniversary of the day the contact subscribed, use `create_trigger_suscription_date`.\n\n**Side effects:** A scheduled check runs about every minute; a contact matches during the 6 hours after the date (or after the moment `delay_value` before it) is reached, so a field that holds only a date matches in the first hours of that day. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSpecificDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSpecificDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "date field",
            "event date",
            "deadline",
            "expiry date",
            "appointment",
            "add specific date trigger",
            "new specific date trigger"
          ],
          "es": [
            "fecha concreta",
            "campo de fecha",
            "fecha del evento",
            "vencimiento",
            "cita",
            "añadir disparador de fecha concreta",
            "nuevo disparador de fecha concreta"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/suscriber_revalidation": {
      "post": {
        "operationId": "create_trigger_suscriber_revalidation",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a subscriber revalidation trigger",
        "description": "Starts the automation for a contact who revalidates (reconfirms) their subscription from the public revalidation form.\n\n**When to use:** To thank contacts who reconfirmed after a revalidation request, or to move them to a clean group.\n\n**When not to use:** To send the revalidation request itself, create a revalidation campaign with `create_campaign_revalidation`. To react to any new subscription, use `create_trigger_contact_subscribed`.\n\n**Side effects:** Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriberRevalidation.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriberRevalidation-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reconfirm",
            "revalidate",
            "re-opt-in",
            "confirm again",
            "list cleaning",
            "add revalidation trigger",
            "new revalidation trigger"
          ],
          "es": [
            "revalidar",
            "reconfirmar suscripción",
            "confirmar de nuevo",
            "limpieza de lista",
            "añadir disparador de revalidación",
            "nuevo disparador de revalidación"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/suscription_date": {
      "post": {
        "operationId": "create_trigger_suscription_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a subscription date trigger",
        "description": "Starts the automation each year on the anniversary of the date the contact subscribed, optionally a few days or weeks before.\n\n**When to use:** To mark how long someone has been a subscriber or to send a yearly loyalty message.\n\n**When not to use:** For a date you store yourself in a custom field, use `create_trigger_anniversary_date` or `create_trigger_specific_date`. To welcome a contact when it subscribes, use `create_trigger_contact_subscribed`.\n\n**Side effects:** It compares only the day of the year of the subscription date, not the year, so it also fires on the day a contact subscribes. With a delay, it does not wrap around the end of the year (a subscription in early January is not matched in late December). Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact is never started again within 6 months of its previous run, and enters again at all only if `workflow_repeat` is true.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriptionDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriptionDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "signup anniversary",
            "subscribed since",
            "loyalty anniversary",
            "membership anniversary",
            "add subscription date trigger",
            "new subscription date trigger"
          ],
          "es": [
            "aniversario de suscripción",
            "antigüedad del suscriptor",
            "fidelización",
            "tiempo suscrito",
            "añadir disparador de fecha de suscripción",
            "nuevo disparador de fecha de suscripción"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/time_since_last_purchase": {
      "post": {
        "operationId": "create_trigger_time_since_last_purchase",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "201": {
            "description": "AutomationTrigger resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value` or `delay_unit` is missing, or the time is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a time since last purchase trigger",
        "description": "Starts the automation for a customer when the chosen time (hours, days or weeks) has passed since one of their orders in the store was placed.\n\n**When to use:** To bring customers back: a reorder reminder or a win-back offer some weeks after they bought.\n\n**When not to use:** For a message right after the purchase, use `create_trigger_order_paid` or `create_trigger_buy_a_product`. For a cart that was never placed, use `create_trigger_abandoned_cart`.\n\n**Side effects:** Known behavior: each order is looked at on its own, counted from the moment it was placed. The trigger does not check that it is the customer's last order, so a customer who ordered again still starts it. Carts and orders awaiting payment are ignored, but cancelled and refunded orders count. The order is attached to the run so emails can use its data, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact that is already running through the automation is not started again; after finishing, it can enter again only if `workflow_repeat` is true and 24 hours have passed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerTimeSinceLastPurchase.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerTimeSinceLastPurchase-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "repurchase",
            "win back customers",
            "lapsed buyers",
            "reorder reminder",
            "add time since purchase trigger",
            "new time since purchase trigger"
          ],
          "es": [
            "recompra",
            "clientes inactivos",
            "recordatorio de reposición",
            "reactivar clientes",
            "añadir disparador de tiempo desde la compra",
            "nuevo disparador de tiempo desde la compra"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}": {
      "get": {
        "operationId": "get_automation_trigger",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The trigger does not exist. List the triggers of the automation with `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an automation trigger",
        "description": "Returns one trigger of an automation: its type, whether it is enabled or paused, the workflow repeat setting, its configuration and the counters of contacts it started.\n\n**When to use:** To check how a trigger is configured or whether it is paused.\n\n**When not to use:** To list all the triggers of an automation, use `list_automation_triggers`.\n\n**Side effects:** The counters are recalculated periodically in the background, so they can lag behind what just happened.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "trigger settings",
            "trigger configuration",
            "is trigger paused"
          ],
          "es": [
            "ajustes del disparador",
            "configuración del disparador",
            "disparador pausado"
          ]
        }
      },
      "delete": {
        "operationId": "delete_automation_trigger",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "204": {
            "description": "AutomationTrigger resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The trigger does not exist or was already deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an automation trigger",
        "description": "Permanently removes a trigger. The automation stops starting from that event.\n\n**When to use:** When an automation should no longer start that way, or to replace a trigger by one of another type: delete it and create the new one.\n\n**When not to use:** To stop it only for a while, use `automation_trigger_pause`. To delete the whole automation, use `delete_automation`.\n\n**Side effects:** The runs of contacts that entered through this trigger are deleted with it, so they disappear from the automation counters and from `list_automation_queues`. Because their runs disappear, those contacts are also forgotten by the \"each contact runs once\" rule of the automation.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove trigger",
            "drop entry point",
            "discard start condition"
          ],
          "es": [
            "quitar disparador",
            "borrar condición de inicio",
            "eliminar punto de entrada"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/abandoned_cart": {
      "put": {
        "operationId": "update_trigger_abandoned_cart",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value`, `delay_unit` or `condition` is missing or invalid, the waiting time is longer than 1 month, or the condition selects specific products or categories but none were sent. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an abandoned cart trigger",
        "description": "Changes an existing abandoned cart trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the waiting time or the products and categories that qualify a cart.\n\n**When not to use:** To add a new abandoned cart trigger to an automation, use `create_trigger_abandoned_cart`. Call this operation only on a trigger whose `trigger_type` is `trigger.abandoned.cart`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAbandonedCart.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAbandonedCart-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit abandoned cart trigger",
            "change abandoned cart trigger settings",
            "modify existing abandoned cart trigger",
            "cart recovery"
          ],
          "es": [
            "editar disparador de carrito abandonado",
            "cambiar ajustes del disparador de carrito abandonado",
            "modificar disparador existente de carrito abandonado",
            "recuperar carrito"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/admin_manual": {
      "put": {
        "operationId": "update_trigger_admin_manual",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an admin manual trigger",
        "description": "Changes an existing admin manual trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change whether contacts started manually can repeat the workflow.\n\n**When not to use:** To add a new admin manual trigger to an automation, use `create_trigger_admin_manual`. Call this operation only on a trigger whose `trigger_type` is `trigger.admin.manual`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAdminManual.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAdminManual-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit manual start trigger",
            "change manual start trigger settings",
            "modify existing manual start trigger",
            "manual enrollment"
          ],
          "es": [
            "editar disparador de inicio manual",
            "cambiar ajustes del disparador de inicio manual",
            "modificar disparador existente de inicio manual",
            "inicio manual"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/aniversary_date": {
      "put": {
        "operationId": "update_trigger_anniversary_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `list_field` is missing, `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an anniversary date trigger",
        "description": "Changes an existing anniversary date trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the date field or how long before the date it starts.\n\n**When not to use:** To add a new anniversary date trigger to an automation, use `create_trigger_anniversary_date`. Call this operation only on a trigger whose `trigger_type` is `trigger.aniversary.date`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAniversaryDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerAniversaryDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit birthday trigger",
            "change birthday trigger settings",
            "modify existing birthday trigger",
            "birthday"
          ],
          "es": [
            "editar disparador de cumpleaños",
            "cambiar ajustes del disparador de cumpleaños",
            "modificar disparador existente de cumpleaños",
            "cumpleaños"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/buy_a_product": {
      "put": {
        "operationId": "update_trigger_buy_a_product",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store` or `condition` is missing, or the condition selects specific products or categories but none were sent. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a product purchase trigger",
        "description": "Changes an existing product purchase trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store or the products and categories that qualify an order.\n\n**When not to use:** To add a new product purchase trigger to an automation, use `create_trigger_buy_a_product`. Call this operation only on a trigger whose `trigger_type` is `trigger.buy.a.product`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerBuyAProduct.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerBuyAProduct-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit product purchase trigger",
            "change product purchase trigger settings",
            "modify existing product purchase trigger",
            "purchase"
          ],
          "es": [
            "editar disparador de compra de producto",
            "cambiar ajustes del disparador de compra de producto",
            "modificar disparador existente de compra de producto",
            "compra"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/click_on_campaign": {
      "put": {
        "operationId": "update_trigger_click_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign click trigger",
        "description": "Changes an existing campaign click trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the campaign whose clicks start the automation.\n\n**When not to use:** To add a new campaign click trigger to an automation, use `create_trigger_click_on_campaign`. Call this operation only on a trigger whose `trigger_type` is `trigger.click.on.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit campaign click trigger",
            "change campaign click trigger settings",
            "modify existing campaign click trigger",
            "link clicked"
          ],
          "es": [
            "editar disparador de clic en campaña",
            "cambiar ajustes del disparador de clic en campaña",
            "modificar disparador existente de clic en campaña",
            "hizo clic"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/click_on_campaign_link": {
      "put": {
        "operationId": "update_trigger_click_on_campaign_link",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `url` is missing or is not a valid URL. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign link click trigger",
        "description": "Changes an existing campaign link click trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the link or the campaign it is looked for in.\n\n**When not to use:** To add a new campaign link click trigger to an automation, use `create_trigger_click_on_campaign_link`. Call this operation only on a trigger whose `trigger_type` is `trigger.click.on.campaign.link`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaignLink.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerClickOnCampaignLink-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit link click trigger",
            "change link click trigger settings",
            "modify existing link click trigger",
            "specific link"
          ],
          "es": [
            "editar disparador de clic en enlace",
            "cambiar ajustes del disparador de clic en enlace",
            "modificar disparador existente de clic en enlace",
            "enlace concreto"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/contact_added_to_group": {
      "put": {
        "operationId": "update_trigger_contact_added_to_group",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a contact added to group trigger",
        "description": "Changes an existing contact added to group trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the group that starts the automation.\n\n**When not to use:** To add a new contact added to group trigger to an automation, use `create_trigger_contact_added_to_group`. Call this operation only on a trigger whose `trigger_type` is `trigger.contact.added.to.group`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactAddedToGroup.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactAddedToGroup-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit added to group trigger",
            "change added to group trigger settings",
            "modify existing added to group trigger",
            "joins group"
          ],
          "es": [
            "editar disparador de contacto añadido a grupo",
            "cambiar ajustes del disparador de contacto añadido a grupo",
            "modificar disparador existente de contacto añadido a grupo",
            "entra en un grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/contact_removed_from_group": {
      "put": {
        "operationId": "update_trigger_contact_removed_from_group",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `group` is missing or is not a group IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a contact removed from group trigger",
        "description": "Changes an existing contact removed from group trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the group whose removals start the automation.\n\n**When not to use:** To add a new contact removed from group trigger to an automation, use `create_trigger_contact_removed_from_group`. Call this operation only on a trigger whose `trigger_type` is `trigger.contact.removed.from.group`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactRemovedFromGroup.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactRemovedFromGroup-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit removed from group trigger",
            "change removed from group trigger settings",
            "modify existing removed from group trigger",
            "leaves group"
          ],
          "es": [
            "editar disparador de contacto quitado de grupo",
            "cambiar ajustes del disparador de contacto quitado de grupo",
            "modificar disparador existente de contacto quitado de grupo",
            "sale de un grupo"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/contact_subscribed": {
      "put": {
        "operationId": "update_trigger_contact_subscribed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `sources` is empty or contains a value that is not allowed. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a contact subscribed trigger",
        "description": "Changes an existing contact subscribed trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change which origins start the automation.\n\n**When not to use:** To add a new contact subscribed trigger to an automation, use `create_trigger_contact_subscribed`. Call this operation only on a trigger whose `trigger_type` is `trigger.contact.suscribed`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactSubscribed.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerContactSubscribed-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit subscriber signup trigger",
            "change subscriber signup trigger settings",
            "modify existing subscriber signup trigger",
            "new subscriber"
          ],
          "es": [
            "editar disparador de alta de suscriptor",
            "cambiar ajustes del disparador de alta de suscriptor",
            "modificar disparador existente de alta de suscriptor",
            "nuevo suscriptor"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/custom_api": {
      "put": {
        "operationId": "update_trigger_custom_api",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a custom API trigger",
        "description": "Changes an existing custom API trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change whether contacts started through the API can repeat the workflow.\n\n**When not to use:** To add a new custom API trigger to an automation, use `create_trigger_custom_api`. Call this operation only on a trigger whose `trigger_type` is `trigger.custom.api`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerCustomApi.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerCustomApi-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit custom API trigger",
            "change custom API trigger settings",
            "modify existing custom API trigger",
            "api call"
          ],
          "es": [
            "editar disparador de llamada API",
            "cambiar ajustes del disparador de llamada API",
            "modificar disparador existente de llamada API",
            "llamada api"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/enable": {
      "put": {
        "operationId": "automation_trigger_enable",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Enable an automation trigger",
        "description": "Enables a trigger that was paused so it starts new contacts again.\n\n**When to use:** To resume a trigger paused with `automation_trigger_pause`. Triggers are enabled when created, so this is only needed after a pause.\n\n**When not to use:** To resume the whole automation, use `automation_activate`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "resume trigger",
            "turn trigger on",
            "restart entry"
          ],
          "es": [
            "reactivar disparador",
            "encender disparador",
            "reanudar entrada"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/form_completed": {
      "put": {
        "operationId": "update_trigger_form_completed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `suscription_form` is missing or is not a form IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a form completed trigger",
        "description": "Changes an existing form completed trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the form that starts the automation.\n\n**When not to use:** To add a new form completed trigger to an automation, use `create_trigger_form_completed`. Call this operation only on a trigger whose `trigger_type` is `trigger.form.completed`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerFormCompleted.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerFormCompleted-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit form completed trigger",
            "change form completed trigger settings",
            "modify existing form completed trigger",
            "form submission"
          ],
          "es": [
            "editar disparador de formulario completado",
            "cambiar ajustes del disparador de formulario completado",
            "modificar disparador existente de formulario completado",
            "formulario enviado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/not_click_on_campaign": {
      "put": {
        "operationId": "update_trigger_not_click_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign not clicked trigger",
        "description": "Changes an existing campaign not clicked trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the campaign that is checked.\n\n**When not to use:** To add a new campaign not clicked trigger to an automation, use `create_trigger_not_click_on_campaign`. Call this operation only on a trigger whose `trigger_type` is `trigger.not.click.on.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotClickOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotClickOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit no click trigger",
            "change no click trigger settings",
            "modify existing no click trigger",
            "no click"
          ],
          "es": [
            "editar disparador de sin clic",
            "cambiar ajustes del disparador de sin clic",
            "modificar disparador existente de sin clic",
            "no hizo clic"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/not_open_on_campaign": {
      "put": {
        "operationId": "update_trigger_not_open_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign not opened trigger",
        "description": "Changes an existing campaign not opened trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the campaign that is checked.\n\n**When not to use:** To add a new campaign not opened trigger to an automation, use `create_trigger_not_open_on_campaign`. Call this operation only on a trigger whose `trigger_type` is `trigger.not.open.on.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotOpenOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerNotOpenOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit not opened trigger",
            "change not opened trigger settings",
            "modify existing not opened trigger",
            "unopened"
          ],
          "es": [
            "editar disparador de sin abrir",
            "cambiar ajustes del disparador de sin abrir",
            "modificar disparador existente de sin abrir",
            "no abrió"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/open_on_campaign": {
      "put": {
        "operationId": "update_trigger_open_on_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign open trigger",
        "description": "Changes an existing campaign open trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the campaign whose opens start the automation.\n\n**When not to use:** To add a new campaign open trigger to an automation, use `create_trigger_open_on_campaign`. Call this operation only on a trigger whose `trigger_type` is `trigger.open.on.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOpenOnCampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOpenOnCampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit campaign open trigger",
            "change campaign open trigger settings",
            "modify existing campaign open trigger",
            "opened email"
          ],
          "es": [
            "editar disparador de apertura de campaña",
            "cambiar ajustes del disparador de apertura de campaña",
            "modificar disparador existente de apertura de campaña",
            "abrió el email"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/order_cancelled": {
      "put": {
        "operationId": "update_trigger_order_cancelled",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order cancelled trigger",
        "description": "Changes an existing order cancelled trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store whose cancelled orders start the automation.\n\n**When not to use:** To add a new order cancelled trigger to an automation, use `create_trigger_order_cancelled`. Call this operation only on a trigger whose `trigger_type` is `trigger.order.cancelled`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderCancelled.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderCancelled-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit order cancelled trigger",
            "change order cancelled trigger settings",
            "modify existing order cancelled trigger",
            "cancelled purchase"
          ],
          "es": [
            "editar disparador de pedido cancelado",
            "cambiar ajustes del disparador de pedido cancelado",
            "modificar disparador existente de pedido cancelado",
            "pedido cancelado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/order_paid": {
      "put": {
        "operationId": "update_trigger_order_paid",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order paid trigger",
        "description": "Changes an existing order paid trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store whose paid orders start the automation.\n\n**When not to use:** To add a new order paid trigger to an automation, use `create_trigger_order_paid`. Call this operation only on a trigger whose `trigger_type` is `trigger.order.paid`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderPaid.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderPaid-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit order paid trigger",
            "change order paid trigger settings",
            "modify existing order paid trigger",
            "payment received"
          ],
          "es": [
            "editar disparador de pedido pagado",
            "cambiar ajustes del disparador de pedido pagado",
            "modificar disparador existente de pedido pagado",
            "pago recibido"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/order_processed": {
      "put": {
        "operationId": "update_trigger_order_processed",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order processed trigger",
        "description": "Changes an existing order processed trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store whose processed orders start the automation.\n\n**When not to use:** To add a new order processed trigger to an automation, use `create_trigger_order_processed`. Call this operation only on a trigger whose `trigger_type` is `trigger.order.processed`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderProcessed.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderProcessed-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit order placed trigger",
            "change order placed trigger settings",
            "modify existing order placed trigger",
            "order placed"
          ],
          "es": [
            "editar disparador de pedido realizado",
            "cambiar ajustes del disparador de pedido realizado",
            "modificar disparador existente de pedido realizado",
            "pedido realizado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/order_refunded": {
      "put": {
        "operationId": "update_trigger_order_refunded",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order refunded trigger",
        "description": "Changes an existing order refunded trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store whose refunded orders start the automation.\n\n**When not to use:** To add a new order refunded trigger to an automation, use `create_trigger_order_refunded`. Call this operation only on a trigger whose `trigger_type` is `trigger.order.refunded`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderRefunded.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderRefunded-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit order refunded trigger",
            "change order refunded trigger settings",
            "modify existing order refunded trigger",
            "refund"
          ],
          "es": [
            "editar disparador de pedido reembolsado",
            "cambiar ajustes del disparador de pedido reembolsado",
            "modificar disparador existente de pedido reembolsado",
            "reembolso"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/order_shipped": {
      "put": {
        "operationId": "update_trigger_order_shipped",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`store` is missing or is not a store IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order shipped trigger",
        "description": "Changes an existing order shipped trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store whose shipped orders start the automation.\n\n**When not to use:** To add a new order shipped trigger to an automation, use `create_trigger_order_shipped`. Call this operation only on a trigger whose `trigger_type` is `trigger.order.shipped`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderShipped.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerOrderShipped-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit order shipped trigger",
            "change order shipped trigger settings",
            "modify existing order shipped trigger",
            "dispatched"
          ],
          "es": [
            "editar disparador de pedido enviado",
            "cambiar ajustes del disparador de pedido enviado",
            "modificar disparador existente de pedido enviado",
            "pedido enviado"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/pause": {
      "put": {
        "operationId": "automation_trigger_pause",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Pause an automation trigger",
        "description": "Disables a trigger so it stops starting new contacts. Its configuration is kept.\n\n**When to use:** To stop one way of entering for a while while the automation and its other triggers keep working.\n\n**When not to use:** To stop the whole automation, use `automation_pause`. To remove the trigger for good, use `delete_automation_trigger`.\n\n**Side effects:** Contacts already running through the automation continue; only new entries are blocked. Resume it with `automation_trigger_enable`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "disable trigger",
            "stop entry",
            "suspend start condition"
          ],
          "es": [
            "desactivar disparador",
            "detener entrada",
            "suspender condición de inicio"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/payment_reminder": {
      "put": {
        "operationId": "update_trigger_payment_reminder",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value` or `delay_unit` is missing, or the waiting time is longer than 1 month. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a payment reminder trigger",
        "description": "Changes an existing payment reminder trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store or the waiting time before the reminder.\n\n**When not to use:** To add a new payment reminder trigger to an automation, use `create_trigger_payment_reminder`. Call this operation only on a trigger whose `trigger_type` is `trigger.payment.reminder`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerPaymentReminder.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerPaymentReminder-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit payment reminder trigger",
            "change payment reminder trigger settings",
            "modify existing payment reminder trigger",
            "unpaid order"
          ],
          "es": [
            "editar disparador de recordatorio de pago",
            "cambiar ajustes del disparador de recordatorio de pago",
            "modificar disparador existente de recordatorio de pago",
            "pago pendiente"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/send_a_campaign": {
      "put": {
        "operationId": "update_trigger_send_a_campaign",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign` is missing or is not a campaign IRI. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a campaign sent trigger",
        "description": "Changes an existing campaign sent trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the campaign whose delivery starts the automation.\n\n**When not to use:** To add a new campaign sent trigger to an automation, use `create_trigger_send_a_campaign`. Call this operation only on a trigger whose `trigger_type` is `trigger.send.a.campaign`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSendACampaign.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSendACampaign-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit campaign sent trigger",
            "change campaign sent trigger settings",
            "modify existing campaign sent trigger",
            "campaign delivered"
          ],
          "es": [
            "editar disparador de campaña enviada",
            "cambiar ajustes del disparador de campaña enviada",
            "modificar disparador existente de campaña enviada",
            "campaña enviada"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/specific_date": {
      "put": {
        "operationId": "update_trigger_specific_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `list_field` is missing, `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a specific date trigger",
        "description": "Changes an existing specific date trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the date field or how long before the date it starts.\n\n**When not to use:** To add a new specific date trigger to an automation, use `create_trigger_specific_date`. Call this operation only on a trigger whose `trigger_type` is `trigger.specific.date`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSpecificDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSpecificDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit specific date trigger",
            "change specific date trigger settings",
            "modify existing specific date trigger",
            "date field"
          ],
          "es": [
            "editar disparador de fecha concreta",
            "cambiar ajustes del disparador de fecha concreta",
            "modificar disparador existente de fecha concreta",
            "fecha concreta"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/suscriber_revalidation": {
      "put": {
        "operationId": "update_trigger_suscriber_revalidation",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a subscriber revalidation trigger",
        "description": "Changes an existing subscriber revalidation trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change whether contacts who revalidate can repeat the workflow.\n\n**When not to use:** To add a new subscriber revalidation trigger to an automation, use `create_trigger_suscriber_revalidation`. Call this operation only on a trigger whose `trigger_type` is `trigger.suscriber.revalidation`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriberRevalidation.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriberRevalidation-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit revalidation trigger",
            "change revalidation trigger settings",
            "modify existing revalidation trigger",
            "reconfirm"
          ],
          "es": [
            "editar disparador de revalidación",
            "cambiar ajustes del disparador de revalidación",
            "modificar disparador existente de revalidación",
            "revalidar"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/suscription_date": {
      "put": {
        "operationId": "update_trigger_suscription_date",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `delay` is true without `delay_value` and `delay_unit`, or the delay is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a subscription date trigger",
        "description": "Changes an existing subscription date trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change how long before the anniversary the automation starts.\n\n**When not to use:** To add a new subscription date trigger to an automation, use `create_trigger_suscription_date`. Call this operation only on a trigger whose `trigger_type` is `trigger.suscription.date`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriptionDate.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerSuscriptionDate-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit subscription date trigger",
            "change subscription date trigger settings",
            "modify existing subscription date trigger",
            "signup anniversary"
          ],
          "es": [
            "editar disparador de fecha de suscripción",
            "cambiar ajustes del disparador de fecha de suscripción",
            "modificar disparador existente de fecha de suscripción",
            "aniversario de suscripción"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_triggers/{uuid}/time_since_last_purchase": {
      "put": {
        "operationId": "update_trigger_time_since_last_purchase",
        "tags": [
          "Automation triggers"
        ],
        "responses": {
          "200": {
            "description": "AutomationTrigger resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_trigger.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTrigger-automation_trigger.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation or the trigger does not exist. List them with `list_automations` and `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `store`, `delay_value` or `delay_unit` is missing, or the time is longer than 3 months. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a time since last purchase trigger",
        "description": "Changes an existing time since last purchase trigger by replacing its settings with the values you send. The trigger keeps its type, its enabled or paused state and its counters.\n\n**When to use:** To change the store or how long after the order the automation starts.\n\n**When not to use:** To add a new time since last purchase trigger to an automation, use `create_trigger_time_since_last_purchase`. Call this operation only on a trigger whose `trigger_type` is `trigger.time.since.last.purchase`: the API does not check it, and sending the wrong kind replaces the settings of a trigger of another type with settings that do not fit it, which can break it. To change the type, delete the trigger with `delete_automation_trigger` and create the new one; to stop it for a while, use `automation_trigger_pause`.\n\n**Side effects:** The configuration is replaced as a whole: fields you omit go back to their defaults, so `workflow_repeat` becomes false if you leave it out. The new settings apply to events from then on.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the trigger, as returned by `list_automation_triggers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        ],
        "requestBody": {
          "description": "The updated AutomationTrigger resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerTimeSinceLastPurchase.jsonld-automation_trigger.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationTrigger.AutomationTriggerTimeSinceLastPurchase-automation_trigger.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit time since purchase trigger",
            "change time since purchase trigger settings",
            "modify existing time since purchase trigger",
            "repurchase"
          ],
          "es": [
            "editar disparador de tiempo desde la compra",
            "cambiar ajustes del disparador de tiempo desde la compra",
            "modificar disparador existente de tiempo desde la compra",
            "recompra"
          ]
        }
      }
    },
    "/automations": {
      "get": {
        "operationId": "list_automations",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "Automation collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Automation.jsonld-automation.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Automation-automation.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List the account's automations",
        "description": "Returns the account's automations, newest first. Each one shows its status (draft, active or paused), its audience, its triggers and how many contacts completed it, are running through it or were cancelled.\n\n**When to use:** To find an automation's uuid, or to check which automations are active or paused before editing, activating or pausing one.\n\n**When not to use:** To see which contacts are inside an automation, use `list_automation_queues`.\n\n**Filters:** `title`: only automations whose title contains the text (partial match). `audience`: uuid of an audience; only the automations of that audience. Newest first. Paginated with `page` and `itemsPerPage`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of items per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "title",
            "in": "query",
            "description": "Text to look for in the automation title (partial match).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Welcome"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "UUID of an audience. Returns only the automations of that audience.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflows",
            "flows",
            "drip campaigns",
            "automated emails",
            "journeys"
          ],
          "es": [
            "automatizaciones",
            "flujos",
            "flujos de trabajo",
            "emails automáticos",
            "mis automatizaciones"
          ]
        }
      },
      "post": {
        "operationId": "create_automation",
        "tags": [
          "Automations"
        ],
        "responses": {
          "201": {
            "description": "Automation resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation.jsonld-automation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation-automation.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation: `title` is missing or `audience` is missing or not an audience IRI. The field is named in `violations[].propertyPath`; fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an automation",
        "description": "Creates an empty automation in draft status for one audience. It starts with one manual trigger and no steps, and nothing runs until you add steps and triggers and activate it.\n\n**When to use:** To build a new workflow, for example a welcome series for new subscribers or a follow-up after a purchase. Then add steps with the `create_step_*` operations, triggers with the `create_trigger_*` operations, and finish with `automation_activate`.\n\n**When not to use:** To send one email to an audience a single time, create an email campaign with `create_campaign`. To rename an existing automation, use `update_automation`.\n\n**Side effects:** The new automation is a draft, so it sends nothing yet. Its audience cannot be changed afterwards.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Automation resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Automation.jsonld-automation.write.create_automation"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Automation-automation.write.create_automation"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new workflow",
            "new flow",
            "build automation",
            "drip sequence",
            "automated journey"
          ],
          "es": [
            "nueva automatización",
            "crear flujo",
            "montar automatización",
            "nueva serie automática",
            "flujo automático"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_queues": {
      "get": {
        "operationId": "list_automation_queues",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "AutomationQueue collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AutomationQueue.jsonld-automation_queue.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationQueue-automation_queue.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List contacts running in an automation",
        "description": "Lists the runs of an automation: one entry per contact that entered it, with its status (queued while running, completed or canceled), the trigger that started it and the member.\n\n**When to use:** To check whether a contact is inside an automation, how many are running, or what happened to those who finished or left.\n\n**When not to use:** To start an automation for a contact, use `trigger_custom_api`. For the overall counters of an automation, use `get_automation`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of items per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "enrolled contacts",
            "runs",
            "participants",
            "who is in the workflow",
            "progress"
          ],
          "es": [
            "contactos en la automatización",
            "participantes",
            "inscritos",
            "en curso",
            "quién está dentro"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_queues/trigger_custom_api": {
      "post": {
        "operationId": "trigger_custom_api",
        "tags": [
          "Automations"
        ],
        "responses": {
          "201": {
            "description": "AutomationQueue resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationQueue.jsonld-automation_queue.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationQueue-automation_queue.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot start automations. Use a key or user with the author role or higher, or with the automations activate capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The trigger in `automation_trigger` does not exist. Get its IRI from `list_automation_triggers`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The contact cannot be started. Read the message: the automation is not active (activate it with `automation_activate`); the email does not belong to the audience of the automation (add it with `create_audience_member`) or its subscription is still unconfirmed; the trigger is not a `custom_api` trigger; the contact is already running through the automation, or has already gone through it and the trigger has `workflow_repeat` false; or the trigger is paused, or the contact finished less than 24 hours ago.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Start an automation for a contact via API",
        "description": "Starts the automation for one contact, identified by email, through one of its `custom_api` triggers: the contact enters at the first step straight away.\n\n**When to use:** When your own system or website decides that a contact must enter an automation (for example after a signup in your app) instead of Easymailing detecting the event itself.\n\n**When not to use:** To add a person to the audience first, use `create_audience_member`. To create the trigger this call needs, use `create_trigger_custom_api`. Triggers of any other type start by themselves and cannot be started with this operation.\n\n**Side effects:** The first step runs immediately, so any email, SMS, group change or webhook in the automation happens right away for that contact. It also fires the `member_automation_started` webhook. Only unconfirmed contacts are rejected: a contact that is unsubscribed is accepted, but its run is cancelled straight away.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.activate` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation that owns the trigger, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new AutomationQueue resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationQueue.AutomationQueueTriggerInput.jsonld-automation_queue.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationQueue.AutomationQueueTriggerInput-automation_queue.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "add contact to workflow",
            "enroll contact",
            "launch flow",
            "enter automation",
            "custom API trigger call"
          ],
          "es": [
            "añadir contacto a automatización",
            "inscribir contacto",
            "lanzar flujo",
            "meter en automatización",
            "llamada api personalizada"
          ]
        }
      }
    },
    "/automations/{automationUuid}/automation_queues/{uuid}": {
      "get": {
        "operationId": "get_automation_queue",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "AutomationQueue resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationQueue.jsonld-automation_queue.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationQueue-automation_queue.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No run with that uuid exists in the account. List the runs with `list_automation_queues`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a contact's run in an automation",
        "description": "Returns one contact's run through an automation: its status (queued, completed or canceled), the member, the trigger that started it and the automation.\n\n**When to use:** To check what happened to a specific run that you got from `list_automation_queues` or created with `trigger_custom_api`.\n\n**When not to use:** To list all the runs of an automation, use `list_automation_queues`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "automationUuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the run, as returned by `list_automation_queues`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "a52c9e17-3d48-4b06-8e91-70f1c6b2d3a4"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "run status",
            "enrollment",
            "contact progress",
            "single run"
          ],
          "es": [
            "estado del contacto",
            "inscripción",
            "progreso del contacto",
            "detalle de la ejecución"
          ]
        }
      }
    },
    "/automations/{uuid}": {
      "get": {
        "operationId": "get_automation",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "Automation resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation.jsonld-automation.read_automation.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation-automation.read_automation.read.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot read automations. Use a key or user with the author role or higher, or with the automations read capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an automation",
        "description": "Returns one automation with its status, audience, counters (completed, running, canceled), its triggers, the first step with the tree of steps that follow it, and the orphan steps (steps not connected to the flow).\n\n**When to use:** To review how an automation is built before changing it, or to get the uuids of its triggers and steps.\n\n**When not to use:** To list automations, use `list_automations`. To read only the steps or only the triggers, use `list_automation_steps` or `list_automation_triggers`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow details",
            "whole workflow",
            "automation stats",
            "inspect flow"
          ],
          "es": [
            "detalle de la automatización",
            "flujo completo",
            "estadísticas de la automatización",
            "ver flujo"
          ]
        }
      },
      "put": {
        "operationId": "update_automation",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "Automation resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation.jsonld-automation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation-automation.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON. Send a JSON object.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation, for example an empty `title`. The field is named in `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an automation",
        "description": "Changes the title and the description of an automation. The audience cannot be changed: it is ignored if you send it.\n\n**When to use:** To rename an automation or edit its description.\n\n**When not to use:** To change when it starts or what it does, edit its triggers and steps. To switch it on or off, use `automation_activate` or `automation_pause`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The updated Automation resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Automation.jsonld-automation.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Automation-automation.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename workflow",
            "edit flow",
            "change title"
          ],
          "es": [
            "renombrar automatización",
            "editar flujo",
            "cambiar título"
          ]
        }
      },
      "delete": {
        "operationId": "delete_automation",
        "tags": [
          "Automations"
        ],
        "responses": {
          "204": {
            "description": "Automation resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist or was already deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an automation",
        "description": "Permanently deletes the automation together with its steps, including the emails, SMS and conditions configured in them.\n\n**When to use:** Only when the automation is no longer needed. To stop it for a while without losing it, use `automation_pause`.\n\n**When not to use:** To delete a single step or trigger, use `delete_automation_step` or `delete_automation_trigger`.\n\n**Side effects:** Removes the automation and its steps for good; there is no way to recover them.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove workflow",
            "discard flow",
            "erase automation"
          ],
          "es": [
            "borrar automatización",
            "eliminar flujo",
            "quitar automatización"
          ]
        }
      }
    },
    "/automations/{uuid}/actions/activate": {
      "put": {
        "operationId": "automation_activate",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "Automation resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation.jsonld-automation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation-automation.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "The automation has no steps (or no triggers), so it cannot be activated. Add at least one step with a `create_step_*` operation and retry. This currently comes back as a server error instead of a validation error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Activate an automation",
        "description": "Switches an automation to active so its triggers start running contacts through its steps.\n\n**When to use:** When the triggers and steps are ready and the automation should start working, or to resume a paused one.\n\n**When not to use:** To stop it, use `automation_pause`. To start one contact right now without waiting for an event, use `trigger_custom_api`.\n\n**Side effects:** From then on, contacts that meet a trigger receive the emails and SMS of its steps. Event triggers react to what happens after activation; date and shopping triggers are checked about every minute and can pick up contacts that already match.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "turn on",
            "go live",
            "publish automation",
            "enable flow",
            "resume workflow",
            "start working"
          ],
          "es": [
            "encender",
            "poner en marcha",
            "publicar automatización",
            "reanudar",
            "activar flujo"
          ]
        }
      }
    },
    "/automations/{uuid}/actions/pause": {
      "put": {
        "operationId": "automation_pause",
        "tags": [
          "Automations"
        ],
        "responses": {
          "200": {
            "description": "Automation resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation.jsonld-automation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Automation-automation.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credentials cannot edit automations. Use a key or user with the author role or higher, or with the automations write capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The automation does not exist. Find its uuid with `list_automations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Pause an automation",
        "description": "Switches an automation to paused so its triggers stop starting new contacts.\n\n**When to use:** To stop an automation for a while, for example while editing its steps, without deleting it. Resume it with `automation_activate`.\n\n**When not to use:** To remove it for good, use `delete_automation`. To stop only one way of entering, use `automation_trigger_pause`.\n\n**Side effects:** It does not cancel the runs already in progress.\n\n**Permissions:** Requires the author role or higher, or the `marketing.automations.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the automation, as returned by `list_automations`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "turn off",
            "stop workflow",
            "suspend",
            "disable flow",
            "halt"
          ],
          "es": [
            "apagar",
            "detener automatización",
            "suspender",
            "desactivar flujo",
            "parar"
          ]
        }
      }
    },
    "/batch_operations": {
      "get": {
        "operationId": "list_batch_operations",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "200": {
            "description": "BatchOperation collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BatchOperation.jsonld-batch_operation.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchOperation-batch_operation.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List batch operations",
        "description": "Returns your batches, with their status, how many calls they hold, how many finished and how many failed. A user sees only the batches they created; an account administrator sees all the batches of the account. Renewing your key or token does not hide your earlier batches.\n\n**When to use:** To find a batch of yours whose UUID you did not keep, or to see which ones are still running. If a batch a colleague created is missing, it is not yours: ask an administrator.\n\n**When not to use:** To follow one batch use `get_batch_operation`.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "bulk jobs",
            "mass operations",
            "import jobs",
            "queued requests"
          ],
          "es": [
            "lotes",
            "operaciones en lote",
            "cargas masivas",
            "trabajos masivos"
          ]
        }
      },
      "post": {
        "operationId": "create_batch_operation",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "201": {
            "description": "BatchOperation resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperation.jsonld-batch_operation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperation-batch_operation.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not tied to a user or to an OAuth client, so the batch would have no owner. Use the key of a user or an OAuth token, and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The batch has no calls or more than 500, or a call has no `path` or a `method` other than POST, PUT, GET or DELETE. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a batch operation",
        "description": "Queues up to 500 API calls to be run one after another in the background, in the order given. It returns the batch at once; the calls run later. A call that fails does not stop the others.\n\nEach call has `method` (POST, PUT, GET or DELETE), `path` (an endpoint of this API, for example `/audiences/{audienceUuid}/members`), an optional `body` (a JSON string), optional `params` (query parameters) and an optional `external_identifier` of yours to match results.\n\nEach call is checked with the permissions of the token that created the batch, as if you sent it yourself: a call the token is not allowed to make is not run and shows a 403 in the results. The batch can therefore do anything those permissions allow, including deleting or sending.\n\nThe batch belongs to the user of the credential that creates it: only that user and an account administrator can read or delete it afterwards.\n\n**When to use:** To load or change many records in one go, for example adding thousands of members or moving many members to groups, without waiting for each call.\n\n**When not to use:** For one call, use the operation directly. To act on all members of a segment or group, use the asynchronous operations of Segments and Groups.\n\n**Side effects:** Every call runs and takes effect in the background, with all the side effects of that operation (emails, automations, webhooks). A call that answers with a server error (500) is attempted up to 3 times. The calls run later with the credential that created the batch: if its user is deactivated before they run, the calls still pending fail with 401.\n\n**Permissions:** No specific permission.",
        "parameters": [],
        "requestBody": {
          "description": "The new BatchOperation resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchOperation.jsonld-batch_operation.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchOperation-batch_operation.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "bulk",
            "mass import",
            "multiple requests",
            "bulk update",
            "queue requests"
          ],
          "es": [
            "crear lote",
            "carga masiva",
            "varias peticiones a la vez",
            "importación masiva",
            "actualización masiva"
          ]
        }
      }
    },
    "/batch_operations/{uuid}": {
      "get": {
        "operationId": "get_batch_operation",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "200": {
            "description": "BatchOperation resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperation.jsonld-batch_operation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperation-batch_operation.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "404": {
            "description": "The batch does not exist, or it was created by another user of the account (only its creator and an account administrator can see it, and anyone else gets this same 404). Check the identifier with `list_batch_operations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a batch operation",
        "description": "Returns the state of a batch: its status (`pending`, `started` or `finished`), how many calls it has, how many finished and how many failed (a failed call is one that answered 400 or higher). When the results are ready it gives a temporary address (valid 15 minutes) to download a JSON file with, for each call, its `external_identifier`, `method`, `path`, `status` and `response`.\n\n**When to use:** After `create_batch_operation`, to follow progress until `status` is `finished`. If `errored` is above 0 read `get_batch_operation_errors` to see what failed.\n\n**When not to use:** To follow a background task of Groups or Segments use `get_async_task`.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch. Get it with `list_batch_operations`, or from the response of `create_batch_operation`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c5f2b18-7d34-4a61-b0e9-1f6a8d3c4e72"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "batch progress",
            "bulk status",
            "import status",
            "job progress"
          ],
          "es": [
            "estado del lote",
            "progreso de la carga masiva",
            "resultado del lote",
            "seguimiento"
          ]
        }
      },
      "delete": {
        "operationId": "delete_batch_operation",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "204": {
            "description": "BatchOperation resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "404": {
            "description": "The batch does not exist, or it was created by another user of the account (only its creator and an account administrator can see it, and anyone else gets this same 404). Check the identifier with `list_batch_operations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The batch is still referenced by another record and cannot be deleted. Retry later.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a batch operation",
        "description": "Deletes the record of a batch and the stored answers of its calls. The calls that already ran are not undone.\n\n**When to use:** To clean up a batch you no longer need.\n\n**When not to use:** It does not cancel or undo anything; it only removes the record.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch. Get it with `list_batch_operations`, or from the response of `create_batch_operation`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c5f2b18-7d34-4a61-b0e9-1f6a8d3c4e72"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove batch",
            "clean up",
            "discard job"
          ],
          "es": [
            "eliminar lote",
            "borrar lote",
            "limpiar lotes"
          ]
        }
      }
    },
    "/batch_operations/{uuid}/actions/regenerate_response_body_url": {
      "put": {
        "operationId": "regenerate_response_body_url",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "200": {
            "description": "BatchOperationResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperationResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperationResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "404": {
            "description": "The batch does not exist, or it was created by another user of the account (only its creator and an account administrator can see it, and anyone else gets this same 404). Check the identifier with `list_batch_operations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Refresh the batch results link",
        "description": "Returns the batch with a fresh download address for the file with the answers of its calls, creating the file if it does not exist yet.\n\n**When to use:** When the previous address (valid 15 minutes) has expired and you need to download the results again.\n\n**When not to use:** To follow progress use `get_batch_operation`.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch. Get it with `list_batch_operations`, or from the response of `create_batch_operation`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c5f2b18-7d34-4a61-b0e9-1f6a8d3c4e72"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new download link",
            "expired url",
            "results file",
            "download results"
          ],
          "es": [
            "renovar enlace de descarga",
            "enlace caducado",
            "descargar resultados",
            "archivo de resultados"
          ]
        }
      }
    },
    "/batch_operations/{uuid}/errors": {
      "get": {
        "operationId": "get_batch_operation_errors",
        "tags": [
          "Batch operations"
        ],
        "responses": {
          "200": {
            "description": "BatchOperationResource resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperationResource.BatchOperationErrorsResource.jsonld-batch_operation_errors.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchOperationResource.BatchOperationErrorsResource-batch_operation_errors.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "404": {
            "description": "The batch does not exist, or it was created by another user of the account (only its creator and an account administrator can see it, and anyone else gets this same 404). Check the identifier with `list_batch_operations`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get batch operation errors",
        "description": "Returns the calls of a batch that failed, with their error, and the errors grouped by message with how many times each happened.\n\n**When to use:** When a batch finished with `errored` above 0, to see why without downloading the whole results file.\n\n**When not to use:** To see the progress of the batch use `get_batch_operation`.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch. Get it with `list_batch_operations`, or from the response of `create_batch_operation`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9c5f2b18-7d34-4a61-b0e9-1f6a8d3c4e72"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "failed requests",
            "bulk errors",
            "error summary",
            "rejected rows"
          ],
          "es": [
            "errores del lote",
            "peticiones fallidas",
            "resumen de errores",
            "filas rechazadas"
          ]
        }
      }
    },
    "/booking_calendars": {
      "get": {
        "operationId": "list_booking_calendars",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingCalendar collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BookingCalendar.jsonld-booking_calendar.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BookingCalendar-booking_calendar.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List calendars for booking pages",
        "description": "Lists the Google calendars the user has connected and can use in a booking page: where booked meetings are created and which calendars block times.\n\n**When to use:** Before creating or changing a page, to get the UUIDs for `destination_calendar_resource_uuid` and `availability_calendar_resource_uuids`. An empty list means the user has not connected a calendar.\n\n**When not to use:** Only the user's own connected calendars appear; those of other users or of shared pages never do. Connecting Google is done by the user in the app, not by the API. To see the calendars meetings are read from, also those shared by colleagues, use `list_meeting_calendars`: a calendar is the same in both lists by its `connection_uuid` and `calendar_id`.\n\n**Filters:** The list is not paginated. Calendars whose Google connection is disabled, revoked, without Calendar permission or removed in Google are left out.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "calendars for booking",
            "google calendars",
            "destination calendar",
            "which calendar blocks my time"
          ],
          "es": [
            "calendarios para reservas",
            "calendarios de google",
            "calendario de destino",
            "qué calendarios bloquean mi disponibilidad"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/booking_email_senders": {
      "get": {
        "operationId": "list_booking_email_senders",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingEmailSenderCatalog resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSenderCatalog.jsonld-booking_email_sender_catalog.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSenderCatalog-booking_email_sender_catalog.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List senders for booking emails",
        "description": "Lists the confirmed senders of the account that can send booking emails, with how each would leave, and counts those that cannot until their domain is authenticated.\n\n**When to use:** Before `update_booking_email_settings`, to choose a sender that will work.\n\n**When not to use:** To list every sender of the account, including unconfirmed ones, or to create one, use `list_senders` and `create_sender`.\n\n**Filters:** The list is not paginated and is ordered by email. Unconfirmed senders are not listed or counted.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "senders for booking",
            "which sender can I use",
            "booking email sender options"
          ],
          "es": [
            "quién envía los correos de reserva",
            "qué buzón puedo usar para las reservas",
            "buzones disponibles para los correos de reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/booking_fields": {
      "get": {
        "operationId": "list_booking_fields",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BookingField.jsonld-booking_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BookingField-booking_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List fields a booking form can ask",
        "description": "Lists the contact and company fields (built-in and custom attributes) that a booking page form can ask the person booking, with the reference, control and options each one needs.\n\n**When to use:** Before building or changing `configuration.fields` of a booking page, to copy the `field_reference` and `control` of each field.\n\n**When not to use:** To read the fields of a page you already have, use `get_booking_page`. To manage the attributes themselves, use the contact and company attribute operations (`list_contact_attributes`, `list_company_attributes`). Free questions that save to no record do not appear here: add them as `source` `question`.\n\n**Filters:** The list is not paginated and has a fixed order: contact fields, then company fields. Fields that a visitor cannot fill (secondary emails, consent, creation dates, audience data) and selects without options are left out.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found. Only fields the user can write are listed.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "booking form fields",
            "available form fields",
            "fields for reservation form"
          ],
          "es": [
            "campos del formulario de reserva",
            "campos disponibles para la reserva",
            "qué puedo preguntar al reservar"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/booking_page_images": {
      "post": {
        "operationId": "upload_booking_page_image",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "201": {
            "description": "BookingPageImage resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageImage.jsonld-booking_page_image.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageImage-booking_page_image.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The user's membership is not active.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "`meeting_booking_image_media_type_unsupported`: The `Content-Type` header is not `application/octet-stream`. Nothing was read.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The file is empty, over 5,000,000 bytes, not a PNG, JPEG, GIF or WebP image, over 8,000 pixels on a side or over 40 megapixels; `violations[].propertyPath` is `image`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Upload a booking page image",
        "description": "Uploads a PNG, JPEG, GIF or WebP image for a booking page and returns its UUID and public URL. The image belongs to the user and can then be set as `host_image_asset_uuid` or `logo_asset_uuid` with `update_booking_page`.\n\n**When to use:** To give a page a logo or a custom host photo. Send `Content-Type: application/octet-stream` and the bytes of the image as the body (not JSON, not multipart).\n\n**When not to use:** It uploads only; it does not attach the image to any page. A page can only use images uploaded by its own owner. Images for emails or templates are not handled here.\n\n**Side effects:** The image is stored in the account's public assets, so anyone with its URL can see it. Identical files share one stored copy, but every upload gets its own UUID. Nothing is attached to a page and nothing is sent.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The image belongs to the user who owns the token.",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Always `application/octet-stream`. Any other value is refused with 415 before the body is read.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "application/octet-stream"
              ]
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "application/octet-stream"
          }
        ],
        "requestBody": {
          "description": "The bytes of the image: PNG, JPEG, GIF or WebP, up to 5,000,000 bytes.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "upload image",
            "booking logo",
            "host photo",
            "page logo"
          ],
          "es": [
            "subir imagen",
            "logo de la página de reserva",
            "foto del anfitrión",
            "subir logotipo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 415,
            "code": "meeting_booking_image_media_type_unsupported",
            "meaning": "The `Content-Type` header is not `application/octet-stream`. Nothing was read."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The user's membership is not active."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The file is empty, over 5,000,000 bytes, not a PNG, JPEG, GIF or WebP image, over 8,000 pixels on a side or over 40 megapixels; `violations[].propertyPath` is `image`."
          }
        ]
      }
    },
    "/booking_pages": {
      "get": {
        "operationId": "list_booking_pages",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BookingPage-booking_page.read"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`state` is not one of `draft`, `published`, `paused`, `archived`. Send one of them or leave it out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The user's account membership is inactive. Use credentials of an active user.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List your booking pages",
        "description": "Lists the booking pages of the user who owns the token, oldest first, with their state, configuration and public link. A booking page is the public link where people pick a time and book a meeting with the user.\n\n**When to use:** To see which booking pages exist, which are published, or to find the UUID of one before reading or changing it.\n\n**When not to use:** Pages other users shared with you are not listed here: to find the pages you can insert in an email, use `list_usable_booking_pages`. To read one page you know, use `get_booking_page`.\n\n**Filters:** `state` keeps only the pages in that state. The order is fixed (oldest first); there is no `order` parameter. Pagination: `page` and `itemsPerPage`, like the rest of the API; the response gives the total in `hydra:totalItems`. Archived pages are included.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "description": "Only the pages in this state.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "published",
                "paused",
                "archived"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "published"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Pages per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "booking pages",
            "my booking pages",
            "scheduling links",
            "meeting links",
            "calendly"
          ],
          "es": [
            "páginas de reserva",
            "mis páginas de reserva",
            "enlaces de reuniones",
            "agenda de citas",
            "reservar reuniones",
            "calendly"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "`state` is not one of `draft`, `published`, `paused`, `archived`. Send one of them or leave it out."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The user's account membership is inactive. Use credentials of an active user."
          }
        ]
      },
      "post": {
        "operationId": "create_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "201": {
            "description": "BookingPage resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The user's membership is not active, so the page could not be created.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The configuration is not valid. Read `violations[].propertyPath`: `configuration.<key>` names the key at fault (a value out of range, an unknown key, a duration that is not in `allowed_durations`, a calendar that is no longer connected, or an image that no longer exists or belongs to another user).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a booking page",
        "description": "Creates a booking page as a draft owned by the user who owns the token. It is not public and nobody else can use it until it is published and shared.\n\n**When to use:** To start a new public scheduling link: create the draft, set its sender with `update_booking_email_settings`, then publish it with `publish_booking_page`.\n\n**When not to use:** To change an existing page, use `update_booking_page`. A draft cannot be published until every key marked \"Required to publish\" is set, the destination calendar is a writable Google calendar connected by the user (see `list_booking_calendars`) and the page has a sender that can send. To schedule a meeting yourself with a person, create the meeting directly instead of a booking page.\n\n**Side effects:** Creates the page in `draft` and, with it, its two booking emails (`confirmation` and `data_check`) with the default design in the account language. Nothing is public: no link works, no email is sent, nothing is written to Google and no activity entry is recorded. The page starts shared with nobody and without a sender.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [],
        "requestBody": {
          "description": "The new BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create booking page",
            "new scheduling link",
            "set up meeting booking",
            "calendly page"
          ],
          "es": [
            "crear página de reserva",
            "nueva página de reservas",
            "crear enlace para que reserven reuniones",
            "configurar reservas de reuniones"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The user's membership is not active, so the page could not be created."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The configuration is not valid. Read `violations[].propertyPath`: `configuration.<key>` names the key at fault (a value out of range, an unknown key, a duration that is not in `allowed_durations`, a calendar that is no longer connected, or an image that no longer exists or belongs to another user)."
          }
        ]
      }
    },
    "/booking_pages/{uuid}": {
      "get": {
        "operationId": "get_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or the user is not active. Find yours with `list_booking_pages`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a booking page",
        "description": "Returns one booking page of the user who owns the token with its full configuration, state, public link and sharing.\n\n**When to use:** To read the current configuration and `version` of a page before changing it, or to check whether it is published and has its calendar and sender in place.\n\n**When not to use:** To see who can use the page, the names are in `sharing.subjects`; the list of people you can still share with is `list_booking_page_sharing_candidates`. For a page another user shared with you, use `get_usable_booking_page`. To read the booking emails, use `get_booking_email_settings`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "get booking page",
            "booking page details",
            "page configuration"
          ],
          "es": [
            "ver página de reserva",
            "detalle de la página de reserva",
            "configuración de la reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or the user is not active. Find yours with `list_booking_pages`."
          }
        ]
      },
      "put": {
        "operationId": "update_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: You sent `expected_version` and the page has changed since you read it. Nothing was saved. Read it again with `get_booking_page` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The resulting configuration is not valid. Read `violations[].propertyPath`: `configuration.<key>` names the key at fault (a value out of range, an unknown key, a duration that is not in `allowed_durations`, a calendar that is no longer connected, or an image that no longer exists or belongs to another user). `expected_version` below 1 is reported as `expected_version`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a booking page",
        "description": "Changes the configuration of one of the user's booking pages: title, hours, duration, calendars, form fields and the rest. Only the keys you send change.\n\n**When to use:** To edit a draft, or to change a published or paused page (opening hours, a day off, fields of the form, calendars).\n\n**When not to use:** To publish, pause or archive the page, use `publish_booking_page`, `pause_booking_page` or `archive_booking_page`. To change who can use the page, use `set_booking_page_sharing`. To change the sender or the email subjects, use `update_booking_email_settings`. An archived page cannot be edited.\n\n**Side effects:** On a published page the change takes effect immediately for new bookings (the whole page is validated as if publishing it). A change of configuration makes the offer links created earlier with `create_booking_offer` stop working. Bookings already made are not touched. Nothing is sent and no activity entry is recorded.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The updated BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update booking page",
            "edit booking page",
            "change availability hours",
            "block a day",
            "change meeting duration"
          ],
          "es": [
            "editar página de reserva",
            "cambiar horario de reservas",
            "bloquear un día",
            "cambiar la duración de la reunión",
            "modificar la reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or is archived."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "You sent `expected_version` and the page has changed since you read it. Nothing was saved. Read it again with `get_booking_page` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The resulting configuration is not valid. Read `violations[].propertyPath`: `configuration.<key>` names the key at fault (a value out of range, an unknown key, a duration that is not in `allowed_durations`, a calendar that is no longer connected, or an image that no longer exists or belongs to another user). `expected_version` below 1 is reported as `expected_version`."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/actions/archive": {
      "post": {
        "operationId": "archive_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist or belongs to another user.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive a booking page",
        "description": "Retires a booking page for good. It keeps its history but is closed, can no longer be edited and cannot be published again; there is no way to bring it back.\n\n**When to use:** Only when the user explicitly wants to retire the page for good, for example after replacing it with a new one.\n\n**When not to use:** To close it temporarily, use `pause_booking_page`. To change it, use `update_booking_page`. There is no operation to delete a booking page.\n\n**Side effects:** The public link stops working and offer links created earlier stop working. Booked meetings are not cancelled. The page keeps its place in `list_booking_pages` with state `archived`. Nothing is sent and Google is not called.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The new BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "archive booking page",
            "retire booking page",
            "remove booking page",
            "delete booking page"
          ],
          "es": [
            "archivar página de reserva",
            "retirar la página de reservas",
            "eliminar página de reserva",
            "borrar página de reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist or belongs to another user."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/actions/pause": {
      "post": {
        "operationId": "pause_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Pause a booking page",
        "description": "Closes the public link of a booking page without deleting it: nobody can book new meetings until it is published again. Meetings already booked stay as they are.\n\n**When to use:** To stop bookings temporarily (holidays, no capacity) while keeping the configuration.\n\n**When not to use:** To remove the page for good, use `archive_booking_page`. To block only some days, add a closed date to `dated_exceptions` with `update_booking_page`.\n\n**Side effects:** `public_url` becomes `null` and the public page stops accepting bookings. Offer links created earlier stop working. Booked meetings are not cancelled and people who booked can still cancel theirs. Nothing is sent and Google is not called.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The new BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pause booking page",
            "close bookings",
            "stop bookings",
            "unpublish page",
            "disable scheduling link"
          ],
          "es": [
            "pausar página de reserva",
            "cerrar las reservas",
            "dejar de aceptar reservas",
            "desactivar enlace de reuniones"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or is archived."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/actions/publish": {
      "post": {
        "operationId": "publish_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or is archived (an archived page cannot be reopened). It is also the answer when the destination calendar or an availability calendar is no longer connected: check `calendar_status` and `list_booking_calendars`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The page cannot be published yet. `violations[].propertyPath` names what is missing: a key marked \"Required to publish\" (`configuration.<key>`), `configuration.fields` or `configuration.required_identity_fields` (the form needs the contact `first_name` and `email` fields), an image that no longer exists, or `sender_id` (the page has no sender that can send: set one with `update_booking_email_settings`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Publish a booking page",
        "description": "Makes the page public: from now on anyone with `public_url` can see the host's free times and book a meeting. It works on a draft or a paused page.\n\n**When to use:** When the page is complete and the user wants people to start booking, or to reopen a paused page.\n\n**When not to use:** To close the link without losing the page, use `pause_booking_page`. If the user only wants to hand the link to one person for a few specific times, create a private proposal with `create_booking_offer` on an already published page.\n\n**Side effects:** The page becomes public and the response carries `public_url`. Each booking then creates an event in the destination Google Calendar with the person who booked as attendee, so Google sends them the invitation; a booking can also create or update a contact and a company according to `contact_policy` and `company_policy`; and the booking emails leave from the page sender. Nothing is sent and Google is not called by this request. Offer links created earlier stop working.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The new BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageStateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "publish booking page",
            "activate booking page",
            "open bookings",
            "go live",
            "enable scheduling link"
          ],
          "es": [
            "publicar página de reserva",
            "activar reservas",
            "abrir las reservas",
            "habilitar enlace de reuniones"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or is archived (an archived page cannot be reopened). It is also the answer when the destination calendar or an availability calendar is no longer connected: check `calendar_status` and `list_booking_calendars`."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The page cannot be published yet. `violations[].propertyPath` names what is missing: a key marked \"Required to publish\" (`configuration.<key>`), `configuration.fields` or `configuration.required_identity_fields` (the form needs the contact `first_name` and `email` fields), an image that no longer exists, or `sender_id` (the page has no sender that can send: set one with `update_booking_email_settings`)."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/availability": {
      "get": {
        "operationId": "get_booking_page_availability",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPageAvailability resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageAvailability.jsonld-booking_page_availability.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageAvailability-booking_page_availability.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, is not published, or is neither the user's nor shared with them. Check with `list_usable_booking_pages`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: A parameter is not valid: `from` or `to` without seconds and time zone, `to` not after `from`, a window over 31 days, a `duration` the page does not allow, or an unknown `time_zone`. `violations[].propertyPath` is `availability_query` or `configuration`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`meeting_booking_availability_unknown`: Availability could not be checked: Google could not be read completely, the connection changed, or the page changed during the request. Nothing is returned so that no busy time is missed; retry in a few seconds, and if it persists ask the host to reconnect Google.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the free times of a booking page",
        "description": "Returns the free times a published booking page can offer in a date window, after applying its opening hours, days off, notice, horizon, buffers, daily limit and the events in the host's Google calendars, plus the merged busy ranges.\n\n**When to use:** To see which times can be proposed before calling `create_booking_offer`, or to tell the user when the host is free.\n\n**When not to use:** It only works on a published page of the user or one shared with them: a draft or paused page answers not found. It does not book anything. To change the opening hours themselves, use `update_booking_page`.\n\n**Side effects:** Reads the host's calendars from Google during the request, one call per calendar of the page, so it can take a few seconds. Nothing is written to Google and nothing is sent.\n\n**Filters:** `from` and `to` are required, must carry a time zone and span at most 31 days; they are cut to the notice period and the horizon of the page. `duration` must be one of the page's `allowed_durations` (only `default_duration` if the page does not let people choose). `time_zone` is any IANA time zone and is only echoed back: all times in the response are UTC.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The page must be published and either belong to the user who owns the token or be shared with them (`set_booking_page_sharing`).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of a published booking page that is the user's own or shared with them. Get it from `list_usable_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the window, ISO 8601 with seconds and time zone.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-09T00:00:00Z"
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the window, ISO 8601 with seconds and time zone, at most 31 days after `from`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-13T23:59:59Z"
          },
          {
            "name": "duration",
            "in": "query",
            "description": "Meeting length in minutes.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "enum": [
                15,
                30,
                45,
                60
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "time_zone",
            "in": "query",
            "description": "IANA time zone of the person the times are for. Only echoed back.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "America/Mexico_City"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "free times",
            "available slots",
            "when is the host free",
            "check availability",
            "open slots",
            "booking page availability"
          ],
          "es": [
            "huecos libres",
            "horas disponibles",
            "cuándo está libre",
            "consultar disponibilidad",
            "disponibilidad del anfitrión",
            "disponibilidad de la página de reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, is not published, or is neither the user's nor shared with them. Check with `list_usable_booking_pages`."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "A parameter is not valid: `from` or `to` without seconds and time zone, `to` not after `from`, a window over 31 days, a `duration` the page does not allow, or an unknown `time_zone`. `violations[].propertyPath` is `availability_query` or `configuration`."
          },
          {
            "status": 503,
            "code": "meeting_booking_availability_unknown",
            "meaning": "Availability could not be checked: Google could not be read completely, the connection changed, or the page changed during the request. Nothing is returned so that no busy time is missed; retry in a few seconds, and if it persists ask the host to reconnect Google."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/email_designs/{type}/actions/restore_default": {
      "post": {
        "operationId": "restore_booking_email_default",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingEmailDesign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailDesign.jsonld-booking_email_design.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailDesign-booking_email_design.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or (when saving) is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: `revision` is stale: the design changed since you read it. Nothing was restored; read it again with `get_booking_email_settings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`revision` is missing or is not 64 hexadecimal characters.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore a booking email design",
        "description": "Replaces the design of one booking email with the current default design, in the language the email already has. The subject is not changed. Customizations of the design are lost.\n\n**When to use:** Only when the user asks to discard their changes to the design of the `confirmation` or `data_check` email.\n\n**When not to use:** To change the subject or the sender, use `update_booking_email_settings`; this operation does not touch them. The design cannot be edited through the API.\n\n**Side effects:** The customized design is overwritten and cannot be recovered. Nothing is sent now; the next emails of that type use the default design. Archived pages cannot be changed.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          {
            "name": "type",
            "in": "path",
            "description": "Which email: `confirmation` or `data_check`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "confirmation",
                "data_check"
              ]
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "confirmation"
          }
        ],
        "requestBody": {
          "description": "The new BookingEmailDesign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingEmailDesign.BookingEmailRestoreInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingEmailDesign.BookingEmailRestoreInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "restore default email",
            "reset booking email design",
            "default confirmation email"
          ],
          "es": [
            "restaurar el correo por defecto",
            "volver al diseño predeterminado",
            "descartar cambios del correo de reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or (when saving) is archived."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "`revision` is stale: the design changed since you read it. Nothing was restored; read it again with `get_booking_email_settings`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`revision` is missing or is not 64 hexadecimal characters."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/email_settings": {
      "get": {
        "operationId": "get_booking_email_settings",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingEmailSettings resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSettings.jsonld-booking_email_settings.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSettings-booking_email_settings.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or (when saving) is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the emails of a booking page",
        "description": "Returns the sender, sender name and subjects of the two emails a booking page sends to the people who book, and whether each uses the default design.\n\n**When to use:** To check that a page has a sender that can send (needed to publish), or to read the subjects and the revisions needed by `update_booking_email_settings` and `restore_booking_email_default`.\n\n**When not to use:** The design of the emails (Beefree) is edited in the app and not exposed here. To choose a sender, first list the usable ones with `list_booking_email_senders`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "booking emails",
            "confirmation email settings",
            "booking sender",
            "email subject of booking"
          ],
          "es": [
            "correos de la reserva",
            "remitente de las reservas",
            "asunto del correo de confirmación",
            "ajustes de email de reserva"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or (when saving) is archived."
          }
        ]
      },
      "put": {
        "operationId": "update_booking_email_settings",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingEmailSettings resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSettings.jsonld-booking_email_settings.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingEmailSettings-booking_email_settings.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or (when saving) is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: `base_revision` is stale: the settings changed since you read them. Nothing was saved; read them again with `get_booking_email_settings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: A value is not valid; `violations[].propertyPath` is `sender_id` (the sender does not exist, is not confirmed, cannot send, or you tried to remove the sender of a published page or of one that asks to verify the email), `sender_name`, `confirmation_subject` or `data_check_subject` (empty, over 255 characters, with line breaks or containing a link).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update the emails of a booking page",
        "description": "Changes the sender, the sender name and the subjects of the emails a booking page sends to the people who book. Only what you send changes.\n\n**When to use:** To give a page its sender (required to publish it), change the name recipients see, or reword a subject.\n\n**When not to use:** To change what the email looks like, use the app: the design is not exposed. To go back to the default design, use `restore_booking_email_default`. To manage the senders themselves, use `list_senders`, `create_sender`.\n\n**Side effects:** Nothing is sent now. From the next booking, the emails to the people who book leave from the chosen sender with the new name and subjects; replies go to the sender's own address. Emails already sent do not change.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The updated BookingEmailSettings resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingEmailSettings.BookingEmailSettingsInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingEmailSettings.BookingEmailSettingsInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "booking sender",
            "change booking email subject",
            "set sender for booking page",
            "sender name for reservations"
          ],
          "es": [
            "remitente de la reserva",
            "cambiar asunto del correo de reserva",
            "elegir remitente de la página",
            "nombre del remitente de las reservas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or (when saving) is archived."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "`base_revision` is stale: the settings changed since you read them. Nothing was saved; read them again with `get_booking_email_settings`."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "A value is not valid; `violations[].propertyPath` is `sender_id` (the sender does not exist, is not confirmed, cannot send, or you tried to remove the sender of a published page or of one that asks to verify the email), `sender_name`, `confirmation_subject` or `data_check_subject` (empty, over 255 characters, with line breaks or containing a link)."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/offers": {
      "post": {
        "operationId": "create_booking_offer",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "201": {
            "description": "BookingOffer resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOffer.jsonld-booking_offer.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOffer-booking_offer.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, is not published, or is neither the user's nor shared with them. Check with `list_usable_booking_pages`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: `expected_version` does not match the current version of the page, or the page changed while the offer was being created. Read it with `get_usable_booking_page` and check the times again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The offer is not valid; `violations[].propertyPath` is `offer` (an option is not a free time, options overlap, there are fewer than 1 or more than 10, the duration or time zone is wrong, or the last option is in the past) or `allow_outside_hours` (only the page owner can use it).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`meeting_booking_availability_unknown`: The host's availability could not be checked right now (Google could not be read completely). Nothing was created; retry in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Propose times with a booking page",
        "description": "Creates a proposal of up to 10 specific times on a published booking page and returns one link per time. Whoever opens a link lands on the booking page with that time selected and still has to confirm the booking.\n\n**When to use:** When the user wants to offer a person a few exact times, for example to paste the links into an email.\n\n**When not to use:** To give a general link where the person picks any free time, use the page's `public_url`. This does not book a meeting and does not send anything; to book a meeting yourself with someone, create the meeting directly. Check the times first with `get_booking_page_availability`.\n\n**Side effects:** Reads the host's calendars from Google during the request, once per option and calendar, so it can take several seconds. Nothing is written to Google and nothing is sent: the links are only returned to you, and the person who receives them (when you put them in an email) is the one who books. The offer does not block the calendar. Each link is revalidated when opened, so an option someone else books in the meantime stops working. The links stop working at `expires_at`, and when the page is paused, archived or its configuration changes.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The page must be published and either belong to the user who owns the token or be shared with them (`set_booking_page_sharing`).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of a published booking page that is the user's own or shared with them. Get it from `list_usable_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The new BookingOffer resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingOffer.BookingOfferInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingOffer.BookingOfferInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "propose times",
            "offer slots",
            "suggest meeting times",
            "booking links with times",
            "send availability",
            "create booking offer"
          ],
          "es": [
            "proponer horarios",
            "ofrecer huecos",
            "enlaces con horas concretas",
            "sugerir horas para una reunión",
            "enviar mi disponibilidad",
            "crear propuesta de horarios",
            "propuesta de horarios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, is not published, or is neither the user's nor shared with them. Check with `list_usable_booking_pages`."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "`expected_version` does not match the current version of the page, or the page changed while the offer was being created. Read it with `get_usable_booking_page` and check the times again."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The offer is not valid; `violations[].propertyPath` is `offer` (an option is not a free time, options overlap, there are fewer than 1 or more than 10, the duration or time zone is wrong, or the last option is in the past) or `allow_outside_hours` (only the page owner can use it)."
          },
          {
            "status": 503,
            "code": "meeting_booking_availability_unknown",
            "meaning": "The host's availability could not be checked right now (Google could not be read completely). Nothing was created; retry in a few seconds."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/sharing": {
      "put": {
        "operationId": "set_booking_page_sharing",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPage resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage.jsonld-booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPage-booking_page.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, belongs to another user or is archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`meeting_booking_version_conflict`: You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`meeting_booking_configuration_invalid`: The selection is not valid; `violations[].propertyPath` is `sharing`. `selected` needs at least one user or team, the other modes need none, UUIDs cannot repeat, and a new user or team must be selectable (active, with CRM access, in this account).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Share a booking page",
        "description": "Sets who else can use the user's booking page: nobody, the whole account, or chosen users and teams. People with access can put its link in their emails and propose times from the host's calendar; they cannot edit, publish or share the page.\n\n**When to use:** When colleagues should be able to send the user's booking link or propose times from the user's availability, for example the sales team using a sales rep's page.\n\n**When not to use:** Sharing does not publish the page or notify anyone, and it does not change the page's configuration: use `update_booking_page` and `publish_booking_page` for that. To see who can be added, use `list_booking_page_sharing_candidates`.\n\n**Side effects:** The people who gain access can see, through `get_booking_page_availability` and `create_booking_offer`, when the host is busy (merged time ranges without event titles) and can create proposal links for the host. Nobody is notified. People who lose access stop seeing the page; offer links they already created keep working. The page version grows.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found. Only the owner of the page can change its sharing.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "requestBody": {
          "description": "The updated BookingPage resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageSharingInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingPage.BookingPageSharingInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "share booking page",
            "give access to booking page",
            "let the team use my booking link",
            "page sharing"
          ],
          "es": [
            "compartir página de reserva",
            "dar acceso a la página de reservas",
            "que el equipo use mi enlace de reunión",
            "compartir mi agenda"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, belongs to another user or is archived."
          },
          {
            "status": 409,
            "code": "meeting_booking_version_conflict",
            "meaning": "You sent `expected_version` and the page has changed since you read it. Read it again with `get_booking_page`."
          },
          {
            "status": 422,
            "code": "meeting_booking_configuration_invalid",
            "meaning": "The selection is not valid; `violations[].propertyPath` is `sharing`. `selected` needs at least one user or team, the other modes need none, UUIDs cannot repeat, and a new user or team must be selectable (active, with CRM access, in this account)."
          }
        ]
      }
    },
    "/booking_pages/{uuid}/sharing_candidates": {
      "get": {
        "operationId": "list_booking_page_sharing_candidates",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "BookingPageSharingCandidate collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BookingPageSharingCandidate.jsonld-booking_page_sharing_candidate.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BookingPageSharingCandidate-booking_page_sharing_candidate.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist or belongs to another user.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List who a page can be shared with",
        "description": "Lists the users and teams of the account that a booking page could be shared with, users first and then teams, each with its UUID and whether it already has access.\n\n**When to use:** To find the UUIDs to send to `set_booking_page_sharing`.\n\n**When not to use:** To read the people who already have access, `get_booking_page` returns them in `sharing.subjects`.\n\n**Filters:** The order is fixed (users, then teams, by name); there is no filter. Pagination: `page` and `itemsPerPage`; the response gives the total in `hydra:totalItems`. Users and teams that already have access always appear, even a suspended user.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the booking page. Get it from `list_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Users and teams per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "who can I share with",
            "team members for sharing",
            "booking page colleagues"
          ],
          "es": [
            "con quién compartir la página",
            "compañeros para compartir",
            "equipos y usuarios de la cuenta"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist or belongs to another user."
          }
        ]
      }
    },
    "/usable_booking_pages": {
      "get": {
        "operationId": "list_usable_booking_pages",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "UsableBookingPage collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UsableBookingPage.jsonld-usable_booking_page.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsableBookingPage-usable_booking_page.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List booking pages you can use",
        "description": "Lists the published booking pages the user can put in an email or propose times from: their own and those other users shared with them, with the public data needed to use them.\n\n**When to use:** To find a page to insert or to propose times with (`get_booking_page_availability`, `create_booking_offer`), including pages shared by colleagues.\n\n**When not to use:** To manage your own pages (see drafts, edit, publish), use `list_booking_pages`. Private data such as calendars, form fields, policies and who it is shared with is not included.\n\n**Filters:** Only published pages. The user's own come first, then those shared with them, each group by title. Pagination: `page` and `itemsPerPage`; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Booking pages have no separate read permission, so it is also required to read. Pages belong to the user who owns the token: each user manages only their own pages, and a page of another user is answered as not found.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Pages per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pages I can use",
            "shared booking pages",
            "booking link to send",
            "which booking link can I send",
            "usable booking pages"
          ],
          "es": [
            "páginas de reserva que puedo usar",
            "páginas compartidas conmigo",
            "qué enlace de reserva puedo enviar",
            "páginas de reserva utilizables"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50). Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/usable_booking_pages/{uuid}": {
      "get": {
        "operationId": "get_usable_booking_page",
        "tags": [
          "Booking pages"
        ],
        "responses": {
          "200": {
            "description": "UsableBookingPage resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/UsableBookingPage.jsonld-usable_booking_page.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsableBookingPage-usable_booking_page.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`meeting_booking_page_unavailable`: The page does not exist, is not published, or is neither the user's nor shared with them.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a booking page you can use",
        "description": "Returns the public data of one published booking page that is the user's own or shared with them, with the current `version` and what the user can do with it.\n\n**When to use:** To read the `version` and public link of a page before calling `create_booking_offer`.\n\n**When not to use:** To read the full configuration of your own page, use `get_booking_page`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The page must be published and either belong to the user who owns the token or be shared with them (`set_booking_page_sharing`).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of a published booking page that is the user's own or shared with them. Get it from `list_usable_booking_pages`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "booking page to insert",
            "usable booking page"
          ],
          "es": [
            "página de reserva utilizable",
            "enlace de reserva para insertar"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "meeting_booking_page_unavailable",
            "meaning": "The page does not exist, is not published, or is neither the user's nor shared with them."
          }
        ]
      }
    },
    "/design_settings": {
      "get": {
        "operationId": "list_design_settings",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "200": {
            "description": "DesignSetting collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DesignSetting-design_setting.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List brand styles",
        "description": "Returns the brand styles of the account. Each one holds the color palette, fonts, heading and text styles, button style, logos and social links used to style emails and landing pages.\n\n**When to use:** To see which brand styles the account has, for example to pick the default one before generating or designing an email.\n\n**When not to use:** To read one style in full use `get_design_setting`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "brand kit",
            "style guide",
            "visual identity",
            "brand guidelines",
            "brand colors",
            "fonts"
          ],
          "es": [
            "estilos de marca",
            "kit de marca",
            "identidad visual",
            "colores de marca",
            "tipografías",
            "guía de estilo"
          ]
        }
      },
      "post": {
        "operationId": "create_design_setting",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "201": {
            "description": "DesignSetting resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting-design_setting.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty or a value (a color, a font, a social network key) is not valid. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a brand style",
        "description": "Creates a brand style with the values you send. Anything you leave out gets the default value.\n\n**When to use:** To define the colors, fonts, buttons and social links of a brand by hand. To create one from an existing website use `create_design_setting_from_url`.\n\n**When not to use:** To extract the style from a website automatically use `create_design_setting_from_url`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new DesignSetting resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.create.create_design_setting"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting-design_setting.create.create_design_setting"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new brand kit",
            "define brand",
            "set colors",
            "set fonts"
          ],
          "es": [
            "crear estilo de marca",
            "nuevo kit de marca",
            "definir colores",
            "definir tipografías"
          ]
        }
      }
    },
    "/design_settings/from_url": {
      "post": {
        "operationId": "create_design_setting_from_url",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "201": {
            "description": "DesignSetting resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting-design_setting.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty or `website_url` is not a valid address. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a brand style from a website",
        "description": "Creates a brand style by reading the colors, fonts, logos and social links of a website with brand detection (Brandfetch). If the brand cannot be read, the style is still created with default values.\n\n**When to use:** To set up a customer's brand quickly from the address of their website instead of entering each value.\n\n**When not to use:** To enter the values yourself use `create_design_setting`.\n\n**Side effects:** The website address is sent to Brandfetch to detect the brand.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new DesignSetting resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting.CreateFromUrlInput.jsonld-design_setting.from_url"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting.CreateFromUrlInput-design_setting.from_url"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "import brand",
            "scrape brand",
            "brandfetch",
            "detect brand from site"
          ],
          "es": [
            "importar marca desde web",
            "detectar marca",
            "crear estilo desde url",
            "leer la marca de una web"
          ]
        }
      }
    },
    "/design_settings/{uuid}": {
      "get": {
        "operationId": "get_design_setting",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "200": {
            "description": "DesignSetting resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting-design_setting.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The brand style does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a brand style",
        "description": "Returns one brand style in full: color palette, fonts, heading and text styles, button style, logos for light and dark backgrounds, social links, and whether it is the default.\n\n**When to use:** To read the exact colors, fonts and logos of a brand before designing an email or landing page, or before editing the style.\n\n**When not to use:** To list the styles of the account use `list_design_settings`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the brand style. Get it with `list_design_settings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e1b84c07-9a35-4d2f-b6c8-3f7d0a5e9b21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "brand details",
            "get brand kit",
            "logo urls",
            "color palette"
          ],
          "es": [
            "ver estilo de marca",
            "detalle del kit de marca",
            "logos de la marca",
            "paleta de colores"
          ]
        }
      },
      "put": {
        "operationId": "update_design_setting",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "200": {
            "description": "DesignSetting resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignSetting-design_setting.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The brand style does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty or a value (a color, a font, a social network key) is not valid. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a brand style",
        "description": "Changes a brand style. Send only the fields you want to change; the rest keeps its value. `custom_fonts`, `color_palette` and `social_links`, when sent, replace the whole current list.\n\n**When to use:** To change the colors, fonts, buttons or social links of an existing style, or to mark it as the default one.\n\n**When not to use:** To start a new style use `create_design_setting`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the brand style. Get it with `list_design_settings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e1b84c07-9a35-4d2f-b6c8-3f7d0a5e9b21"
          }
        ],
        "requestBody": {
          "description": "The updated DesignSetting resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting.jsonld-design_setting.write.update_design_setting"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignSetting-design_setting.write.update_design_setting"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit brand kit",
            "change colors",
            "change fonts",
            "modify style"
          ],
          "es": [
            "editar estilo de marca",
            "cambiar colores",
            "cambiar tipografías",
            "modificar kit de marca"
          ]
        }
      },
      "delete": {
        "operationId": "delete_design_setting",
        "tags": [
          "Brand settings"
        ],
        "responses": {
          "204": {
            "description": "Design setting deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The brand style does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a brand style",
        "description": "Permanently deletes a brand style.\n\n**When to use:** To remove a style the account no longer uses.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the brand style. Get it with `list_design_settings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e1b84c07-9a35-4d2f-b6c8-3f7d0a5e9b21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove brand kit",
            "erase style",
            "discard brand"
          ],
          "es": [
            "eliminar estilo de marca",
            "borrar kit de marca",
            "quitar estilo"
          ]
        }
      }
    },
    "/companies": {
      "get": {
        "operationId": "list_companies",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "Company collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Company.jsonld-company.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Company-company.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value, `page`, `itemsPerPage` or an `order` field is not valid. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`projection_not_ready`: The company search is still being prepared for this account. Retry in a few minutes.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List companies",
        "description": "Lists the companies of the account, most recently changed first, with their domains, owner, location, classification and number of linked contacts. A company is an organization your contacts work for; it is shared by the whole account and is not tied to any audience.\n\n**When to use:** To browse companies or to find one by name, domain, owner, country or industry before reading, editing or linking it to a contact.\n\n**When not to use:** To read one company whose UUID you know, use `get_company`. To list the people of a company, use `list_contacts` with the `company` filter. To find people rather than organizations, use `list_contacts`. This list does not return description, social links, phones or attributes; `get_company` does.\n\n**Filters:** All filters are optional and combine with AND.\n- `name`: partial match, case-insensitive.\n- `domain`: exact match on any domain of the company, written as in `domains` (`acme.com`).\n- `owner`: email of the owner user.\n- `country_code`: exact two-letter country code.\n- `city`: partial match.\n- `company_type`: exact value (`private`, `public`...).\n- `industry`: an industry of `list_company_industries`, as its UUID or exact label.\n- `record_source`: exact value (`api`, `import`, `connected_mailbox`...).\nSorting: `order[field]=asc|desc` with `name`, `created_at`, `updated_at`, `employees`, `annual_revenue` or `founded_year`. Default: `updated_at` descending (up to 4 `order` fields).\nPagination: `page` and `itemsPerPage`, like the rest of the API; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "name",
            "in": "query",
            "description": "Part of the company name (partial match).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "acme"
          },
          {
            "name": "domain",
            "in": "query",
            "description": "A domain of the company, as in `domains`. Exact match.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "acme.com"
          },
          {
            "name": "owner",
            "in": "query",
            "description": "Email of the owner user.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "email"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "laura@acme.com"
          },
          {
            "name": "country_code",
            "in": "query",
            "description": "Two-letter country code of the company location.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ES"
          },
          {
            "name": "city",
            "in": "query",
            "description": "Part of the city name.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Madrid"
          },
          {
            "name": "company_type",
            "in": "query",
            "description": "Company type, exact value.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "private"
          },
          {
            "name": "industry",
            "in": "query",
            "description": "Industry, as its UUID or its exact label in `list_company_industries`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Retail"
          },
          {
            "name": "record_source",
            "in": "query",
            "description": "How the company was created, exact value.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "api"
          },
          {
            "name": "order[name]",
            "in": "query",
            "description": "Sort by name: `asc` or `desc`. The same pattern works for `created_at`, `updated_at`, `employees`, `annual_revenue` and `founded_year`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "asc"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "companies",
            "organizations",
            "accounts",
            "businesses",
            "find company by domain",
            "search company by name",
            "company list"
          ],
          "es": [
            "empresas",
            "organizaciones",
            "cuentas",
            "negocios",
            "buscar empresa por dominio",
            "buscar empresa por nombre",
            "listado de empresas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value, `page`, `itemsPerPage` or an `order` field is not valid. Read `violations[].propertyPath`."
          },
          {
            "status": 503,
            "code": "projection_not_ready",
            "meaning": "The company search is still being prepared for this account. Retry in a few minutes."
          }
        ]
      },
      "post": {
        "operationId": "create_company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "201": {
            "description": "Company resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Company.jsonld-company.list_company.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company-company.list_company.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`company_domain_conflict`: A domain in `domains` already belongs to another company. The `detail` of the response gives the domain and the company that has it (name and UUID); use that company with `get_company` instead of creating another.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Name missing or blank, a domain is not a valid bare domain, a closed-list value is not allowed, the owner email is not an active user of the account, or an attribute value is invalid. See `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a company",
        "description": "Creates a company in the CRM, standalone: it is not linked to any contact or audience. Every editable field (domains, owner, location, classification, social links and attribute values) can be sent in the same request, and they are all saved together or not at all. The company is recorded as created through the API.\n\n**When to use:** To register an organization the account does not have yet, before or after creating the people who work for it.\n\n**When not to use:** To add a person, use `create_contact`; that operation can also link the person to a company. Before creating, check that the company does not exist: search by domain with `list_companies`, because a domain can belong to only one company. To change an existing company, use `update_company`.\n\n**Side effects:** The company appears in the CRM with a `created` entry in its activity, attributed to the person who owns the token, with the note \"via Maia\" when Maia made the call. It is not linked to any contact: link a contact to it with `update_contact`. Nothing is sent and no webhook fires (CRM webhook events do not exist yet). Automations of the new engine that listen to this creation, or to the values it sets, can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Company resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Company.CompanyCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Company.CompanyCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new company",
            "add company",
            "register organization",
            "add business",
            "create account (organization)"
          ],
          "es": [
            "nueva empresa",
            "añadir empresa",
            "dar de alta empresa",
            "crear organización",
            "crear cuenta de empresa"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 409,
            "code": "company_domain_conflict",
            "meaning": "A domain in `domains` already belongs to another company. The `detail` of the response gives the domain and the company that has it (name and UUID); use that company with `get_company` instead of creating another."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Name missing or blank, a domain is not a valid bare domain, a closed-list value is not allowed, the owner email is not an active user of the account, or an attribute value is invalid. See `violations[].propertyPath`."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/companies/{uuid}": {
      "get": {
        "operationId": "get_company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "Company resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Company.jsonld-company.list_company.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company-company.list_company.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_company`: The company does not exist in this account. Find its UUID with `list_companies`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a company",
        "description": "Returns one company with all its data: domains, phones, owner, location, classification, social links, attribute values and the number of linked contacts.\n\n**When to use:** To read the full record of a company whose UUID you know, for example before editing it or to check which domains it has.\n\n**When not to use:** To find a company by name or domain, use `list_companies`. To see its people, use `list_contacts` with the `company` filter. To see the definitions of its attributes (types, options), use `list_company_attributes`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company. Get it from `list_companies` (or from the `company` field of a contact).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company details",
            "company profile",
            "organization record",
            "get company by id"
          ],
          "es": [
            "detalle de empresa",
            "ficha de empresa",
            "datos de la empresa",
            "obtener empresa"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_company",
            "meaning": "The company does not exist in this account. Find its UUID with `list_companies`."
          }
        ]
      },
      "put": {
        "operationId": "update_company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "Company resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Company.jsonld-company.list_company.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company-company.list_company.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_company`: The company does not exist in this account. Find its UUID with `list_companies`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`company_domain_conflict`: A domain in `domains` already belongs to another company. The `detail` of the response gives the domain and the company that has it (name and UUID); do not retry the same request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank `name`, a malformed domain, a value outside a closed list, an owner email that is not an active user of the account, or a wrong attribute value. See `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a company",
        "description": "Changes the data of an existing company: name, domains, owner, location, classification, social links and attribute values. Fields you leave out keep their value; `null` clears an optional one. Lists (`domains`, `industries`, `business_models`) are replaced as a whole.\n\n**When to use:** To correct or complete a company, change its owner, or replace its domains. Send only what changes.\n\n**When not to use:** To link or unlink a person from the company, use `update_contact` (its `company` field); a company's contacts are not edited here. To remove the company altogether, use `delete_company`. To create one, use `create_company`.\n\n**Side effects:** All the fields of the request are applied together: if one is rejected, nothing is saved. Each field that really changes adds an entry to the company's activity (field, previous and new value), attributed to the person who owns the token, with \"via Maia\" when Maia made the call. Saving the same value leaves no entry. Replacing `domains` frees the removed ones, so another company can take them. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company. Get it from `list_companies` (or from the `company` field of a contact).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "requestBody": {
          "description": "The updated Company resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Company.CompanyUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Company.CompanyUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit company",
            "change company data",
            "assign company owner",
            "change company domain",
            "modify organization"
          ],
          "es": [
            "editar empresa",
            "modificar empresa",
            "asignar responsable de la empresa",
            "cambiar dominio de la empresa",
            "actualizar datos de la empresa"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_company",
            "meaning": "The company does not exist in this account. Find its UUID with `list_companies`."
          },
          {
            "status": 409,
            "code": "company_domain_conflict",
            "meaning": "A domain in `domains` already belongs to another company. The `detail` of the response gives the domain and the company that has it (name and UUID); do not retry the same request."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank `name`, a malformed domain, a value outside a closed list, an owner email that is not an active user of the account, or a wrong attribute value. See `violations[].propertyPath`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "204": {
            "description": "Company resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_company`: The company does not exist in this account. Find its UUID with `list_companies`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nA file upload or a database lock was in progress; nothing was deleted. Retry in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a company",
        "description": "Permanently deletes a company. Its contacts and opportunities stay, no longer linked to it. There is no archive and no undo.\n\n**When to use:** Only when the user explicitly asks to delete this company for good, for example a duplicate or a test record.\n\n**When not to use:** To fix a wrong name, domain or owner, use `update_company`. To detach a person from the company without deleting it, use `update_contact` with `company` set to `null`. There is no merge of companies: to consolidate duplicates, move the contacts with `update_contact`, then delete the duplicate.\n\n**Side effects:** Deleted with the company: its activity, its notes, its files (a Google Drive reference never deletes the original in Drive) and its attribute values; its domains are freed. Kept but unlinked from it: contacts (each gets a `company unlinked` entry in its activity), opportunities (same), tasks and meetings; connected emails stay, no longer shown under the company. If the account creates companies automatically from connected Gmail or Calendar, a new email or meeting with one of its domains can create it again; there is no list of suppressed domains. No webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.companies.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company. Get it from `list_companies` (or from the `company` field of a contact).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove company",
            "erase company",
            "delete organization",
            "get rid of duplicate company"
          ],
          "es": [
            "eliminar empresa",
            "borrar empresa",
            "quitar empresa",
            "eliminar empresa duplicada"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_company",
            "meaning": "The company does not exist in this account. Find its UUID with `list_companies`."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "A file upload or a database lock was in progress; nothing was deleted. Retry in a few seconds."
          }
        ]
      }
    },
    "/company_industries": {
      "get": {
        "operationId": "list_company_industries",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "CompanyIndustry collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CompanyIndustry.jsonld-company_industry.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyIndustry-company_industry.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List company industries",
        "description": "Returns the catalog of industries a company can have, with their UUID and label. The catalog is the same for every account and cannot be changed.\n\n**When to use:** Before setting `industries` on `create_company` or `update_company`, or filtering `list_companies` by `industry`, to pick a valid value.\n\n**When not to use:** To see the industries of one company, read it with `get_company`. To define your own classification for companies, create an `enum` attribute with `create_company_attribute`.\n\n**Filters:** No filters. The whole catalog is returned in one response, sorted by label; it is not paginated.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "industries",
            "company sectors",
            "industry list",
            "valid industries"
          ],
          "es": [
            "sectores",
            "sectores de empresa",
            "lista de sectores",
            "industrias"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/company_attributes": {
      "get": {
        "operationId": "list_company_attributes",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "200": {
            "description": "CompanyAttribute collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.contacts_companies.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List company attributes",
        "description": "Lists every custom attribute defined for companies in the account, active and archived, ordered by position: name, type, public code, options and whether it is archived. The list is complete, not paginated, and has no filters.\n\n**When to use:** Before reading or writing the `attributes` of a company, to learn which attributes exist, their `public_code` (the key to use), their type and, for `enum` and `multi_enum`, the options a value can take. Also to check whether an attribute with the same name already exists before creating one.\n\n**When not to use:** To read the attributes of one company, read the company itself with `get_company`; this operation lists definitions, not values. For the custom fields of people, use `list_contact_attributes`.\n\n**Filters:** None. Archived attributes are included: check `status` on each item.\n\n**Permissions:** Requires the `crm.contacts_companies.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company fields",
            "custom fields of companies",
            "company properties",
            "what data can I store on a company",
            "attribute definitions",
            "custom field definitions"
          ],
          "es": [
            "campos de empresa",
            "campos personalizados de empresas",
            "propiedades de empresa",
            "qué datos puedo guardar de una empresa",
            "definiciones de atributos",
            "catálogo de campos personalizados"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.contacts_companies.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      },
      "post": {
        "operationId": "create_company_attribute",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "201": {
            "description": "CompanyAttribute resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `duplicate_name` (an active company attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: `type` is not valid for companies; `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a company attribute",
        "description": "Defines a new custom attribute for companies, placed after the existing ones. Once created, it can be filled in on any company through its `public_code`. Its visual presentation (languages, help text, display style) is left at the defaults and can be tuned in the app.\n\n**When to use:** When the account needs to store a new piece of data on organizations that the company does not already have, for example a market segment or a renewal date.\n\n**When not to use:** To change an existing attribute, use `update_company_attribute`. To set a value on a company, use `update_company`: this operation only defines the field, it does not set any value.\n\n**Side effects:** Records the creation in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `crm.companies.attributes.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new CompanyAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new company field",
            "new custom field definition",
            "new company property",
            "define a field",
            "new attribute",
            "add dropdown field to companies"
          ],
          "es": [
            "nuevo campo de empresa",
            "nueva definición de campo personalizado",
            "crear propiedad de empresa",
            "definir un campo",
            "nuevo atributo",
            "añadir desplegable a empresas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `duplicate_name` (an active company attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: `type` is not valid for companies; `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/company_attributes/{uuid}": {
      "get": {
        "operationId": "get_company_attribute",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "200": {
            "description": "CompanyAttribute resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.contacts_companies.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a company attribute",
        "description": "Returns one company attribute with its type, public code, status, version and options.\n\n**When to use:** When you know the UUID and need the current `version` before updating, archiving or restoring it, or the full list of its options.\n\n**When not to use:** To discover which attributes exist, use `list_company_attributes`; it returns all of them in one call.\n\n**Permissions:** Requires the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company attribute. Get it from `list_company_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company field",
            "company property",
            "attribute options",
            "attribute version",
            "company attribute definition",
            "custom field definition"
          ],
          "es": [
            "campo de empresa",
            "propiedad de empresa",
            "opciones del atributo",
            "versión del atributo",
            "definición de atributo de empresa",
            "definición de campo personalizado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.contacts_companies.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`."
          }
        ]
      },
      "put": {
        "operationId": "update_company_attribute",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "200": {
            "description": "CompanyAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_company_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a company attribute",
        "description": "Changes the name, the description or the options of a company attribute. Fields left out stay as they are. Values already stored on companies are not touched; renaming an option or the attribute changes how they read, not what is stored.\n\n**When to use:** To rename an attribute, add, rename, recolor, reorder or archive options of an `enum` or `multi_enum`, or edit the description.\n\n**When not to use:** The `type`, the `public_code` and the `currency` cannot be changed: create a new attribute instead. To stop using the attribute altogether, use `archive_company_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `crm.companies.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company attribute. Get it from `list_company_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          }
        ],
        "requestBody": {
          "description": "The updated CompanyAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename company field",
            "edit company field",
            "add option to dropdown",
            "change options",
            "edit property",
            "update attribute definition"
          ],
          "es": [
            "renombrar campo de empresa",
            "editar campo de empresa",
            "añadir opción a un desplegable",
            "cambiar opciones",
            "editar propiedad",
            "actualizar definición de atributo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_company_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/company_attributes/{uuid}/actions/archive": {
      "put": {
        "operationId": "archive_company_attribute",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "200": {
            "description": "CompanyAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `archive_blocked` (items in the app still use the attribute; `impact` lists them: remove it from them first, or ask the user to do it in the app) or `stale_version` (read it again with `get_company_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive a company attribute",
        "description": "Archives a company attribute: it stops accepting new values, but the values already stored are kept and its public code stays reserved. It can be restored.\n\n**When to use:** When an attribute is no longer used but its history must be kept. This is the way to retire an attribute.\n\n**When not to use:** To bring it back, use `restore_company_attribute`. To remove only some options, use `update_company_attribute` and archive those options.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Archiving is refused while saved views, segments, campaigns, automations or other items in the app depend on the attribute.\n\n**Permissions:** Requires the `crm.companies.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company attribute. Get it from `list_company_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          }
        ],
        "requestBody": {
          "description": "The updated CompanyAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "hide company field",
            "disable company field",
            "retire attribute",
            "deactivate custom field",
            "archive attribute",
            "stop using a field"
          ],
          "es": [
            "ocultar campo de empresa",
            "desactivar campo de empresa",
            "retirar atributo",
            "dar de baja un campo personalizado",
            "archivar atributo",
            "dejar de usar un campo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `archive_blocked` (items in the app still use the attribute; `impact` lists them: remove it from them first, or ask the user to do it in the app) or `stale_version` (read it again with `get_company_attribute` and retry)."
          }
        ]
      }
    },
    "/company_attributes/{uuid}/actions/restore": {
      "put": {
        "operationId": "restore_company_attribute",
        "tags": [
          "Company attributes"
        ],
        "responses": {
          "200": {
            "description": "CompanyAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute.jsonld-company_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAttribute-company_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_company_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore a company attribute",
        "description": "Restores an archived company attribute: it accepts new values again and keeps the values it had.\n\n**When to use:** To bring back an attribute that was archived, instead of creating a new one with the same name.\n\n**When not to use:** To archive an attribute, use `archive_company_attribute`. To rename it as well, restore it first and then use `update_company_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `crm.companies.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the company attribute. Get it from `list_company_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          }
        ],
        "requestBody": {
          "description": "The updated CompanyAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAttribute.CompanyAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unarchive company field",
            "reactivate company field",
            "bring back attribute",
            "undo archive",
            "restore attribute",
            "reinstate an archived field"
          ],
          "es": [
            "desarchivar campo de empresa",
            "reactivar campo de empresa",
            "recuperar atributo",
            "deshacer archivado",
            "restaurar atributo",
            "reponer un campo archivado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `crm.companies.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no company attribute with that UUID in this account. Get the right one with `list_company_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_company_attribute` and retry)."
          }
        ]
      }
    },
    "/company_filter_fields": {
      "get": {
        "operationId": "list_company_filter_fields",
        "tags": [
          "Company filters"
        ],
        "responses": {
          "200": {
            "description": "CompanyFilterField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CompanyFilterField.jsonld-company_filter_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyFilterField-company_filter_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the fields to filter companies by",
        "description": "Lists every field the user can filter companies on in a workflow, with its operators, the shape of the value each operator expects and, for fixed lists, its options: company data, location, owner, record source and dates, company attributes, the record `company.id` and the data of the company's contacts.\n\n**When to use:** Before writing a filter on a company in a workflow (`create_workflow`, `update_workflow`): the «Only if» of a company trigger, a Condition with `matches` on a company (also one inside another record, like `trigger.opportunity.company`), a company search, a wait until a company matches filters or the «Exit when» of a company workflow. Write the filter as the public conditions tree, `{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\"}]}` (the one of `search_contacts`, without `audience`), with each field's `id`, an operator `id` and a value of the form its `value_shape` says; the server saves it as the filter document of companies.\n\n**When not to use:** For filters on contacts, use `list_contact_filter_fields` with `usable_in=automation`. To find companies by name, domain or other data, use `list_companies` with its query filters. To read the values stored for one company, use `get_company`.\n\n**Filters:** All matching fields come in one response, in menu order; there is no pagination.\n- `search`: fields whose `label` or `id` contains the text, ignoring case.\n- `category`: only the fields under that category `id` (e.g. `company.location`).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. The catalog is shaped by the user's permissions, as in Customer App: the company fields need a CRM seat and `crm.contacts_companies.read`, and the fields of the company's contacts also need `contacts.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the field `label` or `id`, ignoring case.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "country"
          },
          {
            "name": "category",
            "in": "query",
            "description": "Category `id`: only its fields and those of its subcategories.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "company.location"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company filter fields",
            "filter companies",
            "company conditions",
            "workflow company filter",
            "what can I filter companies by"
          ],
          "es": [
            "campos para filtrar empresas",
            "filtrar empresas",
            "condiciones de empresas",
            "filtro de empresa en un flujo",
            "por qué puedo filtrar empresas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/company_filter_fields/{fieldId}": {
      "get": {
        "operationId": "get_company_filter_field",
        "tags": [
          "Company filters"
        ],
        "responses": {
          "200": {
            "description": "CompanyFilterField resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyFilterField.jsonld-company_filter_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyFilterField-company_filter_field.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: There is no such field for this user: it does not exist, was archived, or the user cannot filter on it. Look it up with `list_company_filter_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a field to filter companies by",
        "description": "Returns one field of the company filter catalog with its operators, value shapes, constraints and options.\n\n**When to use:** To check which operators and values are valid for one field before writing a condition on a company in a workflow, or after an `invalid_filter_operator` or `invalid_filter_value` issue.\n\n**When not to use:** To find a field when you do not know its `id`, use `list_company_filter_fields` with `search`. For values that come from the data (`options_mode: suggestions`), use `list_company_filter_field_suggestions`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. The catalog is shaped by the user's permissions, as in Customer App: the company fields need a CRM seat and `crm.contacts_companies.read`, and the fields of the company's contacts also need `contacts.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "fieldId",
            "in": "path",
            "description": "`id` of the field, from `list_company_filter_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "company.location_country"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company filter field operators",
            "company field options"
          ],
          "es": [
            "operadores del campo de empresa",
            "opciones del campo de empresa"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "There is no such field for this user: it does not exist, was archived, or the user cannot filter on it. Look it up with `list_company_filter_fields`."
          }
        ]
      }
    },
    "/company_filter_fields/{fieldId}/suggestions": {
      "get": {
        "operationId": "list_company_filter_field_suggestions",
        "tags": [
          "Company filters"
        ],
        "responses": {
          "200": {
            "description": "CompanyFilterFieldSuggestion collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CompanyFilterFieldSuggestion.jsonld-company_filter_field_suggestion.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyFilterFieldSuggestion-company_filter_field_suggestion.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The field does not exist for this user or has no suggestions (`options_mode` is not `suggestions`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List suggested values of a company filter field",
        "description": "Returns the values found in the account's companies for a field whose `options_mode` is `suggestions` (for example the company types, the countries or the values used in a text attribute), each with its `value` and `label`.\n\n**When to use:** To pick an existing value for a condition on a company in a workflow when the field has no fixed list, so that the condition matches what is really stored.\n\n**When not to use:** For fields with `options_mode: closed`, the values are already in `options` of `get_company_filter_field`. For contact fields, use `list_contact_filter_field_suggestions`.\n\n**Side effects:** None. The company fields (type, business models, country, time zone) return at most their first 50 values, read from the companies at that moment. The values of company attributes and of the fields of the company's contacts are read from a cache that refreshes by itself; a value saved a moment ago can be missing.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. The catalog is shaped by the user's permissions, as in Customer App: the company fields need a CRM seat and `crm.contacts_companies.read`, and the fields of the company's contacts also need `contacts.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "fieldId",
            "in": "path",
            "description": "`id` of the field, from `list_company_filter_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "company.company_type"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "company suggested values",
            "existing company values",
            "company field values"
          ],
          "es": [
            "valores sugeridos de empresas",
            "valores existentes de empresas",
            "valores del campo de empresa"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The field does not exist for this user or has no suggestions (`options_mode` is not `suggestions`)."
          }
        ]
      }
    },
    "/audiences/{audienceUuid}/condition_fields": {
      "get": {
        "operationId": "list_audience_condition_fields",
        "tags": [
          "Condition fields"
        ],
        "responses": {
          "200": {
            "description": "ConditionField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ConditionField.jsonld-condition_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConditionField-condition_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List condition fields",
        "description": "Lists every member property you can filter on in this audience: subscriber data, custom fields, location, consent, campaign and survey activity, groups and purchases. Each field says its type, its allowed operators and, for fixed lists, its options. All the fields come in one response.\n\n**When to use:** Before creating or editing an old audience segment, a bulk group action by conditions or a condition step of a classic automation: you need the field's IRI (`@id`) and one of its `operators` to write a valid condition.\n\n**When not to use:** For contact segments, `search_contacts`, `count_contacts`, the `filter` of a campaign and the filters of workflows (`create_workflow`, `update_workflow`), use `list_contact_filter_fields`: condition fields only serve old audience segments, bulk group actions by conditions and the condition steps of classic automations. To read the values stored for a person, use `get_audience_member`. To list the extra fields you can store on members, use `list_audience_custom_fields`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience whose fields you want. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Ignored: all the fields come in a single response.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Ignored: all the fields come in a single response.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "filterable fields",
            "segment fields",
            "filter options",
            "available operators",
            "what can I filter by"
          ],
          "es": [
            "campos filtrables",
            "campos para segmentar",
            "operadores disponibles",
            "por qué puedo filtrar",
            "criterios de filtro"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/condition_fields/{uuid}": {
      "get": {
        "operationId": "get_audience_condition_field",
        "tags": [
          "Condition fields"
        ],
        "responses": {
          "200": {
            "description": "ConditionField resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionField.jsonld-condition_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionField-condition_field.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The condition field or the audience does not exist. Find valid UUIDs with `list_audience_condition_fields` and `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a condition field",
        "description": "Returns one condition field: its name, type, category, the operators allowed for it, the kind of input it expects and, for fixed lists, its valid options.\n\n**When to use:** To check which operators and values are valid for a field before using it in a segment or a bulk group action.\n\n**When not to use:** For contact segments, `search_contacts`, `count_contacts`, the `filter` of a campaign and the filters of workflows (`create_workflow`, `update_workflow`), use `list_contact_filter_fields`: condition fields only serve old audience segments, bulk group actions by conditions and the condition steps of classic automations. To see all the fields at once, use `list_audience_condition_fields`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience whose fields you want. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the condition field. Get it from `list_audience_condition_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "field operators",
            "field options",
            "filter field details"
          ],
          "es": [
            "operadores del campo",
            "opciones del campo de filtro",
            "detalle del criterio"
          ]
        }
      }
    },
    "/contact_attributes": {
      "get": {
        "operationId": "list_contact_attributes",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "200": {
            "description": "ContactAttribute collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List contact attributes",
        "description": "Lists every custom attribute defined for contacts in the account, active and archived, ordered by position: name, type, public code, options and whether it is archived. The list is complete, not paginated, and has no filters.\n\n**When to use:** Before reading or writing the `attributes` of a contact, to learn which attributes exist, their `public_code` (the key to use), their type and, for `enum` and `multi_enum`, the options a value can take. Also to check whether an attribute with the same name already exists before creating one.\n\n**When not to use:** To list the custom fields of an audience (data stored per member), use `list_audience_custom_fields`. To read the attributes of one contact, read the contact itself with `get_contact`; this operation lists definitions, not values.\n\n**Filters:** None. Archived attributes are included: check `status` on each item.\n\n**Permissions:** Requires the `contacts.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "contact fields",
            "custom fields of contacts",
            "contact properties",
            "what data can I store on a contact",
            "attribute definitions",
            "custom field definitions"
          ],
          "es": [
            "campos de contacto",
            "campos personalizados de contactos",
            "propiedades de contacto",
            "qué datos puedo guardar de un contacto",
            "definiciones de atributos",
            "catálogo de campos personalizados"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      },
      "post": {
        "operationId": "create_contact_attribute",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "201": {
            "description": "ContactAttribute resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `duplicate_name` (an active contact attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: `type` is not valid for contacts; `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a contact attribute",
        "description": "Defines a new custom attribute for contacts, placed after the existing ones. Once created, it can be filled in on any contact through its `public_code`. Its visual presentation (languages, help text, display style) is left at the defaults and can be tuned in the app.\n\n**When to use:** When the account needs to store a new piece of data on people that the contact does not already have, for example a customer tier or a renewal date.\n\n**When not to use:** To change an existing attribute, use `update_contact_attribute`. To set a value on a contact, use `update_contact`: this operation only defines the field, it does not set any value.\n\n**Side effects:** Records the creation in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `contacts.attributes.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new ContactAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new contact field",
            "new custom field definition",
            "new contact property",
            "define a field",
            "new attribute",
            "add dropdown field to contacts"
          ],
          "es": [
            "nuevo campo de contacto",
            "nueva definición de campo personalizado",
            "crear propiedad de contacto",
            "definir un campo",
            "nuevo atributo",
            "añadir desplegable a contactos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `duplicate_name` (an active contact attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: `type` is not valid for contacts; `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/contact_attributes/{uuid}": {
      "get": {
        "operationId": "get_contact_attribute",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "200": {
            "description": "ContactAttribute resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a contact attribute",
        "description": "Returns one contact attribute with its type, public code, status, version and options.\n\n**When to use:** When you know the UUID and need the current `version` before updating, archiving or restoring it, or the full list of its options.\n\n**When not to use:** To discover which attributes exist, use `list_contact_attributes`; it returns all of them in one call.\n\n**Permissions:** Requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact attribute. Get it from `list_contact_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "contact field",
            "contact property",
            "attribute options",
            "attribute version",
            "contact attribute definition",
            "custom field definition"
          ],
          "es": [
            "campo de contacto",
            "propiedad de contacto",
            "opciones del atributo",
            "versión del atributo",
            "definición de atributo de contacto",
            "definición de campo personalizado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability, or its scope is too low. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`."
          }
        ]
      },
      "put": {
        "operationId": "update_contact_attribute",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "200": {
            "description": "ContactAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_contact_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a contact attribute",
        "description": "Changes the name, the description or the options of a contact attribute. Fields left out stay as they are. Values already stored on contacts are not touched; renaming an option or the attribute changes how they read, not what is stored.\n\n**When to use:** To rename an attribute, add, rename, recolor, reorder or archive options of an `enum` or `multi_enum`, or edit the description.\n\n**When not to use:** The `type`, the `public_code` and the `currency` cannot be changed: create a new attribute instead. To stop using the attribute altogether, use `archive_contact_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `contacts.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact attribute. Get it from `list_contact_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          }
        ],
        "requestBody": {
          "description": "The updated ContactAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename contact field",
            "edit contact field",
            "add option to dropdown",
            "change options",
            "edit property",
            "update attribute definition"
          ],
          "es": [
            "renombrar campo de contacto",
            "editar campo de contacto",
            "añadir opción a un desplegable",
            "cambiar opciones",
            "editar propiedad",
            "actualizar definición de atributo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_contact_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/contact_attributes/{uuid}/actions/archive": {
      "put": {
        "operationId": "archive_contact_attribute",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "200": {
            "description": "ContactAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `archive_blocked` (items in the app still use the attribute; `impact` lists them: remove it from them first, or ask the user to do it in the app) or `stale_version` (read it again with `get_contact_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive a contact attribute",
        "description": "Archives a contact attribute: it stops accepting new values, but the values already stored are kept and its public code stays reserved. It can be restored.\n\n**When to use:** When an attribute is no longer used but its history must be kept. This is the way to retire an attribute.\n\n**When not to use:** To bring it back, use `restore_contact_attribute`. To remove only some options, use `update_contact_attribute` and archive those options.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Archiving is refused while saved views, segments, campaigns, automations or other items in the app depend on the attribute.\n\n**Permissions:** Requires the `contacts.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact attribute. Get it from `list_contact_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          }
        ],
        "requestBody": {
          "description": "The updated ContactAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "hide contact field",
            "disable contact field",
            "retire attribute",
            "deactivate custom field",
            "archive attribute",
            "stop using a field"
          ],
          "es": [
            "ocultar campo de contacto",
            "desactivar campo de contacto",
            "retirar atributo",
            "dar de baja un campo personalizado",
            "archivar atributo",
            "dejar de usar un campo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `archive_blocked` (items in the app still use the attribute; `impact` lists them: remove it from them first, or ask the user to do it in the app) or `stale_version` (read it again with `get_contact_attribute` and retry)."
          }
        ]
      }
    },
    "/contact_attributes/{uuid}/actions/restore": {
      "put": {
        "operationId": "restore_contact_attribute",
        "tags": [
          "Contact attributes"
        ],
        "responses": {
          "200": {
            "description": "ContactAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute.jsonld-contact_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAttribute-contact_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_contact_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore a contact attribute",
        "description": "Restores an archived contact attribute: it accepts new values again and keeps the values it had.\n\n**When to use:** To bring back an attribute that was archived, instead of creating a new one with the same name.\n\n**When not to use:** To archive an attribute, use `archive_contact_attribute`. To rename it as well, restore it first and then use `update_contact_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires the `contacts.attributes.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact attribute. Get it from `list_contact_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          }
        ],
        "requestBody": {
          "description": "The updated ContactAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAttribute.ContactAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unarchive contact field",
            "reactivate contact field",
            "bring back attribute",
            "undo archive",
            "restore attribute",
            "reinstate an archived field"
          ],
          "es": [
            "desarchivar campo de contacto",
            "reactivar campo de contacto",
            "recuperar atributo",
            "deshacer archivado",
            "restaurar atributo",
            "reponer un campo archivado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.attributes.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no contact attribute with that UUID in this account. Get the right one with `list_contact_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_contact_attribute` and retry)."
          }
        ]
      }
    },
    "/contact_filter_fields": {
      "get": {
        "operationId": "list_contact_filter_fields",
        "tags": [
          "Contact filters"
        ],
        "responses": {
          "200": {
            "description": "ContactFilterField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactFilterField.jsonld-contact_filter_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactFilterField-contact_filter_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`usable_in` is not one of the documented values. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the fields to filter contacts by",
        "description": "Lists every field the user can filter contacts on, with its operators, the shape of the value each operator expects and, for fixed lists, its options: contact data and attributes, tags, owner, company, location, audience subscriptions (status, source, dates, groups, consent, forms, audience custom fields) and email and SMS campaign activity.\n\n**When to use:** Before writing the `filter` of `create_contact_segment`, `update_contact_segment`, `search_contacts`, `count_contacts` or a campaign: you need each field's `id`, an operator `id` and the right value. Also before writing a contacts filter of a workflow (`create_workflow`, `update_workflow`: the «Only if» of a contact trigger, a Condition with `matches` on a contact, a contact search, a wait or the exit rule), with `usable_in=automation`.\n\n**When not to use:** For the conditions of old audience segments, of bulk group actions by conditions and of the condition steps of classic automations (`list_automation_steps`), use `list_audience_condition_fields`: those are a different catalog. For a filter on companies in a workflow, use `list_company_filter_fields`. To read the values stored for one person, use `get_contact`.\n\n**Filters:** All matching fields come in one response, in menu order; there is no pagination.\n- `search`: fields whose `label` or `id` contains the text, ignoring case.\n- `category`: only the fields under that category `id` (e.g. `audiences`).\n- `usable_in`: only the fields usable there (`search`, `segment`, `campaign` or `automation`). With `automation` the list is exactly the catalog workflows validate with: campaign activity is left out and `contact.id` is the record ID of the workflow engine (`eq` and `is_any_of`), not the contact picker of campaigns.\n\n**Permissions:** Requires the `contacts.read` capability. The catalog is shaped by the user's permissions, as in Customer App: audience and subscription fields need `marketing.audiences.read`; the owner, the company fields and the last email interaction need a CRM seat and `crm.contacts_companies.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the field `label` or `id`, ignoring case.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "status"
          },
          {
            "name": "category",
            "in": "query",
            "description": "Category `id`: only its fields and those of its subcategories.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "audiences"
          },
          {
            "name": "usable_in",
            "in": "query",
            "description": "Only the fields usable in that place. `automation` is the catalog of workflow filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "search",
                "segment",
                "campaign",
                "automation"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "segment"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "filter fields",
            "segment fields",
            "filter conditions",
            "available filters",
            "what can I filter by",
            "segmentation criteria"
          ],
          "es": [
            "campos para filtrar",
            "campos de segmentación",
            "criterios de segmentación",
            "filtros disponibles",
            "por qué puedo filtrar",
            "condiciones de contactos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`usable_in` is not one of the documented values. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/contact_filter_fields/{fieldId}": {
      "get": {
        "operationId": "get_contact_filter_field",
        "tags": [
          "Contact filters"
        ],
        "responses": {
          "200": {
            "description": "ContactFilterField resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactFilterField.jsonld-contact_filter_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactFilterField-contact_filter_field.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: There is no such field for this user: it does not exist, was archived, the user cannot filter on it or it cannot be used in `usable_in`. Look it up with `list_contact_filter_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`usable_in` is not one of the documented values. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a field to filter contacts by",
        "description": "Returns one field of the contact filter catalog with its operators, value shapes, constraints and options.\n\n**When to use:** To check which operators and values are valid for one field before writing a condition, or after a `invalid_filter_value` error. For a workflow filter, send `usable_in=automation`.\n\n**When not to use:** To find a field when you do not know its `id`, use `list_contact_filter_fields` with `search`. For values that come from the data (`options_mode: suggestions`), use `list_contact_filter_field_suggestions`.\n\n**Permissions:** Requires the `contacts.read` capability. The catalog is shaped by the user's permissions, as in Customer App: audience and subscription fields need `marketing.audiences.read`; the owner, the company fields and the last email interaction need a CRM seat and `crm.contacts_companies.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "fieldId",
            "in": "path",
            "description": "`id` of the field, from `list_contact_filter_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "membership.email_status"
          },
          {
            "name": "usable_in",
            "in": "query",
            "description": "The field as it is in that place, and 404 if it cannot be used there. `automation` reads it from the catalog of workflow filters, where `contact.id` is the record ID of the workflow engine.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "search",
                "segment",
                "campaign",
                "automation"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "automation"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "filter field operators",
            "field options",
            "condition values"
          ],
          "es": [
            "operadores del campo",
            "opciones del campo",
            "valores de la condición"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "There is no such field for this user: it does not exist, was archived, the user cannot filter on it or it cannot be used in `usable_in`. Look it up with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`usable_in` is not one of the documented values. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/contact_filter_fields/{fieldId}/suggestions": {
      "get": {
        "operationId": "list_contact_filter_field_suggestions",
        "tags": [
          "Contact filters"
        ],
        "responses": {
          "200": {
            "description": "ContactFilterFieldSuggestion collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactFilterFieldSuggestion.jsonld-contact_filter_field_suggestion.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactFilterFieldSuggestion-contact_filter_field_suggestion.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The field does not exist for this user or has no suggestions (`options_mode` is not `suggestions`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List suggested values of a filter field",
        "description": "Returns the values found in the account's data for a field whose `options_mode` is `suggestions` (for example the subscription sources, or the values used in a text attribute), each with its `value` and `label`.\n\n**When to use:** To pick an existing value for a condition when the field has no fixed list, so that the condition matches what is really stored.\n\n**When not to use:** For fields with `options_mode: closed`, the values are already in `options` of `get_contact_filter_field`. To choose campaigns for an activity condition with `specific_campaigns`, take their UUIDs from `list_campaigns` or `list_sms_campaigns`.\n\n**Side effects:** Suggestions are read from a cache that refreshes by itself; a value created a moment ago can be missing.\n\n**Permissions:** Requires the `contacts.read` capability. The catalog is shaped by the user's permissions, as in Customer App: audience and subscription fields need `marketing.audiences.read`; the owner, the company fields and the last email interaction need a CRM seat and `crm.contacts_companies.read`. A field the user cannot use is not listed.",
        "parameters": [
          {
            "name": "fieldId",
            "in": "path",
            "description": "`id` of the field, from `list_contact_filter_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "membership.email_status"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "suggested values",
            "existing values",
            "field values"
          ],
          "es": [
            "valores sugeridos",
            "valores existentes",
            "valores del campo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The field does not exist for this user or has no suggestions (`options_mode` is not `suggestions`)."
          }
        ]
      }
    },
    "/contact_segments": {
      "get": {
        "operationId": "list_contact_segments",
        "tags": [
          "Contact segments"
        ],
        "responses": {
          "200": {
            "description": "ContactSegment collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactSegment.jsonld-contact_segment.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactSegment-contact_segment.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`page` or `itemsPerPage` is out of range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List contact segments",
        "description": "Lists the segments of the account by name: saved filters over all the contacts of the account, whatever their audiences. They are the same segments Customer App shows in the Contacts filter and offers as recipients of email and SMS campaigns.\n\n**When to use:** To find a segment by name before using it in a campaign (`contact_segment` of `create_campaign` or `create_sms_campaign`), counting it (`count_contacts`) or changing it.\n\n**When not to use:** For the old segments that live inside one audience (only the classic panel shows them), use `list_audience_segments`. To see who matches a segment now, use `search_contacts` with `segment`.\n\n**Filters:** There are no filters: the list is ordered by name (ignoring case). Pagination: `page` and `itemsPerPage` (default 100, maximum 100); the total is in `hydra:totalItems`.\n\n**Permissions:** Requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Segments per page. Default 100, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 100
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "segment",
            "saved filter",
            "contact segment",
            "audience segment",
            "smart list",
            "dynamic list",
            "list segments",
            "saved filters"
          ],
          "es": [
            "segmentos",
            "filtros guardados",
            "segmentos de contactos",
            "listas dinámicas",
            "segmento global",
            "ver segmentos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`page` or `itemsPerPage` is out of range. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_contact_segment",
        "tags": [
          "Contact segments"
        ],
        "responses": {
          "201": {
            "description": "ContactSegment resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment.jsonld-contact_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment-contact_segment.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`contact_segment_limit_reached`: The account already has as many segments as its plan allows. Nothing was saved. Delete a segment you no longer need (`delete_contact_segment`) or upgrade the plan; the extension `upgrade` gives the segments used and the plan limit.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`contact_segment_name_taken`: Another segment already uses that name (ignoring case and spaces). Nothing was saved; choose another `name` or change that segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`invalid_segment_definition`: `name` is empty after trimming spaces or longer than 190 characters.\n\n`segment_definition_empty`: `filter` has no conditions. A segment needs at least one.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`segment_field_not_allowed`: A `field` exists but cannot be part of a segment (its `usable_in` does not include `segment`, e.g. company fields or a specific contact). Remove that condition or use it in `search_contacts` instead.\n\n`invalid_segment_presentation`: The conditions take more than 64 KiB once stored (usually very long `set` values). Nothing was saved; shorten the lists of values.\n\n`stale_filter_catalog`: The filter catalog of the account changed while the segment was being saved (an attribute, audience or field was added or removed at that moment). Nothing was saved; send the same request again.\n\n`name` or `filter` is missing or has the wrong type. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a contact segment",
        "description": "Saves a filter over the contacts of the account as a named segment and publishes its first revision. The segment is global: it selects contacts, not members of one audience, and appears at once in Customer App (Contacts filter and campaign recipients).\n\n**When to use:** When the user wants to reuse a selection of contacts, for example «engaged subscribers from Spain», to send campaigns to it or to watch how many people it has. Read the fields first with `list_contact_filter_fields`; to check the conditions before saving, count them with `count_contacts`.\n\n**When not to use:** For a one-off selection that is not worth saving, send the `filter` straight to `search_contacts`, `count_contacts` or the campaign. To label people by hand use groups (`create_audience_group`). Old audience segments (`create_audience_segment`) are not visible in Customer App: do not use them for new work.\n\n**Side effects:** The segment is shared with every user of the account. Right after saving, the contacts that match are counted and stored in `match_count`; if that count fails or takes too long the segment is saved anyway with `match_count: null`. The segment is recorded as created by the person who owns the key or token; there is no «via Maia» mark on segments. Nothing is sent and no webhook fires.\n\n**Permissions:** Requires the `contacts.read` and `contacts.attributes.manage` capabilities. A segment is shared by the whole account, so it takes the same capabilities as a team saved view.",
        "parameters": [],
        "requestBody": {
          "description": "The new ContactSegment resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSegment.ContactSegmentCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSegment.ContactSegmentCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create segment",
            "new segment",
            "save filter",
            "save as segment",
            "build a segment",
            "segment contacts"
          ],
          "es": [
            "crear segmento",
            "nuevo segmento",
            "guardar filtro",
            "guardar como segmento",
            "segmentar contactos",
            "segmentación"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "contact_segment_limit_reached",
            "meaning": "The account already has as many segments as its plan allows. Nothing was saved. Delete a segment you no longer need (`delete_contact_segment`) or upgrade the plan; the extension `upgrade` gives the segments used and the plan limit."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 409,
            "code": "contact_segment_name_taken",
            "meaning": "Another segment already uses that name (ignoring case and spaces). Nothing was saved; choose another `name` or change that segment."
          },
          {
            "status": 422,
            "code": "invalid_segment_definition",
            "meaning": "`name` is empty after trimming spaces or longer than 190 characters."
          },
          {
            "status": 422,
            "code": "segment_definition_empty",
            "meaning": "`filter` has no conditions. A segment needs at least one."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "segment_field_not_allowed",
            "meaning": "A `field` exists but cannot be part of a segment (its `usable_in` does not include `segment`, e.g. company fields or a specific contact). Remove that condition or use it in `search_contacts` instead."
          },
          {
            "status": 422,
            "code": "invalid_segment_presentation",
            "meaning": "The conditions take more than 64 KiB once stored (usually very long `set` values). Nothing was saved; shorten the lists of values."
          },
          {
            "status": 422,
            "code": "stale_filter_catalog",
            "meaning": "The filter catalog of the account changed while the segment was being saved (an attribute, audience or field was added or removed at that moment). Nothing was saved; send the same request again."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`name` or `filter` is missing or has the wrong type. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/contact_segments/{uuid}": {
      "get": {
        "operationId": "get_contact_segment",
        "tags": [
          "Contact segments"
        ],
        "responses": {
          "200": {
            "description": "ContactSegment resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment.jsonld-contact_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment-contact_segment.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a contact segment",
        "description": "Returns one segment with the conditions of its active revision, its `version`, the last stored count and how many campaigns and saved views use it.\n\n**When to use:** To read the conditions of a segment before changing it, or to check whether campaigns depend on it before deleting it.\n\n**When not to use:** To know how many contacts match right now, use `count_contacts` with `segment` (`match_count` is the count stored at publication). To list them, use `search_contacts`.\n\n**Permissions:** Requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_contact_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "segment details",
            "segment conditions",
            "show segment",
            "segment usage"
          ],
          "es": [
            "ver segmento",
            "condiciones del segmento",
            "detalle del segmento",
            "dónde se usa el segmento"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`."
          }
        ]
      },
      "put": {
        "operationId": "update_contact_segment",
        "tags": [
          "Contact segments"
        ],
        "responses": {
          "200": {
            "description": "ContactSegment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment.jsonld-contact_segment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSegment-contact_segment.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`contact_segment_version_conflict`: `expected_version` is not the current `version`: someone changed the segment since you read it. Nothing was saved; read it again with `get_contact_segment` and decide whether to repeat the change.\n\n`contact_segment_name_taken`: Another segment already uses that name (ignoring case and spaces). Nothing was saved; choose another `name` or change that segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`invalid_segment_definition`: `name` is empty after trimming spaces or longer than 190 characters.\n\n`segment_definition_empty`: `filter` has no conditions. A segment needs at least one.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`segment_field_not_allowed`: A `field` exists but cannot be part of a segment (its `usable_in` does not include `segment`, e.g. company fields or a specific contact). Remove that condition or use it in `search_contacts` instead.\n\n`invalid_segment_presentation`: The conditions take more than 64 KiB once stored (usually very long `set` values). Nothing was saved; shorten the lists of values.\n\n`stale_filter_catalog`: The filter catalog of the account changed while the segment was being saved (an attribute, audience or field was added or removed at that moment). Nothing was saved; send the same request again.\n\nA field has the wrong type or `expected_version` is not a positive integer. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Rename or change a contact segment",
        "description": "Renames a segment and/or replaces its conditions by publishing a new revision. Fields you leave out keep their value; `filter` replaces all the conditions, it is never merged. Every saved change, a rename too, publishes revision N+1 and raises `version`.\n\n**When to use:** To fix or widen the conditions of a segment, or to give it a clearer name. Read it first with `get_contact_segment` and send its `version` as `expected_version`.\n\n**When not to use:** To save different conditions as another segment, use `create_contact_segment`. To change who receives one campaign without touching the segment, change the campaign (`update_campaign`, `update_sms_campaign`).\n\n**Side effects:** Draft and ready campaigns that target the segment follow the new revision; campaigns already scheduled keep the revision they were scheduled with, and sent ones never change. `match_count` is recalculated as in `create_contact_segment`. Recorded under the person who owns the key or token (no «via Maia» mark). Nothing is sent and no webhook fires.\n\n**Permissions:** Requires the `contacts.read` and `contacts.attributes.manage` capabilities. A segment is shared by the whole account, so it takes the same capabilities as a team saved view.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_contact_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          }
        ],
        "requestBody": {
          "description": "The updated ContactSegment resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSegment.ContactSegmentUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSegment.ContactSegmentUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit segment",
            "rename segment",
            "change segment conditions",
            "update filter"
          ],
          "es": [
            "editar segmento",
            "renombrar segmento",
            "cambiar condiciones del segmento",
            "modificar filtro guardado"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 409,
            "code": "contact_segment_version_conflict",
            "meaning": "`expected_version` is not the current `version`: someone changed the segment since you read it. Nothing was saved; read it again with `get_contact_segment` and decide whether to repeat the change."
          },
          {
            "status": 409,
            "code": "contact_segment_name_taken",
            "meaning": "Another segment already uses that name (ignoring case and spaces). Nothing was saved; choose another `name` or change that segment."
          },
          {
            "status": 422,
            "code": "invalid_segment_definition",
            "meaning": "`name` is empty after trimming spaces or longer than 190 characters."
          },
          {
            "status": 422,
            "code": "segment_definition_empty",
            "meaning": "`filter` has no conditions. A segment needs at least one."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "segment_field_not_allowed",
            "meaning": "A `field` exists but cannot be part of a segment (its `usable_in` does not include `segment`, e.g. company fields or a specific contact). Remove that condition or use it in `search_contacts` instead."
          },
          {
            "status": 422,
            "code": "invalid_segment_presentation",
            "meaning": "The conditions take more than 64 KiB once stored (usually very long `set` values). Nothing was saved; shorten the lists of values."
          },
          {
            "status": 422,
            "code": "stale_filter_catalog",
            "meaning": "The filter catalog of the account changed while the segment was being saved (an attribute, audience or field was added or removed at that moment). Nothing was saved; send the same request again."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field has the wrong type or `expected_version` is not a positive integer. Read `violations[].propertyPath`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_contact_segment",
        "tags": [
          "Contact segments"
        ],
        "responses": {
          "204": {
            "description": "ContactSegment resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`contact_segment_version_conflict`: `expected_version` is not the current `version`: someone changed the segment since you read it. Nothing was saved; read it again with `get_contact_segment` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`expected_version` is not a positive integer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a contact segment",
        "description": "Deletes a segment: it disappears from the list, from the Contacts filter and from the campaign recipients picker, and its name can be used again. The contacts are not touched. Its revisions are kept so that scheduled and sent campaigns keep their recipients.\n\n**When to use:** Only when the user explicitly wants the segment gone. Check `usage` with `get_contact_segment` first and tell the user which uses it has.\n\n**When not to use:** To stop one campaign from using it, change that campaign's recipients (`update_campaign`, `update_sms_campaign`). To delete or unsubscribe the people it selects, there is no segment action yet; the classic `async_task_segment_*` actions only accept old audience segments.\n\n**Side effects:** Nothing stops the deletion while campaigns use the segment. Draft and ready campaigns that target it can no longer be sent until their recipients are changed (`get_campaign` shows `contact_targeting.contact_segment_deleted: true` and an `error_code`); campaigns already scheduled keep the revision they were scheduled with and go out normally. Nothing is sent and no webhook fires.\n\n**Permissions:** Requires the `contacts.read` and `contacts.attributes.manage` capabilities. A segment is shared by the whole account, so it takes the same capabilities as a team saved view.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the segment. Get it from `list_contact_segments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          {
            "name": "expected_version",
            "in": "query",
            "description": "`version` you read. If the segment changed since, nothing is deleted and you get `contact_segment_version_conflict`. Optional: without it the current version is deleted.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 3
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete segment",
            "remove segment",
            "drop saved filter"
          ],
          "es": [
            "borrar segmento",
            "eliminar segmento",
            "quitar filtro guardado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` and `contacts.attributes.manage` capabilities, or its scope is below `account`. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The segment does not exist in this account or was deleted. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 409,
            "code": "contact_segment_version_conflict",
            "meaning": "`expected_version` is not the current `version`: someone changed the segment since you read it. Nothing was saved; read it again with `get_contact_segment` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`expected_version` is not a positive integer."
          }
        ]
      }
    },
    "/contact_tags": {
      "get": {
        "operationId": "list_contact_tags",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactTag collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactTag.jsonld-contact_tag.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactTag-contact_tag.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List contact tags",
        "description": "Returns the tags that exist in the account for contacts, in alphabetical order, so you can reuse an existing tag instead of creating a new one.\n\n**When to use:** Before tagging a contact with `create_contact` or `update_contact`, to find the exact name of an existing tag.\n\n**When not to use:** Tags label people across the whole account; to group the members of one audience, use groups (`list_audience_groups`).\n\n**Filters:** `search` matches the tag name, ignoring case and as a partial match. Pagination: `page` and `itemsPerPage`.\n\n**Permissions:** Requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to find in the tag name.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "vip"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Tags per page.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "tags",
            "labels",
            "contact tags"
          ],
          "es": [
            "etiquetas",
            "etiquetas de contacto",
            "listar etiquetas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/contacts": {
      "get": {
        "operationId": "list_contacts",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "Contact collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Contact.jsonld-contact.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Contact-contact.read"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_contact_list_criteria`: `company` and `exclude_company` were sent together, or one of them is not a UUID. Send only one, with a valid UUID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`crm_capability_required`: You used the `company` or `exclude_company` filter and the account does not have the CRM module active. Only an account admin can activate it; otherwise, drop the filter.\n\n`crm_permission_denied`: You used the `company` or `exclude_company` filter and the user's role lacks `crm.contacts_companies.read`. Use credentials of a user who has it; otherwise, drop the filter.\n\n`crm_seat_required`: You used the `company` or `exclude_company` filter and the user has no CRM seat. Ask an account admin to assign one; otherwise, drop the filter.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The company in `company` or `exclude_company` does not exist in this account. Look it up with `list_companies`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50, `search` up to 120 characters). Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List contacts",
        "description": "Returns the people of the account, newest first, one record per person whatever the audiences they belong to. Each contact carries its identity, company, owner, tags and attributes, not its audience subscriptions.\n\n**When to use:** To find a person by name, email or phone, to list the people of a company (`company` filter), or to get the UUID of a contact before reading or changing it.\n\n**When not to use:** To find the contacts that match conditions (audience and subscription status, tags, attributes, campaign activity) or a segment, use `search_contacts`; to only know how many they are, `count_contacts`. To see who is subscribed to one audience, with their subscription status and groups, use `list_audience_members`. To see the audiences of one contact, use `list_contact_audience_memberships`. To check whether an email is already subscribed anywhere, use `search_member`.\n\n**Filters:** `search` matches, ignoring case and as a partial match, the first name, last name, full name, primary email and primary phone; leading and trailing spaces are ignored. `company` keeps only the contacts linked to that company; `exclude_company` keeps every other contact, including those without company; they cannot be combined. The order is fixed (newest first); there is no `order` parameter. Pagination: `page` and `itemsPerPage`, like the rest of the API; the response gives the total in `hydra:totalItems`. For filters by audience, status, tag, attribute or activity, use `search_contacts`.\n\n**Permissions:** Requires the `contacts.read` capability. The `company` and `exclude_company` filters, and the `company` and `owner` fields, also require a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Contacts per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the name, primary email or primary phone (partial match, up to 120 characters). To check an exact email, search for it and compare `email` in the results.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana@example.com"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: only the contacts linked to it. Cannot be combined with `exclude_company`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "exclude_company",
            "in": "query",
            "description": "UUID of a company: every contact except those linked to it (contacts without company are kept). Cannot be combined with `company`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "people",
            "persons",
            "all contacts",
            "crm contacts",
            "find a person",
            "search contact by name",
            "lookup contact by email",
            "leads",
            "contacts of a company"
          ],
          "es": [
            "personas",
            "contactos",
            "todos los contactos",
            "buscar contacto",
            "buscar por nombre",
            "buscar por email",
            "clientes",
            "leads",
            "contactos de una empresa"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "You used the `company` or `exclude_company` filter and the account does not have the CRM module active. Only an account admin can activate it; otherwise, drop the filter."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "You used the `company` or `exclude_company` filter and the user's role lacks `crm.contacts_companies.read`. Use credentials of a user who has it; otherwise, drop the filter."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "You used the `company` or `exclude_company` filter and the user has no CRM seat. Ask an account admin to assign one; otherwise, drop the filter."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": "invalid_contact_list_criteria",
            "meaning": "`company` and `exclude_company` were sent together, or one of them is not a UUID. Send only one, with a valid UUID."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The company in `company` or `exclude_company` does not exist in this account. Look it up with `list_companies`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A collection parameter is invalid (`page`, `itemsPerPage` from 1 to 50, `search` up to 120 characters). Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_contact",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "201": {
            "description": "Contact resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact.jsonld-contact.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact-contact.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`crm_capability_required`: You sent `company` and the account does not have the CRM module active. Only an account admin can activate it; otherwise, leave that field out.\n\n`crm_permission_denied`: You sent `company` and the user's role lacks `crm.contacts_companies.write`. Use credentials of a user who has it; otherwise, leave that field out.\n\n`crm_seat_required`: You sent `company` and the user has no CRM seat. Ask an account admin to assign one; otherwise, leave that field out.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`contact_identity_required`: Neither `email` nor `phone` was sent. Send at least one.\n\n`contact_identity_conflict`: The email or phone already belongs to another contact. Find it with `list_contacts` and use `update_contact`, or use `create_audience_member` to subscribe that person.\n\n`invalid_entity_field_value`: A value is invalid: an email or phone format, an unknown attribute code or option, a tag or company that does not exist, or an owner email that is not an active user of the account. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a contact",
        "description": "Creates a person in the account with their data, tags and attributes, and optionally links them to an existing company. The person is not added to any audience and no email is sent. It needs at least an email or a phone, and it never merges with an existing contact: if the email or phone already belongs to another person the call fails.\n\n**When to use:** To register a person who is not a subscriber yet, for example a lead, a customer or someone you met, so you can work with them in the CRM.\n\n**When not to use:** To subscribe a person to an audience, use `create_audience_member`: it creates the contact if it does not exist, matches it by email or phone if it does, and requests the subscription. To subscribe a contact you already have, use `subscribe_contact_to_audience`. To change a contact that already exists, use `update_contact`. To register a company, use `create_company`.\n\n**Side effects:** The creation is recorded in the contact's activity as done by the person who owns the key or token (marked «via Maia» when Maia made the request), and the contact's `record_source` is `api`. The contact belongs to no audience, receives no email and is not subscribed to anything. Retrying a request that already succeeded fails with `contact_identity_conflict` because the email or phone now exists; it does not create a second person. Tags that do not exist yet are created.\n\n**Permissions:** Requires the `contacts.read` and `contacts.write` capabilities. Sending `company` also requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Contact resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Contact.ContactCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Contact.ContactCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "add contact",
            "new person",
            "register person",
            "add lead",
            "new lead",
            "create person without subscribing",
            "add contact to crm"
          ],
          "es": [
            "crear contacto",
            "nuevo contacto",
            "añadir contacto",
            "dar de alta una persona",
            "nuevo lead",
            "añadir persona al crm",
            "alta de contacto sin suscribir"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "You sent `company` and the account does not have the CRM module active. Only an account admin can activate it; otherwise, leave that field out."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "You sent `company` and the user's role lacks `crm.contacts_companies.write`. Use credentials of a user who has it; otherwise, leave that field out."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "You sent `company` and the user has no CRM seat. Ask an account admin to assign one; otherwise, leave that field out."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 422,
            "code": "contact_identity_required",
            "meaning": "Neither `email` nor `phone` was sent. Send at least one."
          },
          {
            "status": 422,
            "code": "contact_identity_conflict",
            "meaning": "The email or phone already belongs to another contact. Find it with `list_contacts` and use `update_contact`, or use `create_audience_member` to subscribe that person."
          },
          {
            "status": 422,
            "code": "invalid_entity_field_value",
            "meaning": "A value is invalid: an email or phone format, an unknown attribute code or option, a tag or company that does not exist, or an owner email that is not an active user of the account. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/contacts/actions/count": {
      "post": {
        "operationId": "count_contacts",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactCount resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactCount.jsonld-contact_count.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactCount-contact_count.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`list_field_not_allowed`: A `field` exists but cannot select contacts here (its `usable_in` does not include `search`, e.g. a specific contact, which only campaigns accept). Remove that condition.\n\n`segment_reference_not_found`: The `segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: The `segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: The `segment` uses fields this user cannot evaluate (for example audience fields without `marketing.audiences.read`). Use credentials of a user who can, or another segment.\n\n`segment_reference_invalid`: The stored definition of the `segment` is no longer valid (for example it uses an attribute or audience that was removed). Fix the segment with `update_contact_segment`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`contact_query_count_timeout`: The count took longer than the time allowed. Nothing is wrong with the filter; simplify it or retry later. Do not retry in a loop.\n\n`temporarily_unavailable`: The count service is unavailable right now. Retry in a few seconds.\n\n`projection_not_ready`: Counting contacts is not available on this account yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Count the contacts that match a filter",
        "description": "Counts the distinct contacts of the account that are in a segment and/or match a filter, with the same engine and the same short-lived cache as the counters of Customer App. Nothing is changed.\n\n**When to use:** To answer «how many contacts…» questions, to check a filter before saving it as a segment, or to know the current size of a segment (its `match_count` is only the count at publication).\n\n**When not to use:** To get the contacts themselves, use `search_contacts`. To know how many people a campaign will reach (confirmed subscribers of its audience and channel), read `recipient_count` with `get_campaign` or `get_sms_campaign`: this count is not limited to an audience or a channel.\n\n**Side effects:** The count can take a moment on large accounts. When it is not ready yet the answer is `state: pending` with `retry_after_ms`: call again with the same body after that time. A recent result is reused for a few seconds (`state: stale` while it is being refreshed); send `revalidate: true` to force a new count.\n\n**Permissions:** Requires the `contacts.read` capability. The fields usable in `filter` depend on the user's permissions, as in `list_contact_filter_fields`.",
        "parameters": [],
        "requestBody": {
          "description": "The new ContactCount resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCount.ContactCountInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCount.ContactCountInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "read",
        "x-mcp-keywords": {
          "en": [
            "count contacts",
            "how many contacts",
            "segment size",
            "number of people",
            "audience size"
          ],
          "es": [
            "contar contactos",
            "cuántos contactos",
            "tamaño del segmento",
            "cuántas personas",
            "número de contactos"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "list_field_not_allowed",
            "meaning": "A `field` exists but cannot select contacts here (its `usable_in` does not include `search`, e.g. a specific contact, which only campaigns accept). Remove that condition."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "The `segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "The `segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "The `segment` uses fields this user cannot evaluate (for example audience fields without `marketing.audiences.read`). Use credentials of a user who can, or another segment."
          },
          {
            "status": 422,
            "code": "segment_reference_invalid",
            "meaning": "The stored definition of the `segment` is no longer valid (for example it uses an attribute or audience that was removed). Fix the segment with `update_contact_segment`."
          },
          {
            "status": 503,
            "code": "contact_query_count_timeout",
            "meaning": "The count took longer than the time allowed. Nothing is wrong with the filter; simplify it or retry later. Do not retry in a loop."
          },
          {
            "status": 503,
            "code": "temporarily_unavailable",
            "meaning": "The count service is unavailable right now. Retry in a few seconds."
          },
          {
            "status": 503,
            "code": "projection_not_ready",
            "meaning": "Counting contacts is not available on this account yet. Retry later; if it persists, contact support."
          }
        ]
      }
    },
    "/contacts/actions/search": {
      "post": {
        "operationId": "search_contacts",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactSearch resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSearch.jsonld-contact_search.read_contact.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactSearch-contact_search.read_contact.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`list_field_not_allowed`: A `field` exists but cannot select contacts here (its `usable_in` does not include `search`, e.g. a specific contact, which only campaigns accept). Remove that condition.\n\n`segment_reference_not_found`: The `segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: The `segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: The `segment` uses fields this user cannot evaluate (for example audience fields without `marketing.audiences.read`). Use credentials of a user who can, or another segment.\n\n`segment_reference_invalid`: The stored definition of the `segment` is no longer valid (for example it uses an attribute or audience that was removed). Fix the segment with `update_contact_segment`.\n\n`invalid_contact_query_cursor`: `cursor` is malformed, expired or was issued for another body. Start again without `cursor`.\n\n`items_per_page` is out of range or a field has the wrong type. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`query_page_timeout`: The page took longer than the time allowed. Simplify the filter or retry later.\n\n`inconsistent_contact_query_page`: The data changed while the page was being read. Retry the same request.\n\n`projection_not_ready`: Searching contacts by filter is not available on this account yet. Use `list_contacts` meanwhile; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Find the contacts that match a filter",
        "description": "Returns, newest first, the contacts of the account that are in a segment and/or match a filter: audience and subscription status, groups, tags, attributes, location, owner, campaign activity… Each contact comes as in `list_contacts`. Nothing is changed.\n\n**When to use:** To answer «who are the contacts that…» questions, to see a few examples of a segment, or to get the UUIDs of the people that match before acting on them one by one.\n\n**When not to use:** To browse or find people by name, email or phone, use `list_contacts` (simpler and with a total). To only know how many match, use `count_contacts`. For the members of one audience with their subscription data, use `list_audience_members`.\n\n**Filters:** Body, not query: `segment` and `filter` as described below; both are optional. The order is fixed (newest first). Pagination by cursor, without total: send `items_per_page` (default 30, maximum 50) and, for the next page, the same body with `cursor` set to the `next_cursor` of the previous answer; `next_cursor` is `null` on the last page. A cursor only works with the body it was issued for.\n\n**Permissions:** Requires the `contacts.read` capability. The fields usable in `filter` depend on the user's permissions, as in `list_contact_filter_fields`.",
        "parameters": [],
        "requestBody": {
          "description": "The new ContactSearch resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSearch.ContactSearchInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSearch.ContactSearchInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "read",
        "x-mcp-keywords": {
          "en": [
            "find contacts",
            "filter contacts",
            "contacts that match",
            "who is in the segment",
            "contacts who opened",
            "query contacts"
          ],
          "es": [
            "buscar contactos",
            "filtrar contactos",
            "contactos que cumplen",
            "quién está en el segmento",
            "contactos que abrieron",
            "contactos suscritos a"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `contacts.read` capability. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "list_field_not_allowed",
            "meaning": "A `field` exists but cannot select contacts here (its `usable_in` does not include `search`, e.g. a specific contact, which only campaigns accept). Remove that condition."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "The `segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "The `segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "The `segment` uses fields this user cannot evaluate (for example audience fields without `marketing.audiences.read`). Use credentials of a user who can, or another segment."
          },
          {
            "status": 422,
            "code": "segment_reference_invalid",
            "meaning": "The stored definition of the `segment` is no longer valid (for example it uses an attribute or audience that was removed). Fix the segment with `update_contact_segment`."
          },
          {
            "status": 422,
            "code": "invalid_contact_query_cursor",
            "meaning": "`cursor` is malformed, expired or was issued for another body. Start again without `cursor`."
          },
          {
            "status": 503,
            "code": "query_page_timeout",
            "meaning": "The page took longer than the time allowed. Simplify the filter or retry later."
          },
          {
            "status": 503,
            "code": "inconsistent_contact_query_page",
            "meaning": "The data changed while the page was being read. Retry the same request."
          },
          {
            "status": 503,
            "code": "projection_not_ready",
            "meaning": "Searching contacts by filter is not available on this account yet. Use `list_contacts` meanwhile; if it persists, contact support."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`items_per_page` is out of range or a field has the wrong type. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/contacts/{contactUuid}/audience_memberships": {
      "get": {
        "operationId": "list_contact_audience_memberships",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactAudienceMembership collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactAudienceMembership.jsonld-contact_audience_membership.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactAudienceMembership-contact_audience_membership.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact does not exist in this account. Find its UUID with `list_contacts`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List audiences of a contact",
        "description": "Returns the audiences a person is subscribed to or has been subscribed to, one membership per audience, with the email and SMS status, the source and date of each opt-in, the groups and the consent. A person who is in no audience gets an empty list. The result is not paginated.\n\n**When to use:** To answer in which audiences a person is and with which status, before subscribing or unsubscribing them, or to get the UUID of their member in each audience.\n\n**When not to use:** To find a person by email and see their memberships in one call, use `search_member`. To list everyone in one audience, use `list_audience_members`. To read the person's own data (company, tags, attributes), use `get_contact`.\n\n**Permissions:** Requires the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "audiences of this contact",
            "contact subscriptions",
            "subscription status of a contact",
            "memberships of a contact"
          ],
          "es": [
            "audiencias de este contacto",
            "suscripciones del contacto",
            "estado de suscripción del contacto",
            "membresías del contacto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact does not exist in this account. Find its UUID with `list_contacts`."
          }
        ]
      }
    },
    "/contacts/{contactUuid}/audience_memberships/{audienceUuid}": {
      "put": {
        "operationId": "subscribe_contact_to_audience",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactAudienceMembership resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAudienceMembership.jsonld-contact_audience_membership.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAudienceMembership-contact_audience_membership.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types. Also: you selected a single channel and it is already confirmed. Nothing changed; no action needed. If you select both channels and both are already confirmed, the answer is 200 with no change instead.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact or the audience does not exist in this account. Find them with `list_contacts` and `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Common causes: `channels` accepts only `email` and `sms`; the contact has no email and no phone for the selected channels; the account has reached its subscriber limit; or the audience has no default sender and reply-to but an email must be sent (set them with `update_audience`, or disable the emails with the query flags). Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Subscribe a contact to an audience",
        "description": "Requests the subscription of an existing contact to an audience, on the email channel, the SMS channel or both, using the contact's current primary email and phone. If the person is not in the audience yet, the membership (the member) is created; if they already are, their subscription is requested again. It is a request, not a guarantee: the channel is confirmed at once only in some cases (see side effects); otherwise the person gets a confirmation message and stays unconfirmed until they confirm.\n\n**When to use:** When you already have the contact and want it in an audience, or when someone who never confirmed, or was unsubscribed through the API, asks to receive messages again. Check `status` and `sms_status` in the response: they tell what really happened.\n\n**When not to use:** To create the person and subscribe them in one call, use `create_audience_member`. To create a person without subscribing them, use `create_contact`. If you have the member UUID instead of the contact, `member_subscribe` does the same. Never use it to override a person who unsubscribed themselves: in that case it only sends them a confirmation email.\n\n**Side effects:** It follows the legacy subscription rules of the audience. Email channel: in a double opt-in audience the person always gets a confirmation email and the status changes only when they confirm; in a single opt-in audience the email is confirmed at once, except when the person unsubscribed themselves (`suscriber.status.unsuscribed`) or the address is on the audience's suppression list: then they get a confirmation email and stay as they were until they confirm. Confirmation emails are not repeated within 15 minutes. SMS channel: in an audience with SMS double opt-in the status becomes `suscriber.status.unconfirmed` and a confirmation SMS is sent; otherwise it is confirmed at once. When a channel is confirmed at once, the `member_subscribed` or `member_sms_subscribed` webhook fires, the automations triggered by a subscription start and, for email, the audience's welcome email is sent if it has one. A channel the contact has no email or phone for is ignored. A channel whose consent was recorded by the new Customer App (this includes a channel invalidated by changing the email or phone) is left as it is and the call still answers 200: always read the statuses in the response. The `disable_*` flags apply only when the membership did not exist and is created by this call.\n\n**Permissions:** Requires the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience. If the account has several audiences, confirm with the user which one before calling. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "disable_double_opt_in",
            "in": "query",
            "description": "Only when this call creates the membership: if true, a person who is not subscribed yet becomes confirmed at once, without the confirmation email of a double opt-in audience. It does not apply to someone who unsubscribed on their own: they always get the confirmation email. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "disable_welcome_email",
            "in": "query",
            "description": "Only when this call creates the membership: if true, the welcome email of the audience is not sent when the email channel becomes confirmed. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "disable_sms_double_opt_in",
            "in": "query",
            "description": "Only when this call creates the membership: if true, the SMS channel is subscribed at once, without the confirmation SMS of a double opt-in audience. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          }
        ],
        "requestBody": {
          "description": "The updated ContactAudienceMembership resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAudienceMembership.ContactMembershipChannelsInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAudienceMembership.ContactMembershipChannelsInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subscribe existing contact",
            "add existing contact to audience",
            "subscribe this contact",
            "resubscribe contact",
            "opt in contact"
          ],
          "es": [
            "suscribir contacto existente",
            "añadir este contacto a una audiencia",
            "suscribir a este contacto",
            "volver a suscribir al contacto",
            "apuntar al contacto a la lista"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact or the audience does not exist in this account. Find them with `list_contacts` and `list_audiences`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types. Also: you selected a single channel and it is already confirmed. Nothing changed; no action needed. If you select both channels and both are already confirmed, the answer is 200 with no change instead."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Common causes: `channels` accepts only `email` and `sms`; the contact has no email and no phone for the selected channels; the account has reached its subscriber limit; or the audience has no default sender and reply-to but an email must be sent (set them with `update_audience`, or disable the emails with the query flags). Read `violations[].propertyPath` and `message`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_contact_audience_membership",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "204": {
            "description": "ContactAudienceMembership resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact or the audience does not exist, or the contact is not in that audience. Check it with `list_contact_audience_memberships`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Remove a contact from an audience",
        "description": "Permanently deletes the subscription of a person to one audience, with its groups, custom field values and history in that audience. The person stays as a contact of the account and in their other audiences, even if this was the last one.\n\n**When to use:** Only when the user explicitly asks to take a person out of an audience for good.\n\n**When not to use:** To stop sending to the person but keep their record and history in the audience, use `unsubscribe_contact_from_audience`. To delete the person from the account, use `delete_contact`. If you have the member UUID instead of the contact, `delete_audience_member` does the same.\n\n**Side effects:** The membership and its history in this audience (groups, custom field values, activity) are deleted and cannot be recovered through the API; the consent recorded for it is invalidated. The counters of the audience and the subscriber count of the plan are updated. The person stays as a contact and in their other audiences.\n\n**Permissions:** Requires the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience. If the account has several audiences, confirm with the user which one before calling. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "take contact out of audience",
            "remove this contact from an audience",
            "delete contact membership"
          ],
          "es": [
            "sacar al contacto de la audiencia",
            "quitar a este contacto de una audiencia",
            "eliminar membresía del contacto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact or the audience does not exist, or the contact is not in that audience. Check it with `list_contact_audience_memberships`."
          }
        ]
      }
    },
    "/contacts/{contactUuid}/audience_memberships/{audienceUuid}/actions/unsubscribe": {
      "put": {
        "operationId": "unsubscribe_contact_from_audience",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "ContactAudienceMembership resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAudienceMembership.jsonld-contact_audience_membership.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactAudienceMembership-contact_audience_membership.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types. Also: none of the selected channels is currently confirmed, or the contact has no email or phone for them, so there is nothing to unsubscribe. Check the statuses with `list_contact_audience_memberships`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact or the audience does not exist, or the contact is not in that audience. Check it with `list_contact_audience_memberships`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`channels` accepts only `email` and `sms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Unsubscribe a contact from an audience",
        "description": "Unsubscribes the confirmed email channel, the SMS channel or both of a contact in one audience. The contact keeps their record, groups and history in that audience, but stops receiving its campaigns and automations. Only channels that are currently confirmed change; the other audiences of the person are not touched.\n\n**When to use:** When a person asks to stop receiving messages from an audience, or when the user wants to stop sending to someone from one audience without deleting anything.\n\n**When not to use:** To remove the person from the audience altogether, use `delete_contact_audience_membership`. To delete the person from the account, use `delete_contact`. To subscribe them again, use `subscribe_contact_to_audience`. If you have the member UUID instead of the contact, `member_unsubscribe` does the same.\n\n**Side effects:** Email: the status becomes `suscriber.status.unsuscribed.admin`, the unsubscription is recorded in the contact's activity in that audience, the automations the person is in are cancelled (`member_automation_cancelled` webhook) and the `member_unsubscribed` webhook fires. SMS: the status becomes `suscriber.status.unsuscribed.admin` and the `member_sms_unsubscribed` webhook fires (automations are not cancelled for an SMS-only unsubscription). The address is not added to the audience's suppression list, so `create_audience_member` or `subscribe_contact_to_audience` can bring the person back in a single opt-in audience without a confirmation.\n\n**Permissions:** Requires the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience. If the account has several audiences, confirm with the user which one before calling. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The updated ContactAudienceMembership resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAudienceMembership.ContactMembershipChannelsInput.jsonld.unsubscribe_contact_from_audience"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactAudienceMembership.ContactMembershipChannelsInput.unsubscribe_contact_from_audience"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unsubscribe contact",
            "opt out this contact",
            "stop emails to a contact",
            "unsubscribe contact from audience"
          ],
          "es": [
            "dar de baja al contacto",
            "baja del contacto en una audiencia",
            "dejar de enviar emails al contacto",
            "cancelar suscripción del contacto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact or the audience does not exist, or the contact is not in that audience. Check it with `list_contact_audience_memberships`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types. Also: none of the selected channels is currently confirmed, or the contact has no email or phone for them, so there is nothing to unsubscribe. Check the statuses with `list_contact_audience_memberships`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`channels` accepts only `email` and `sms`."
          }
        ]
      }
    },
    "/contacts/{uuid}": {
      "get": {
        "operationId": "get_contact",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "Contact resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact.jsonld-contact.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact-contact.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact does not exist in this account. Find its UUID with `list_contacts`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a contact",
        "description": "Returns one person with all their data: identity, email and phone addresses, location, company, owner, tags and attribute values.\n\n**When to use:** To read the current data of a person you already identified, for example before updating them or to see their company and attributes.\n\n**When not to use:** To find a contact by name, email or phone, use `list_contacts` with `search`. To see which audiences the person is in and with which status, use `list_contact_audience_memberships`. To read the subscription of one audience, use `get_audience_member`.\n\n**Permissions:** Requires the `contacts.read` capability. The `company` and `owner` fields are only filled for users with a CRM seat and the `crm.contacts_companies.read` capability; for the rest they are `null`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "contact details",
            "person details",
            "read contact",
            "contact record",
            "contact profile"
          ],
          "es": [
            "ficha del contacto",
            "detalle del contacto",
            "ver contacto",
            "datos de la persona",
            "perfil del contacto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact does not exist in this account. Find its UUID with `list_contacts`."
          }
        ]
      },
      "put": {
        "operationId": "update_contact",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "200": {
            "description": "Contact resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact.jsonld-contact.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact-contact.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`crm_capability_required`: You sent `company` and the account does not have the CRM module active. Nothing was saved; only an account admin can activate it, otherwise leave that field out.\n\n`crm_permission_denied`: You sent `company` and the user's role lacks `crm.contacts_companies.write`. Nothing was saved; use credentials of a user who has it, otherwise leave that field out.\n\n`crm_seat_required`: You sent `company` and the user has no CRM seat. Nothing was saved; ask an account admin to assign one, otherwise leave that field out.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact does not exist in this account. Find its UUID with `list_contacts`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`contact_identity_required`: The change would leave the contact without email and without phone. Keep at least one.\n\n`contact_identity_conflict`: The new email or phone already belongs to another contact. Contacts are never merged: ask the user which record to keep.\n\n`invalid_entity_field_value`: A value is invalid: an email or phone format, an unknown attribute code or option, a tag or company that does not exist, or an owner email that is not an active user of the account. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a contact",
        "description": "Changes the data of a person: name, email, phone, job title, location, links, owner, company, tags and attribute values. Fields you leave out keep their value. Changing the primary `email` or `phone` keeps the person subscribed: a contact is the person, so in every audience where that channel was confirmed it stays confirmed with the new address or number. Only a subscription still waiting for confirmation is reset (its confirmation message went to the old address and can no longer be completed), and unsubscribed channels stay unsubscribed.\n\n**When to use:** To correct or complete the data of a person identified by UUID, to update their email or phone when they change it, to assign an owner, to link them to a company or to set tags and attributes.\n\n**When not to use:** To subscribe or unsubscribe the person, use `subscribe_contact_to_audience` or `unsubscribe_contact_from_audience`. To change data that belongs to one audience (its groups or custom fields), use `update_audience_member`. To add a new person, use `create_contact`.\n\n**Side effects:** All the fields of the request are applied together: if one is rejected, nothing is saved and the contact stays as it was. Every field that really changes is recorded in the contact's activity as done by the person who owns the key or token (marked «via Maia» when Maia made the request); sending the value a field already has records nothing. If the primary `email` or `phone` really changes, confirmed subscriptions of that channel keep their status with the new destination; a pending confirmation of that channel is cancelled and its status emptied; no message is sent to the new address or number. Tags that do not exist yet are created.\n\n**Permissions:** Requires the `contacts.read` and `contacts.write` capabilities. Setting or removing `company` also requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          }
        ],
        "requestBody": {
          "description": "The updated Contact resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Contact.ContactUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Contact.ContactUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit contact",
            "modify contact",
            "change contact data",
            "assign owner",
            "set company of contact",
            "tag a contact",
            "update custom attributes of a person"
          ],
          "es": [
            "editar contacto",
            "modificar contacto",
            "cambiar datos del contacto",
            "asignar responsable",
            "vincular a una empresa",
            "etiquetar contacto",
            "actualizar atributos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "You sent `company` and the account does not have the CRM module active. Nothing was saved; only an account admin can activate it, otherwise leave that field out."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "You sent `company` and the user's role lacks `crm.contacts_companies.write`. Nothing was saved; use credentials of a user who has it, otherwise leave that field out."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "You sent `company` and the user has no CRM seat. Nothing was saved; ask an account admin to assign one, otherwise leave that field out."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact does not exist in this account. Find its UUID with `list_contacts`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 422,
            "code": "contact_identity_required",
            "meaning": "The change would leave the contact without email and without phone. Keep at least one."
          },
          {
            "status": 422,
            "code": "contact_identity_conflict",
            "meaning": "The new email or phone already belongs to another contact. Contacts are never merged: ask the user which record to keep."
          },
          {
            "status": 422,
            "code": "invalid_entity_field_value",
            "meaning": "A value is invalid: an email or phone format, an unknown attribute code or option, a tag or company that does not exist, or an owner email that is not an active user of the account. Read `violations[].propertyPath`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_contact",
        "tags": [
          "Contacts"
        ],
        "responses": {
          "204": {
            "description": "Contact resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The contact does not exist in this account. Find its UUID with `list_contacts`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nA file of the contact is being uploaded at the same moment and the deletion could not start. Nothing was deleted; retry in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a contact",
        "description": "Permanently deletes a person from the account: their data, tags, attribute values, notes and files, their activity and their subscriptions to every audience. The company and the opportunities of the person survive without the link, tasks survive without the association, and email suppressions already recorded stay. It cannot be undone.\n\n**When to use:** Only when the user explicitly asks to erase the person from the account for good.\n\n**When not to use:** To stop sending emails to the person but keep their record, use `unsubscribe_contact_from_audience` or `member_unsubscribe`. To take the person out of one audience only, use `delete_contact_audience_membership`; removing the last membership never deletes the contact. This is not a legal data-erasure request process.\n\n**Side effects:** The contact, its audience memberships (with their groups, custom field values and history), its attribute values, tags, notes, files and activity are deleted. Companies and opportunities are kept and lose the link; tasks are kept and lose the association with the contact; meetings and synced emails are kept and lose the link to the person. Suppressions already recorded stay and deleting does not add a new one. Aggregate statistics of past campaigns are kept without the personal link.\n\n**Permissions:** Requires the `contacts.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the contact (the person), not of a member. Get it from `list_contacts`, or from the `contact` property of a member.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove contact",
            "erase person",
            "delete lead",
            "remove from account",
            "permanently delete contact"
          ],
          "es": [
            "eliminar contacto",
            "borrar contacto",
            "borrar persona",
            "eliminar lead",
            "quitar de la cuenta",
            "borrado definitivo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the capability listed under Permissions. Use one that does; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The contact does not exist in this account. Find its UUID with `list_contacts`."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "A file of the contact is being uploaded at the same moment and the deletion could not start. Nothing was deleted; retry in a few seconds."
          }
        ]
      }
    },
    "/audiences/{audienceUuid}/list_fields": {
      "get": {
        "operationId": "list_audience_custom_fields",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "200": {
            "description": "ListField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ListField-list_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List custom fields",
        "description": "Lists the custom fields of an audience: the extra data stored on each member (company, birthday, interests), with type, options and the `template_tag` used to personalize emails. Predefined fields are included.\n\n**When to use:** Before sending member data that includes custom fields (you need each field's IRI), or to see what information an audience collects.\n\n**When not to use:** To read the values of one member, use `get_audience_member`. For the fields you can filter segments on, use `list_audience_condition_fields`; for email placeholders, `list_audience_merge_tags`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "extra fields",
            "member attributes",
            "profile fields",
            "personalization fields",
            "columns of the list"
          ],
          "es": [
            "campos personalizados",
            "campos extra",
            "atributos del suscriptor",
            "campos de la lista",
            "columnas"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/multiselect": {
      "post": {
        "operationId": "create_custom_field_multiselect",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "201": {
            "description": "ListField resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The tag is already used by another custom field of the audience, or the field is a predefined one, which cannot be changed. Choose a different tag, or leave the predefined field alone.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed (for example no options, or an option without translations), or the plan's limit of custom fields per audience is reached. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a multiselect custom field",
        "description": "Adds a custom field where each member can pick several options from a list you define (interests, product lines).\n\n**When to use:** When the data is a closed list of choices and more than one can apply per person.\n\n**When not to use:** If only one choice applies, use `create_custom_field_select`. For free text, numbers or dates, use `create_custom_field_simple`.\n\n**Side effects:** Counts against the number of custom fields per audience allowed by the plan.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to add the field to. If the account has several audiences, confirm with the user which one. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldMultiselect.jsonld-list_field.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldMultiselect-list_field.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "checkbox field",
            "multiple choice field",
            "interests field",
            "tags field"
          ],
          "es": [
            "campo de casillas",
            "selección múltiple",
            "varias opciones",
            "intereses"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/select": {
      "post": {
        "operationId": "create_custom_field_select",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "201": {
            "description": "ListField resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The tag is already used by another custom field of the audience, or the field is a predefined one, which cannot be changed. Choose a different tag, or leave the predefined field alone.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed (for example no options, or an option without translations), or the plan's limit of custom fields per audience is reached. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a select custom field",
        "description": "Adds a custom field where each member can pick exactly one option from a list you define (country, plan, preferred language).\n\n**When to use:** When the data is a closed list of choices and only one applies per person.\n\n**When not to use:** If several choices can apply at once, use `create_custom_field_multiselect`. For free text, numbers or dates, use `create_custom_field_simple`.\n\n**Side effects:** Counts against the number of custom fields per audience allowed by the plan.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to add the field to. If the account has several audiences, confirm with the user which one. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSelect.jsonld-list_field.write.create_custom_field_select"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSelect-list_field.write.create_custom_field_select"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "dropdown field",
            "radio field",
            "single choice field",
            "pick list"
          ],
          "es": [
            "campo desplegable",
            "campo de selección",
            "lista de opciones",
            "una opción"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/simple": {
      "post": {
        "operationId": "create_custom_field_simple",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "201": {
            "description": "ListField resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The tag is already used by another custom field of the audience, or the field is a predefined one, which cannot be changed. Choose a different tag, or leave the predefined field alone.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed, or the plan's limit of custom fields per audience is reached (the message says so; upgrade the plan or delete a field). Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a simple custom field",
        "description": "Adds a custom field of a simple type (text, number, date, yes/no...) to an audience, so each member can store that data.\n\n**When to use:** When the user needs to store one more piece of information per subscriber, like a company, a birthday or a customer number.\n\n**When not to use:** For a field where the person picks from a list of choices, use `create_custom_field_select` (one choice) or `create_custom_field_multiselect` (several).\n\n**Side effects:** Counts against the number of custom fields per audience allowed by the plan.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to add the field to. If the account has several audiences, confirm with the user which one. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSimple.jsonld-list_field.write.create_custom_field_simple"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSimple-list_field.write.create_custom_field_simple"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "add field",
            "new attribute",
            "new profile field",
            "text field",
            "date field"
          ],
          "es": [
            "añadir campo",
            "nuevo campo personalizado",
            "crear atributo",
            "campo de texto",
            "campo de fecha"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/{uuid}": {
      "get": {
        "operationId": "get_audience_custom_field",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "200": {
            "description": "ListField resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The custom field does not exist in this audience. Find its UUID with `list_audience_custom_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a custom field",
        "description": "Returns one custom field with its type, tag, `template_tag`, required and public flags, translations and, for select fields, its options.\n\n**When to use:** To check the type and options of a field before writing values to members.\n\n**When not to use:** To see all the fields of the audience, use `list_audience_custom_fields`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the custom field. Get it from `list_audience_custom_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "field details",
            "field options",
            "field type"
          ],
          "es": [
            "detalle del campo",
            "opciones del campo",
            "tipo de campo"
          ]
        }
      },
      "delete": {
        "operationId": "delete_custom_field",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "204": {
            "description": "ListField resource deleted"
          },
          "400": {
            "description": "The field is predefined and cannot be deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The custom field does not exist in this audience. Find its UUID with `list_audience_custom_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "A segment, an unsent campaign or an automation filters by the field. Remove those conditions, listed in the response, and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a custom field",
        "description": "Permanently deletes a custom field, with the options it defines and the values every member had stored in it. Predefined fields cannot be deleted.\n\n**When to use:** Only when the user explicitly wants to stop collecting that data and lose what was stored.\n\n**When not to use:** To keep the data but stop asking for it in forms, use the update operation of the field and set `public` to false.\n\n**Side effects:** The values stored on members are deleted with the field and cannot be recovered through the API. The field disappears from the audience's subscription forms (they are rebuilt in the background). While a segment, an unsent campaign or an automation filters by the field, the deletion is refused with 409 and lists them: removing it would drop those conditions and widen the segment to the whole audience. Remove those conditions first. Predefined fields cannot be deleted.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the custom field. Get it from `list_audience_custom_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove field",
            "drop attribute",
            "delete column"
          ],
          "es": [
            "borrar campo",
            "eliminar campo personalizado",
            "quitar atributo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/{uuid}/multiselect": {
      "put": {
        "operationId": "update_custom_field_multiselect",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "200": {
            "description": "ListField resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The field is predefined and cannot be updated, its type does not match this operation (use the update operation of its real type), or the new `tag` is already used by another custom field of the audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The custom field does not exist in this audience. Find its UUID with `list_audience_custom_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a multiselect custom field",
        "description": "Changes the tag, flags, texts or options of a multiselect custom field. Fields you do not send are not kept: `required` and `public` go back to false, so send the complete definition. The options you send replace all the current ones.\n\n**When to use:** To add, rename or remove the choices of a several-choices field, or to rename the field.\n\n**When not to use:** For a select field, use `update_custom_field_select`; for a simple one, `update_custom_field_simple`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the custom field. Get it from `list_audience_custom_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          }
        ],
        "requestBody": {
          "description": "The updated ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldMultiselect.jsonld-list_field.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldMultiselect-list_field.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit checkbox options",
            "change interests options",
            "edit multiselect field"
          ],
          "es": [
            "editar casillas",
            "cambiar opciones múltiples",
            "editar campo de selección múltiple"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/{uuid}/select": {
      "put": {
        "operationId": "update_custom_field_select",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "200": {
            "description": "ListField resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The field is predefined and cannot be updated, its type does not match this operation (use the update operation of its real type), or the new `tag` is already used by another custom field of the audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The custom field does not exist in this audience. Find its UUID with `list_audience_custom_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a select custom field",
        "description": "Changes the tag, flags, texts or options of a select custom field. Fields you do not send are not kept: `required` and `public` go back to false, so send the complete definition. The options you send replace all the current ones.\n\n**When to use:** To add, rename or remove the choices of a one-choice field, or to rename the field.\n\n**When not to use:** For a multiselect field, use `update_custom_field_multiselect`; for a simple one, `update_custom_field_simple`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the custom field. Get it from `list_audience_custom_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          }
        ],
        "requestBody": {
          "description": "The updated ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSelect.jsonld-list_field.write.update_custom_field_select"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSelect-list_field.write.update_custom_field_select"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit dropdown options",
            "change choices",
            "edit select field"
          ],
          "es": [
            "editar opciones",
            "cambiar opciones del desplegable",
            "editar campo de selección"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/list_fields/{uuid}/simple": {
      "put": {
        "operationId": "update_custom_field_simple",
        "tags": [
          "Custom fields"
        ],
        "responses": {
          "200": {
            "description": "ListField resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField.jsonld-list_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListField-list_field.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The field is predefined and cannot be updated, its type does not match this operation (use the update operation of its real type), or the new `tag` is already used by another custom field of the audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The custom field does not exist in this audience. Find its UUID with `list_audience_custom_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a simple custom field",
        "description": "Changes the tag, flags or translated texts of a simple custom field. Fields you do not send are not kept: `required` and `public` go back to false, so send the complete definition. Only the languages you send are changed.\n\n**When to use:** To rename a field, change its label or help text, or change whether it is required or public.\n\n**When not to use:** For a select or multiselect field, use `update_custom_field_select` or `update_custom_field_multiselect`. To change a member's value, use `update_audience_member`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the custom field belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the custom field. Get it from `list_audience_custom_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          }
        ],
        "requestBody": {
          "description": "The updated ListField resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSimple.jsonld-list_field.write.update_custom_field_simple"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListField.CustomFieldSimple-list_field.write.update_custom_field_simple"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit field",
            "rename field",
            "change field label"
          ],
          "es": [
            "editar campo",
            "renombrar campo",
            "cambiar etiqueta del campo"
          ]
        }
      }
    },
    "/email_batches/actions/schedule": {
      "post": {
        "operationId": "schedule_email_batch",
        "tags": [
          "Email batches"
        ],
        "responses": {
          "202": {
            "description": "EmailBatch resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch.jsonld-email_batch.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch-email_batch.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `batch_recipients_invalid`: A batch needs 2 to 50 addresses in `to` and none in `cc` or `bcc`. For one email to several people, use `send_email`. `too_many_individual_recipients`: More than 50 addresses in `to`. Split them into several batches. `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`. `schedule_invalid`: `scheduled_at` is not an ISO 8601 date-time with a time zone offset (for example `2026-11-05T09:30:00+01:00`). `schedule_too_soon`: `scheduled_at` is less than 90 seconds from now. Pick a later time, or use `send_email`. `schedule_too_far`: `scheduled_at` is more than 365 days from now. Pick an earlier time. `too_many_scheduled_sends`: The user already has 100 scheduled emails (each recipient of a batch counts). Cancel some with `cancel_email_send` or wait for them to go out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Schedule separate emails for later",
        "description": "Schedules one individual email for each of 2 to 50 recipients, starting at `scheduled_at` and then five minutes apart within the mailbox limits.\n\n**When to use:** When the user wants to write to several people one by one starting at a given date and time, and has confirmed text, list and time. Confirm with the user before calling it.\n\n**When not to use:** To send now, use `send_email_batch`. For one email to everyone, use `schedule_email`. To change the time: cancel with `cancel_email_batch` and schedule again.\n\n**Side effects:** One email per recipient of `to`, each with their own unsubscribe link (if you include the unsubscribe block), spaced at least five minutes apart within the mailbox limits (12 per hour, 200 per day), so a batch of 50 takes hours to finish. A scheduled batch has no undo window. Each recipient counts against the user's limit of 100 scheduled emails. Released asynchronously by background jobs.\n\n**Filters:** Opt-out protection as in `send_email`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailBatch resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBatch.EmailBatchScheduleInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBatch.EmailBatchScheduleInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "schedule separate emails",
            "schedule individual emails",
            "send one by one later",
            "schedule mail merge"
          ],
          "es": [
            "programar envío por separado",
            "programar emails individuales",
            "programar uno a uno"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `batch_recipients_invalid`: A batch needs 2 to 50 addresses in `to` and none in `cc` or `bcc`. For one email to several people, use `send_email`. `too_many_individual_recipients`: More than 50 addresses in `to`. Split them into several batches. `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`. `schedule_invalid`: `scheduled_at` is not an ISO 8601 date-time with a time zone offset (for example `2026-11-05T09:30:00+01:00`). `schedule_too_soon`: `scheduled_at` is less than 90 seconds from now. Pick a later time, or use `send_email`. `schedule_too_far`: `scheduled_at` is more than 365 days from now. Pick an earlier time. `too_many_scheduled_sends`: The user already has 100 scheduled emails (each recipient of a batch counts). Cancel some with `cancel_email_send` or wait for them to go out."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one."
          }
        ]
      }
    },
    "/email_batches/actions/send": {
      "post": {
        "operationId": "send_email_batch",
        "tags": [
          "Email batches"
        ],
        "responses": {
          "202": {
            "description": "EmailBatch resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch.jsonld-email_batch.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch-email_batch.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `batch_recipients_invalid`: A batch needs 2 to 50 addresses in `to` and none in `cc` or `bcc`. For one email to several people, use `send_email`. `too_many_individual_recipients`: More than 50 addresses in `to`. Split them into several batches. `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Send a separate email to each recipient",
        "description": "Sends the same message as one individual email to each of 2 to 50 recipients from the user's Gmail mailbox, so nobody sees the others. Each recipient gets their own send, personalized and queued five minutes apart.\n\n**When to use:** When the user wants to write to several people one by one (for example every contact of a company) and has confirmed the text and the list. It reaches many people, so confirm with the user before calling it.\n\n**When not to use:** For one email addressed to several people who see each other, use `send_email` with several addresses in `to`. To prepare it without sending, use `create_email_draft`. For a mass mailing to an audience, use the email campaign operations: a batch is limited to 50 and to the user's mailbox limits.\n\n**Side effects:** One email per recipient of `to`, each with their own unsubscribe link (if you include the unsubscribe block), spaced at least five minutes apart within the mailbox limits (12 per hour, 200 per day), so a batch of 50 takes hours to finish. The whole batch has ONE undo window of 10 seconds, plus 10 of grace. It is delivered asynchronously by background jobs; this call answers 202 with one send per recipient. If the record is a contact, each email is linked to the contact that owns that address; from a company or opportunity they are linked only to the record. Failures notify the user in the app. Replaying the same `idempotency_key` returns the same batch.\n\n**Filters:** Opt-out protection as in `send_email`: 409 `recipient_opted_out` with the addresses, until `acknowledged_opt_outs` lists them.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailBatch resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBatch.EmailBatchSendInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBatch.EmailBatchSendInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send separately",
            "individual emails",
            "send one by one",
            "email each contact",
            "bulk personal emails",
            "mail merge"
          ],
          "es": [
            "enviar por separado",
            "emails individuales",
            "enviar uno a uno",
            "escribir a cada contacto",
            "correos personalizados a varios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `batch_recipients_invalid`: A batch needs 2 to 50 addresses in `to` and none in `cc` or `bcc`. For one email to several people, use `send_email`. `too_many_individual_recipients`: More than 50 addresses in `to`. Split them into several batches. `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one."
          }
        ]
      }
    },
    "/email_batches/{uuid}": {
      "get": {
        "operationId": "get_email_batch",
        "tags": [
          "Email batches"
        ],
        "responses": {
          "200": {
            "description": "EmailBatch resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch.jsonld-email_batch.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch-email_batch.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The batch does not exist or was created by someone else. Batches are private to their author.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an email batch",
        "description": "Returns a batch and the state of each of its emails (queued, sent, failed...), to follow its progress.\n\n**When to use:** To check how far a batch of separate emails has got after `send_email_batch`.\n\n**When not to use:** For a single email, use `get_email_send`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Only the author can read it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f55-0000-4000-8000-6c474d08b1a6"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "batch status",
            "progress of separate emails",
            "check batch"
          ],
          "es": [
            "estado del lote",
            "progreso de envío por separado",
            "comprobar lote"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The batch does not exist or was created by someone else. Batches are private to their author."
          }
        ]
      }
    },
    "/email_batches/{uuid}/actions/cancel": {
      "put": {
        "operationId": "cancel_email_batch",
        "tags": [
          "Email batches"
        ],
        "responses": {
          "200": {
            "description": "EmailBatch resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch.jsonld-email_batch.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch-email_batch.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The batch does not exist or was created by someone else. Batches are private to their author.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Cancel a batch of emails",
        "description": "Cancels every email of the batch that is still queued, at once. The ones that already left stay as they are.\n\n**When to use:** When the user wants to stop a batch in progress.\n\n**When not to use:** To stop a single email of the batch, use `cancel_email_send` with its UUID.\n\n**Side effects:** Cancelled emails are never sent and their stored body is deleted.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f55-0000-4000-8000-6c474d08b1a6"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "cancel batch",
            "stop separate emails",
            "cancel individual emails"
          ],
          "es": [
            "cancelar lote",
            "parar envío por separado",
            "cancelar emails individuales"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The batch does not exist or was created by someone else. Batches are private to their author."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued)."
          }
        ]
      }
    },
    "/email_batches/{uuid}/actions/send_now": {
      "put": {
        "operationId": "send_queued_email_batch_now",
        "tags": [
          "Email batches"
        ],
        "responses": {
          "200": {
            "description": "EmailBatch resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch.jsonld-email_batch.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBatch-email_batch.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The batch does not exist or was created by someone else. Batches are private to their author.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_sendable_now`: It is no longer queued (it started to leave, left, or was cancelled). `mailbox_limit_reached`: The sending limit of the mailbox is what delays it, so it cannot be brought forward.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Release a queued batch now",
        "description": "Brings the whole batch forward: the first email still queued is released now and the others move forward by the same amount, keeping their spacing. Mailbox limits still apply.\n\n**When to use:** When the user asks to send a queued batch right away. It reaches many people and skips the undo, so confirm with the user.\n\n**When not to use:** For one email, use `send_queued_email_now`. To create a batch, use `send_email_batch`.\n\n**Side effects:** Emails are released asynchronously by background jobs, still five minutes apart. Repeating the call while the first queued email is already due does not move the others again.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the batch.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f55-0000-4000-8000-6c474d08b1a6"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send batch now",
            "release batch",
            "skip undo for batch"
          ],
          "es": [
            "enviar lote ahora",
            "adelantar lote",
            "enviar ya los emails individuales"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The batch does not exist or was created by someone else. Batches are private to their author."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_sendable_now`: It is no longer queued (it started to leave, left, or was cancelled). `mailbox_limit_reached`: The sending limit of the mailbox is what delays it, so it cannot be brought forward."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call."
          }
        ]
      }
    },
    "/campaigns": {
      "get": {
        "operationId": "list_campaigns",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "200": {
            "description": "Campaign collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Campaign-campaign.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List email campaigns",
        "description": "Returns the email campaigns of your account, newest first, with their status (draft, scheduled, sending, sent...), type, audience and configuration. SMS campaigns are not included: they have their own list.\n\n**When to use:** To find a campaign by name, status, type or audience, to see what was sent last, or to get the UUID that the other campaign operations ask for.\n\n**When not to use:** To read one campaign in full, with its recipient count and delivery warnings, use `get_campaign`. For SMS campaigns, use `list_sms_campaigns`.\n\n**Filters:** Default order: newest created first.\n\n- `title`: campaigns whose name contains the text.\n- `status`: exact status, for example `campaign.status.sent` (same values as the `status` field).\n- `type`: exact type, for example `campaign.regular` or `campaign.test.ab` (same values as the `type` field). Automation campaigns (`campaign.automation`) are listed too.\n- `hash`: exact hash of the campaign, the code that follows `em_ch=` in the links of its emails.\n- `audience`: UUID of the audience.\n\nSorting: `order[createdAt]`, `order[updatedAt]`, `order[status]`, `order[startedAt]` (when sending began) or `order[finishedAt]` (when it ended), each `asc` or `desc`. The newest created campaign is not always the last one sent: for the last sent, combine `status=campaign.status.sent` with `order[startedAt]=desc&itemsPerPage=1`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of campaigns per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only campaigns whose name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Black Friday"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Return only campaigns in this status, with the same value as the `status` field of a campaign.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "campaign.status.sent"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only campaigns of this type, with the same value as the `type` field of a campaign.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "campaign.regular"
          },
          {
            "name": "hash",
            "in": "query",
            "description": "Return only the campaign with this hash: the code that follows `em_ch=` in the links of its emails.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "Return only campaigns of the audience with this UUID (the UUID alone, not the IRI).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "mailing list of sends",
            "email blast",
            "broadcast",
            "sent campaigns",
            "campaign history"
          ],
          "es": [
            "boletines enviados",
            "mailing",
            "envíos",
            "campañas enviadas",
            "historial de campañas",
            "listado de newsletters"
          ]
        }
      },
      "post": {
        "operationId": "create_campaign",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The design in `template_simple_json_code` could not be converted into an email. Check it against `get_template_schema` and send it again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: missing title, subject, from name or content; groups or segment from another audience; or no default sender in the audience when `email_config.from_email` or `reply_to` is omitted.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`campaign_field_not_allowed`: A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition.\n\n`campaign_filter_empty`: `send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`.\n\n`segment_reference_not_found`: `contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: `contact_segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: `contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a regular email campaign",
        "description": "Creates a regular email campaign as a draft: sender, subject, content, recipients and tracking are saved, but nothing is sent. The campaign stays a draft until someone sends or schedules it. To be valid it needs a `title`, an `audience`, who it goes to (`send_to`, with `groups`, `contact_segment` or `filter` when needed), `email_config` (from name, subject, and sender and reply-to unless the audience has defaults), `campaign_config` and the content (`template`, `template_html` or `template_simple_json_code`).\n\n**When to use:** To prepare a one-off email for an audience, some of its groups, a contact segment or a filter of its own. Afterwards check it with `get_campaign` (`recipient_count`), send yourself a preview with `campaign_send_test`, and then send it (`campaign_send_now`) or schedule it (`campaign_schedule`).\n\n**When not to use:** For an A/B test use `create_campaign_test_ab_subject`, `create_campaign_test_ab_sender` or `create_campaign_test_ab_template`. To ask inactive subscribers to confirm they want to stay, use `create_campaign_revalidation`. To send a survey, use `create_campaign_survey`. To start from an existing campaign, use `duplicate_campaign`. For text messages, use `create_sms_campaign`.\n\n**Side effects:** Nothing is sent to anyone. If you send `template_html` or `template_simple_json_code`, a new template is created in your account; the campaign thumbnail is generated in the background. With `contact_segment`, a draft follows the current revision of the segment until it is scheduled or sent; then that revision is fixed.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability. Choosing `contact_segment` or `filter` also requires the `contacts.read` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.jsonld-campaign.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign-campaign.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "newsletter",
            "mailing",
            "compose email",
            "draft email",
            "new broadcast",
            "email campaign"
          ],
          "es": [
            "boletín",
            "nuevo envío",
            "crear newsletter",
            "preparar envío",
            "borrador",
            "mailing",
            "campaña de email",
            "campaña de correo"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The design in `template_simple_json_code` could not be converted into an email. Check it against `get_template_schema` and send it again."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: missing title, subject, from name or content; groups or segment from another audience; or no default sender in the audience when `email_config.from_email` or `reply_to` is omitted."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "campaign_field_not_allowed",
            "meaning": "A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition."
          },
          {
            "status": 422,
            "code": "campaign_filter_empty",
            "meaning": "`send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "`contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "`contact_segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "`contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment."
          }
        ]
      }
    },
    "/campaigns/revalidation": {
      "post": {
        "operationId": "create_campaign_revalidation",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The template does not contain the revalidation confirmation link tag. Add `{{ link.list.revalidation_confirm_subscription }}` to the design and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix, for example a missing sender or content.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a revalidation campaign",
        "description": "Creates a draft email campaign that asks subscribers to confirm they still want to receive your emails. Nothing is sent when you create it. Once it is sent, recipients who do not click the confirmation link end up unsubscribed. The template must contain the confirmation link tag `link.list.revalidation_confirm_subscription`. To be valid it needs a `title`, an `audience`, who it goes to (`send_to`, with `groups` or `list_segment` when needed), `email_config` (sender and reply-to, unless the audience has defaults), `campaign_config` and the content (`template`, `template_html` or `template_simple_json_code`).\n\n**When to use:** To clean an audience of people who no longer engage, or to re-confirm consent, before sending your regular campaigns.\n\n**When not to use:** For an ordinary newsletter use `create_campaign`: sending a revalidation campaign unsubscribes the people who do not confirm. For other campaign types see `create_campaign_survey` and the A/B test operations.\n\n**Side effects:** Nothing is sent to anyone. Creating it does not unsubscribe anyone; the unsubscribing happens when the campaign is sent. If no `subject` or `preview_text` is given, default texts asking the subscriber to confirm are used.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignRevalidationInput.jsonld-campaign.write.create_campaign_revalidation"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignRevalidationInput-campaign.write.create_campaign_revalidation"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "re-engagement",
            "consent confirmation",
            "list cleaning",
            "reconfirm subscribers",
            "inactive subscribers"
          ],
          "es": [
            "reconfirmar suscriptores",
            "confirmar consentimiento",
            "limpiar lista",
            "revalidar",
            "suscriptores inactivos",
            "reactivación"
          ]
        }
      }
    },
    "/campaigns/survey": {
      "post": {
        "operationId": "create_campaign_survey",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read_campaign.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read_campaign.read.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The survey is not active or belongs to another audience, or the design in `template_simple_json_code` could not be converted. The campaign was already created without the survey: activate the survey and link it with `campaign_select_survey`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "Surveys are not included in the current plan (they need the Starter plan or higher, or an active trial), or the credential is not allowed to create campaigns (see Permissions).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No survey with the given `survey` UUID exists in your account. The campaign was already created without a survey; get the right UUID with `list_surveys` and link it with `campaign_select_survey`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a survey campaign",
        "description": "Creates a draft email campaign that carries a survey block, so recipients answer a quick poll from the email or open the survey page. Nothing is sent when you create it. With `survey` the campaign is linked to that survey right away; without it, link one later with `campaign_select_survey`. It needs a `title`, an `audience`, `send_to` (with `groups` or `list_segment` when needed), `email_config` (sender and reply-to, unless the audience has defaults) and `campaign_config`; the content is optional.\n\n**When to use:** To ask your contacts a question or run a survey by email. The survey must already exist and be active in the same audience (see `list_surveys`, and `survey_activate` to activate it).\n\n**When not to use:** For an ordinary email use `create_campaign`. To link a survey to a survey campaign that already exists, use `campaign_select_survey`.\n\n**Side effects:** Nothing is sent to anyone. With `survey`, and if the campaign has no content, a template with the survey block is created and the survey question becomes the subject. The survey block (`{{ block.poll.<survey_uuid> }}`) must be in the template before sending; the API does not check this when sending. If the survey cannot be linked, the campaign has already been created without it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSurveyInput.jsonld-campaign.write.create_campaign_survey"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSurveyInput-campaign.write.create_campaign_survey"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "poll",
            "questionnaire",
            "feedback email",
            "NPS",
            "quick poll"
          ],
          "es": [
            "encuesta",
            "cuestionario",
            "sondeo",
            "pregunta a los clientes",
            "opinión"
          ]
        }
      }
    },
    "/campaigns/test_ab/sender": {
      "post": {
        "operationId": "create_campaign_test_ab_sender",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: fewer than 2 or more than 5 variants, a missing sender or content, or a wait longer than 10 days.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an A/B test campaign (sender)",
        "description": "Creates a draft email campaign that compares 2 to 5 senders (each a from name and a sender address) on the same design and subject. Nothing is sent when you create it. When it is sent, a share of the recipients (`test_size`) gets the variants, and after the wait (`delay_value` and `delay_unit`, at most 10 days) the variant with the best `winner_metric` goes to everyone else. `email_config` must not include the from name or from email, since each variant has its own; the content (`template`, `template_html` or `template_simple_json_code`) and the subject are shared by all variants. It also needs a `title`, an `audience`, `send_to`, `campaign_config`, `test_size`, `winner_metric`, `delay_value` and `delay_unit`.\n\n**When to use:** To find out whether recipients open more when the email comes from a person or from the company name.\n\n**When not to use:** To compare subject lines use `create_campaign_test_ab_subject`; to compare designs, `create_campaign_test_ab_template`. For a campaign without a test, use `create_campaign`.\n\n**Side effects:** Nothing is sent to anyone. Creating the test does not start it: the test and the winner selection happen only after the campaign is sent.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABSenderInput.jsonld-campaign.write.test_ab_sender"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABSenderInput-campaign.write.test_ab_sender"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sender name test",
            "from name test",
            "sender testing",
            "test senders"
          ],
          "es": [
            "prueba A/B de remitente",
            "test de remitente",
            "comparar remitentes",
            "nombre del remitente"
          ]
        }
      }
    },
    "/campaigns/test_ab/subject": {
      "post": {
        "operationId": "create_campaign_test_ab_subject",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: fewer than 2 or more than 5 variants, a missing sender or content, or a wait longer than 10 days.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an A/B test campaign (subject)",
        "description": "Creates a draft email campaign that compares 2 to 5 subject lines (each with an optional preview text) on the same design. Nothing is sent when you create it. When it is sent, a share of the recipients (`test_size`) gets the variants, and after the wait (`delay_value` and `delay_unit`, at most 10 days) the variant with the best `winner_metric` goes to everyone else. `email_config` must not include the subject or preview text, since each variant has its own; the content (`template`, `template_html` or `template_simple_json_code`) is shared by all variants. It also needs a `title`, an `audience`, `send_to`, `campaign_config`, `test_size`, `winner_metric`, `delay_value` and `delay_unit`.\n\n**When to use:** To find out which subject line gets more opens or clicks before the main send goes to the rest of the audience.\n\n**When not to use:** To compare senders use `create_campaign_test_ab_sender`; to compare designs, `create_campaign_test_ab_template`. For a campaign without a test, use `create_campaign`.\n\n**Side effects:** Nothing is sent to anyone. Creating the test does not start it: the test and the winner selection happen only after the campaign is sent.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABSubjectInput.jsonld-campaign.write.test_ab_subject"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABSubjectInput-campaign.write.test_ab_subject"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subject line test",
            "subject testing",
            "headline test",
            "test subjects"
          ],
          "es": [
            "prueba A/B de asunto",
            "test de asunto",
            "comparar asuntos",
            "probar asuntos"
          ]
        }
      }
    },
    "/campaigns/test_ab/template": {
      "post": {
        "operationId": "create_campaign_test_ab_template",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: fewer than 2 or more than 5 variants, a missing sender or content, or a wait longer than 10 days.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an A/B test campaign (template)",
        "description": "Creates a draft email campaign that compares 2 to 5 email designs with the same subject and sender. Nothing is sent when you create it. When it is sent, a share of the recipients (`test_size`) gets the variants, and after the wait (`delay_value` and `delay_unit`, at most 10 days) the variant with the best `winner_metric` goes to everyone else. There is no shared content: each variant carries its own design (`template`, `template_html` or `template_simple_json_code`). It also needs a `title`, an `audience`, `send_to`, `campaign_config`, `test_size`, `winner_metric`, `delay_value` and `delay_unit`. `email_config` has the subject and sender, shared by all variants.\n\n**When to use:** To find out which design, offer or call to action gets more opens or clicks.\n\n**When not to use:** To compare subject lines use `create_campaign_test_ab_subject`; to compare senders, `create_campaign_test_ab_sender`. For a campaign without a test, use `create_campaign`.\n\n**Side effects:** Nothing is sent to anyone. Creating the test does not start it: the test and the winner selection happen only after the campaign is sent. A new template is created in your account for each variant sent as HTML or simple JSON.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABTemplateInput.jsonld-campaign.write.test_ab_template"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignTestABTemplateInput-campaign.write.test_ab_template"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "design test",
            "layout test",
            "creative test",
            "content testing"
          ],
          "es": [
            "prueba A/B de diseño",
            "test de plantilla",
            "comparar diseños",
            "probar contenidos"
          ]
        }
      }
    },
    "/campaigns/{uuid}": {
      "get": {
        "operationId": "get_campaign",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "200": {
            "description": "Campaign resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read_campaign.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read_campaign.read.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account. SMS campaigns are not found here: use `get_sms_campaign`. Check the UUID with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an email campaign",
        "description": "Returns one email campaign with its sender, subject, template, tracking options and recipients: `send_to` with `groups`, `list_segment` (old audience segment) or `contact_targeting` (contact segment or its own filter, as chosen in Customer App). Sent campaigns also carry their statistics; draft, ready and scheduled ones carry `recipient_count` and `warnings`, the delivery problems that would block or affect the send.\n\n**When to use:** To check the state of a campaign, to see how a sent campaign performed, or, before sending or scheduling, to confirm that it has recipients and that no warning has `blocks_sending: true`.\n\n**When not to use:** To find a campaign when you do not know its UUID, use `list_campaigns`. For an SMS campaign, use `get_sms_campaign`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "campaign details",
            "campaign statistics",
            "open rate",
            "click rate",
            "delivery warnings",
            "recipient count"
          ],
          "es": [
            "detalle de campaña",
            "estadísticas",
            "métricas",
            "aperturas",
            "clics",
            "avisos de envío",
            "cuántos destinatarios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no email campaign with this UUID in your account. SMS campaigns are not found here: use `get_sms_campaign`. Check the UUID with `list_campaigns`."
          }
        ]
      },
      "put": {
        "operationId": "update_campaign",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "200": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign cannot be edited: it is an A/B test or revalidation campaign, or it is already sending, sent, paused or in error (the message gives the reason). Create a new campaign or use `duplicate_campaign`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (SMS campaigns use `update_sms_campaign`). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The edited campaign would be invalid. Each entry in `violations[].propertyPath` names the field to fix. Sending `template_html` to a campaign whose design comes from the visual editor is rejected: send `template_simple_json_code`, or a `template` IRI.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`campaign_field_not_allowed`: A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition.\n\n`campaign_filter_empty`: `send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`.\n\n`segment_reference_not_found`: `contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: `contact_segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: `contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an email campaign",
        "description": "Changes a regular or survey email campaign that has not started sending: title, content, recipients, sender, subject or tracking. Nothing is sent. The campaign is validated as when it was created, so it must still have a title, an audience, recipients, `email_config`, `campaign_config` and content. If `send_to` stays `send_to_segment` or `send_to_custom_segment` and you send none of `contact_segment`, `filter` or `list_segment`, the current contact segment or filter is kept; choosing other recipients removes it.\n\n**When to use:** To correct or complete a campaign before it goes out, for example to change the subject or the template, or to switch the recipients.\n\n**When not to use:** A/B test and revalidation campaigns cannot be edited here: create a new one. To link a survey, use `campaign_select_survey`. To change when it goes out, use `campaign_schedule` or `campaign_unschedule`. To start a new campaign from this one, use `duplicate_campaign`.\n\n**Side effects:** Nothing is sent to anyone. A scheduled campaign stays scheduled, with the new content. The email thumbnail is regenerated in the background. Changing `contact_segment` or `filter` of a scheduled campaign takes effect at send time, with the revision current then.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability. Choosing `contact_segment` or `filter` also requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The updated Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.jsonld-campaign.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign-campaign.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit campaign",
            "modify newsletter",
            "change subject",
            "change recipients",
            "change template"
          ],
          "es": [
            "editar campaña",
            "modificar newsletter",
            "cambiar asunto",
            "cambiar destinatarios",
            "cambiar plantilla"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The campaign cannot be edited: it is an A/B test or revalidation campaign, or it is already sending, sent, paused or in error (the message gives the reason). Create a new campaign or use `duplicate_campaign`."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no email campaign with this UUID in your account (SMS campaigns use `update_sms_campaign`). Check it with `list_campaigns`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The edited campaign would be invalid. Each entry in `violations[].propertyPath` names the field to fix. Sending `template_html` to a campaign whose design comes from the visual editor is rejected: send `template_simple_json_code`, or a `template` IRI."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "campaign_field_not_allowed",
            "meaning": "A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition."
          },
          {
            "status": 422,
            "code": "campaign_filter_empty",
            "meaning": "`send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "`contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "`contact_segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "`contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment."
          }
        ]
      },
      "delete": {
        "operationId": "delete_campaign",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "204": {
            "description": "Campaign resource deleted"
          },
          "400": {
            "description": "It is an automation campaign, which cannot be deleted; it is managed from its automation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (it may already be deleted). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an email campaign",
        "description": "Permanently deletes an email campaign together with its statistics and tracked links. It cannot be undone. A scheduled campaign is cancelled and will not go out; emails already delivered are not recalled.\n\n**When to use:** To remove a draft you no longer need, or an old campaign and its results.\n\n**When not to use:** To stop a scheduled campaign but keep it, use `campaign_unschedule`. To keep a copy of it before deleting, use `duplicate_campaign`. For an SMS campaign, use `delete_sms_campaign`. Automation campaigns cannot be deleted.\n\n**Side effects:** Deletes the campaign, its statistics and its tracked links, whatever its status. Contacts and their activity in other campaigns are not affected.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove campaign",
            "erase campaign",
            "discard draft"
          ],
          "es": [
            "eliminar campaña",
            "borrar envío",
            "quitar borrador"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/duplicate": {
      "post": {
        "operationId": "duplicate_campaign",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "201": {
            "description": "Campaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "It is an automation campaign, which cannot be duplicated; it is managed from its automation.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (SMS campaigns use `duplicate_sms_campaign`). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`title` is missing or longer than 255 characters. Send a name for the copy.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Duplicate an email campaign",
        "description": "Creates a new draft that copies an existing email campaign, whatever its type and status: content, sender, subject, recipients selection and options. Statistics and any schedule are not copied.\n\n**When to use:** To repeat or adapt a campaign you already sent, or to retry a campaign that ended in error.\n\n**When not to use:** To start from scratch, use `create_campaign`. For an SMS campaign, use `duplicate_sms_campaign`. Automation campaigns cannot be duplicated.\n\n**Side effects:** Nothing is sent to anyone. The design is copied into a new template in your account.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The new Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignDuplicateInput.jsonld-campaign.write_duplicate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignDuplicateInput-campaign.write_duplicate"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "copy campaign",
            "clone newsletter",
            "resend similar",
            "reuse campaign"
          ],
          "es": [
            "copiar campaña",
            "clonar newsletter",
            "repetir envío",
            "reutilizar campaña"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/schedule": {
      "put": {
        "operationId": "campaign_schedule",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "204": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign cannot be scheduled: it is an automation campaign, its status is not draft, ready or scheduled, or its recipients cannot be evaluated (the message gives the reason).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (SMS campaigns use `schedule_sms_campaign`). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`schedule_mailing_date` is missing or less than one hour from now, or the confirmation email settings are invalid. Send a later date.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Schedule an email campaign",
        "description": "SCHEDULES THE CAMPAIGN FOR REAL: sets the date and time at which it will be sent to all its recipients, with no further action. Nothing goes out now; at that time the same real send as `campaign_send_now` happens, to real people, and it cannot be recalled. Before sending, check with `get_campaign` that the campaign has recipients (`recipient_count` above 0), no entry in `warnings` has `blocks_sending: true`, and its status is draft, ready or scheduled. The API does not check recipients, credits or account status when scheduling: they are checked when the scheduled time arrives, and if the check fails the campaign moves to `campaign.status.error` and nothing is sent.\n\n**When to use:** Only when the person has confirmed the campaign and the date at which it must go out to all its recipients.\n\n**When not to use:** To send right away, use `campaign_send_now`. To cancel the schedule, use `campaign_unschedule`. To check the email first, use `campaign_send_test`. For an SMS campaign, use `schedule_sms_campaign`. Automation campaigns cannot be scheduled.\n\n**Side effects:** The status becomes `campaign.status.scheduled` and the send is queued for the date. At that time real emails go out and email credits are used. Until then the campaign can be edited with `update_campaign` or cancelled with `campaign_unschedule`. Scheduling an already scheduled campaign replaces its date. With `campaign_confirmation_email`, a confirmation email goes to `mailing_confirm_emails` when the sending ends.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.send` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The updated Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendInput.jsonld-campaign.write_schedule"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendInput-campaign.write_schedule"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "plan send",
            "send later",
            "timed send",
            "delayed send",
            "send at a date"
          ],
          "es": [
            "programar envío",
            "enviar más tarde",
            "programar newsletter",
            "envío programado",
            "fecha de envío"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/select_survey": {
      "put": {
        "operationId": "campaign_select_survey",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "200": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.CampaignSelectSurveyOutput.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign.CampaignSelectSurveyOutput-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign is not a survey campaign or can no longer be edited (sending, sent, paused or in error), or the survey is not active or belongs to another audience. Check each with `get_campaign` and `get_survey`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The campaign or the survey does not exist in your account. Check them with `list_campaigns` and `list_surveys`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`survey` is missing or is not a valid UUID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Select the survey of a campaign",
        "description": "Links an active survey to a survey campaign, so its email carries the survey block. Nothing is sent. The survey question becomes the subject if the campaign had none.\n\n**When to use:** After creating a survey campaign without `survey`, or to switch the campaign to another survey.\n\n**When not to use:** To create a survey campaign already linked, send `survey` to `create_campaign_survey`. The survey must be active (`survey_activate`) and belong to the campaign audience (see `list_surveys`). Other campaign types have no survey.\n\n**Side effects:** Nothing is sent to anyone. It may create or change the campaign template: without a template, one with the survey block is created; if the template carries another survey block, only the survey is replaced. A template of your own without the block is left untouched and the response has `template_has_survey_block: false` and a `warning`: add the block (`{{ block.poll.<survey_uuid> }}`) before sending, because the API does not check it when sending.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The updated Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSelectSurveyInput.jsonld-campaign.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSelectSurveyInput-campaign.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "attach survey",
            "link poll",
            "choose survey",
            "set survey"
          ],
          "es": [
            "asociar encuesta",
            "vincular encuesta",
            "elegir encuesta",
            "poner encuesta"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/send_now": {
      "put": {
        "operationId": "campaign_send_now",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "204": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign could not be sent: it is an automation campaign, its status is not draft, ready or scheduled, or a check at send time failed (the message starts with `Campaign can not be sent:` and gives the reason). After a failed check the campaign is in error: fix the cause and send a copy from `duplicate_campaign`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (SMS campaigns use `send_sms_campaign_now`). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign_confirmation_email` is true but `mailing_confirm_emails` is empty, or one of the addresses is not valid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Send an email campaign now",
        "description": "SENDS THE CAMPAIGN FOR REAL: starts delivering the email right away to every recipient of the campaign. These are real emails to real people; once it starts it cannot be undone or recalled. Before sending, check with `get_campaign` that the campaign has recipients (`recipient_count` above 0), no entry in `warnings` has `blocks_sending: true`, and its status is draft, ready or scheduled. The checks run at the moment of sending, not before: if one fails the request is rejected.\n\n**When to use:** Only when the person has confirmed that this campaign must go out now to all its recipients.\n\n**When not to use:** To send at a later time, use `campaign_schedule`. To see how the email looks, use `campaign_send_test`: it sends only to the addresses you list. For an SMS campaign, use `send_sms_campaign_now`. Automation campaigns cannot be sent manually.\n\n**Side effects:** Real delivery: the status becomes `campaign.status.sending` and then `campaign.status.sent`, the sends use email credits of the plan and count against the daily sending limit, and opens, clicks and bounces start to be recorded. A scheduled campaign can also be sent now; its schedule is cancelled. With `campaign_confirmation_email`, a confirmation email goes to `mailing_confirm_emails` when the sending ends. If a check at send time fails (no active subscribers, account not allowed to send, not enough credits, daily limit reached, expired subscription, no content, blocked audience), the request returns 400 and the campaign is left in `campaign.status.error`: it can no longer be edited or sent, so retry with a copy from `duplicate_campaign`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.send` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The updated Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendInput.jsonld-campaign.write_send"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendInput-campaign.write_send"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send newsletter",
            "launch campaign",
            "dispatch",
            "send immediately",
            "go live"
          ],
          "es": [
            "enviar newsletter",
            "lanzar campaña",
            "enviar ahora",
            "mandar boletín",
            "envío inmediato"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/send_test": {
      "put": {
        "operationId": "campaign_send_test",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "204": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The test was not sent: the campaign is not in draft status, the account is not allowed to send, or the daily limit of test emails has been reached (the message gives the reason). The test limit is daily: try again tomorrow.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account (SMS campaigns use `send_sms_campaign_test`). Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`emails` is empty, has more than 5 addresses or contains an invalid address.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Send a test email of a campaign",
        "description": "SENDS A REAL TEST EMAIL of a draft campaign to up to 5 addresses that you choose, so you can see it in an inbox. It reaches only those addresses, never the campaign recipients, and the campaign stays a draft. The test uses the sender, subject and content saved in the campaign.\n\n**When to use:** Before sending or scheduling a campaign, to check how it looks in a real inbox.\n\n**When not to use:** To send to the actual recipients, use `campaign_send_now` or `campaign_schedule`. For an SMS campaign, use `send_sms_campaign_test`.\n\n**Side effects:** Sends real emails to the addresses in `emails`. It counts toward the daily limit of test emails of the plan. It is not a campaign send: the status and statistics of the campaign do not change. In an A/B test, a subject test uses the first subject variant, and a template test uses the variant chosen with `test_index`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "requestBody": {
          "description": "The updated Campaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendTestInput.jsonld-campaign.write_send_test"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Campaign.CampaignSendTestInput-campaign.write_send_test"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "preview email",
            "test send",
            "proof",
            "send sample",
            "seed email"
          ],
          "es": [
            "email de prueba",
            "enviar prueba",
            "vista previa",
            "enviar una muestra",
            "probar el correo"
          ]
        }
      }
    },
    "/campaigns/{uuid}/actions/unschedule": {
      "put": {
        "operationId": "campaign_unschedule",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "204": {
            "description": "Campaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign is not scheduled (for example it is already sending or sent), or it is an automation campaign. Check its status with `get_campaign`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account. Check it with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Cancel the schedule of an email campaign",
        "description": "Cancels the scheduled send of an email campaign and returns it to draft. Nothing is sent, the date is cleared, and the campaign can be edited, scheduled again or sent.\n\n**When to use:** When a scheduled campaign must not go out at its date, for example to correct it first.\n\n**When not to use:** To change only the date, call `campaign_schedule` again. To remove the campaign, use `delete_campaign`. It cannot stop a campaign that is already sending. SMS campaigns have no equivalent operation.\n\n**Side effects:** Removes the queued send: no email goes out at the old date. The status goes back to `campaign.status.draft`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.send` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unschedule",
            "stop scheduled send",
            "revert to draft",
            "cancel scheduled campaign"
          ],
          "es": [
            "desprogramar",
            "cancelar programación",
            "volver a borrador",
            "anular envío programado"
          ]
        }
      }
    },
    "/campaigns/{uuid}/report": {
      "get": {
        "operationId": "get_campaign_report",
        "tags": [
          "Email campaigns"
        ],
        "responses": {
          "200": {
            "description": "CampaignReport resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignReport.jsonld-campaign_report.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignReport-campaign_report.read"
                }
              }
            }
          },
          "400": {
            "description": "The campaign has no report yet: it is a draft, scheduled or still sending, its figures are not calculated yet, or it is an automation campaign that is not active. Read `status` with `get_campaign` and retry once it is sent.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to read statistics (see Permissions). Use a key or token whose role can read them.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no email campaign with this UUID in your account. SMS campaigns are not found here. Check the UUID with `list_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get the report of an email campaign",
        "description": "Returns the performance report of a sent email campaign, the same one the Customer App shows: delivery, opens, clicks, click-to-open rate (CTOR), bounces, unsubscribes and spam complaints, each with its rate, its counts, how it compares with the average of your audience and with the reference of your industry (`good`, `attention` or `critical`), plus orders and revenue, the first 24 hours hour by hour, the most clicked links and where the opens come from (device, email client and country).\n\n**When to use:** To answer \"how did my campaign go?\", to judge a sent campaign against your industry, or to see when the opens and clicks happened and which links were clicked.\n\n**When not to use:** For the plain counters of a campaign, `get_campaign` (`campaign_stats`) is enough. To find the UUID, use `list_campaigns`. SMS campaigns have no report. Campaigns that are still a draft, scheduled or sending have no report yet.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.statistics.read` capability. Reading the report needs access to the statistics (`marketing.statistics.read`), not only to the campaign: a credential that can read campaigns but not statistics gets 403.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email campaign (the `uuid` field returned by `list_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "campaign report",
            "campaign results",
            "how did my campaign go",
            "open rate",
            "click rate",
            "best links"
          ],
          "es": [
            "informe de campaña",
            "resultados de la campaña",
            "cómo fue mi campaña",
            "tasa de apertura",
            "tasa de clics",
            "enlaces más pulsados"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The campaign has no report yet: it is a draft, scheduled or still sending, its figures are not calculated yet, or it is an automation campaign that is not active. Read `status` with `get_campaign` and retry once it is sent."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to read statistics (see Permissions). Use a key or token whose role can read them."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no email campaign with this UUID in your account. SMS campaigns are not found here. Check the UUID with `list_campaigns`."
          }
        ]
      }
    },
    "/email_attachments/{uuid}": {
      "put": {
        "operationId": "upload_email_attachment",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailAttachment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAttachment.jsonld-email_attachment.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAttachment-email_attachment.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The UUID is already used by an attachment of another user (the code is the generic one of this family). Generate a new UUID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `attachment_id_reused`: That attachment id was already uploaded with other content. Generate a new UUID.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 20 MiB (20,971,520 bytes), the limit of the public API host. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB per file.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "`email_attachment_media_type_unsupported`: The body was not sent as `Content-Type: application/octet-stream`. Send the raw bytes with that type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The file is refused; nothing was stored. The `reason` extension tells which: `attachment_id_invalid`: The attachment id in the path is not a UUID. `attachment_name_invalid`: `X-Attachment-Name` is missing, empty or not a valid file name. `attachment_blocked_type`: Gmail does not allow this type of file (executables and similar, also inside a compressed file). Send it another way. `attachment_too_large`: The file is larger than an attachment allows (through this API the host refuses anything above 20 MiB first, with a 413). `attachment_empty`: The file is empty. `attachment_uploads_limit`: The user has too many uploaded attachments that have not been sent. Send or discard some first.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe CRM Files storage counters are busy or the database lost a deadlock. Nothing was stored; repeat the same request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Upload a file to attach to an email",
        "description": "Uploads one file and stores it under the UUID you choose, ready to be listed in `attachment_ids` of a draft or a send. The body is the raw file; nothing is sent to anyone.\n\n**When to use:** Before `create_email_draft`, `update_email_draft`, `send_email`, `schedule_email` or `send_email_batch` when the email carries a file.\n\n**When not to use:** To forward the attachments of a received email, do not upload them: send `forwarded_attachment_ids` with `mode` `forward`. There is no operation to attach a file of the CRM Files directly: download it and upload it here.\n\n**Side effects:** Stores the file for the user. An uploaded file that no draft or send uses is deleted after 24 hours. While it belongs to a draft it counts against the CRM Files storage of the account. Repeating the same upload (same id, same bytes) is safe and returns the same attachment.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "A UUID you generate for this attachment. Use it later in `attachment_ids`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f5b-0000-4000-8000-6c474d08b1ac"
          },
          {
            "name": "X-Attachment-Name",
            "in": "header",
            "description": "File name, UTF-8 percent-encoded (never put it in the URL).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 1024
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "proposal.pdf"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Must be `application/octet-stream`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "application/octet-stream"
          }
        ],
        "requestBody": {
          "description": "The raw bytes of the file (not JSON, not multipart). Up to 20 MiB (20,971,520 bytes), the limit of the public API host; empty files and file types that Gmail blocks (executables and similar) are refused.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "attach file",
            "upload attachment",
            "add attachment to email",
            "email attachment"
          ],
          "es": [
            "adjuntar archivo",
            "subir adjunto",
            "añadir adjunto al email",
            "archivo adjunto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The file is refused; nothing was stored. The `reason` extension tells which: `attachment_id_invalid`: The attachment id in the path is not a UUID. `attachment_name_invalid`: `X-Attachment-Name` is missing, empty or not a valid file name. `attachment_blocked_type`: Gmail does not allow this type of file (executables and similar, also inside a compressed file). Send it another way. `attachment_too_large`: The file is larger than an attachment allows (through this API the host refuses anything above 20 MiB first, with a 413). `attachment_empty`: The file is empty. `attachment_uploads_limit`: The user has too many uploaded attachments that have not been sent. Send or discard some first."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `attachment_id_reused`: That attachment id was already uploaded with other content. Generate a new UUID."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The UUID is already used by an attachment of another user (the code is the generic one of this family). Generate a new UUID."
          },
          {
            "status": 413,
            "code": null,
            "meaning": "The body is larger than 20 MiB (20,971,520 bytes), the limit of the public API host. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB per file."
          },
          {
            "status": 415,
            "code": "email_attachment_media_type_unsupported",
            "meaning": "The body was not sent as `Content-Type: application/octet-stream`. Send the raw bytes with that type."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The CRM Files storage counters are busy or the database lost a deadlock. Nothing was stored; repeat the same request."
          }
        ]
      }
    },
    "/email_personalization_previews": {
      "post": {
        "operationId": "preview_email_personalization",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailPersonalizationPreview resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPersonalizationPreview.jsonld-email_personalization_preview.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPersonalizationPreview-email_personalization_preview.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Preview an email's tags for its recipient",
        "description": "Shows the values the tags of an email would take for its first recipient, as plain text, using the same engine as the real send. It does not save or send anything.\n\n**When to use:** To check how the greeting and other tags will read before sending, or to catch a missing value that would fall back to the default.\n\n**When not to use:** To know which tags exist, use `list_email_personalization_tags`. To send, use `send_email`.\n\n**Side effects:** None: it is a read-only calculation that uses POST so that addresses do not travel in the URL.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailPersonalizationPreview resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailPersonalizationPreview.EmailPersonalizationPreviewInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailPersonalizationPreview.EmailPersonalizationPreviewInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "read",
        "x-mcp-keywords": {
          "en": [
            "preview email",
            "preview tags",
            "check personalization",
            "how will the email look"
          ],
          "es": [
            "vista previa del email",
            "previsualizar etiquetas",
            "comprobar personalización",
            "cómo se verá el email"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`."
          }
        ]
      }
    },
    "/email_personalization_tags": {
      "get": {
        "operationId": "list_email_personalization_tags",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailPersonalizationTag collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailPersonalizationTag.jsonld-email_personalization_tag.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailPersonalizationTag-email_personalization_tag.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: Send exactly one existing record the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List personalization tags for an email",
        "description": "Lists the tags that can be inserted in the subject and body of an email written from a record, to be replaced by each recipient's data when it leaves: the contact's fields, the contact's company, the sender, and, only from an opportunity, the opportunity's.\n\n**When to use:** Before writing an email that greets or personalizes by name, to use only valid tag ids. A tag outside this list makes the send fail with `personalization_tag_unavailable`.\n\n**When not to use:** To see the values a tag would take for a real recipient, use `preview_email_personalization`. These are not the merge tags of email campaigns (`list_merge_tags`).\n\n**Filters:** Send exactly one of `contact`, `company` or `opportunity`. The list depends on the record and on what the user can see. Not paginated.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact being written to.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company being written from.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity being written from; the only record that also offers the `opportunity` group.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f59-0000-4000-8000-6c474d08b1aa"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "merge tags",
            "personalize email",
            "placeholders",
            "first name tag",
            "email variables"
          ],
          "es": [
            "etiquetas de personalización",
            "personalizar email",
            "variables del email",
            "nombre del contacto en el email"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "Send exactly one existing record the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see."
          }
        ]
      }
    },
    "/email_recipient_candidates": {
      "get": {
        "operationId": "list_email_recipient_candidates",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailRecipientCandidate collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailRecipientCandidate.jsonld-email_recipient_candidate.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailRecipientCandidate-email_recipient_candidate.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: Send exactly one of `company` or `opportunity` that the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List email recipients of a company or opportunity",
        "description": "Lists the contacts with an email address that could receive an email written from a company or an opportunity: the company's contacts and, for an opportunity, also those assigned to it, without repeats and with where each comes from.\n\n**When to use:** When the user wants to email 'the company' or 'the deal' and you need the people and addresses to put in `to`.\n\n**When not to use:** To write from a contact you already know, put their email directly. To find contacts in general, use `list_contacts`.\n\n**Filters:** Send exactly one of `company` or `opportunity`. `search` looks in name and email (case-insensitive). Opportunity results come first when a contact is assigned to it. Pagination: `page` and `itemsPerPage` (default 30, maximum 100); the total is in `hydra:totalItems`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company whose contacts are offered.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity whose contacts (and those of its company) are offered.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f59-0000-4000-8000-6c474d08b1aa"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in name and email.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Contacts per page. Default 30, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "who to email",
            "contacts of company",
            "contacts of deal",
            "recipients",
            "choose recipients"
          ],
          "es": [
            "a quién escribir",
            "contactos de la empresa",
            "contactos del negocio",
            "destinatarios",
            "elegir destinatarios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "Send exactly one of `company` or `opportunity` that the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see."
          }
        ]
      }
    },
    "/email_recipient_checks": {
      "post": {
        "operationId": "check_email_recipients",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailRecipientCheck resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailRecipientCheck.jsonld-email_recipient_check.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailRecipientCheck-email_recipient_check.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: Send exactly one record the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Check recipients before sending",
        "description": "Tells which of the given addresses would not show up in the email history of the company or opportunity the email is written from, and which belong to people who opted out of CRM email. It informs only; it never blocks a send and saves nothing.\n\n**When to use:** Before `send_email`, `schedule_email` or `send_email_batch`, to warn the user that a recipient asked not to be emailed or that the email will not be recorded on the deal.\n\n**When not to use:** To see the opt-out of one contact, use `get_contact_email_opt_out`. To send, use `send_email`.\n\n**Side effects:** None: read-only calculation that uses POST so that addresses do not travel in the URL.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailRecipientCheck resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRecipientCheck.EmailRecipientCheckInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRecipientCheck.EmailRecipientCheckInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "read",
        "x-mcp-keywords": {
          "en": [
            "check recipients",
            "opted out",
            "unsubscribed recipients",
            "will email be recorded",
            "email history check"
          ],
          "es": [
            "comprobar destinatarios",
            "dados de baja",
            "destinatarios que no quieren emails",
            "se guardará el email",
            "revisar destinatarios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "Send exactly one record the user can see. The `reason` extension tells which: `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see."
          }
        ]
      }
    },
    "/email_sender_limits": {
      "get": {
        "operationId": "list_email_sender_limits",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailSenderLimit collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSenderLimit.jsonld-email_sender_limit.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSenderLimit-email_sender_limit.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List mailboxes at their sending limit",
        "description": "Lists the mailboxes the user can send from that have reached their sending limit right now (12 emails per hour or 200 per day) and when each can send again. Mailboxes under the limit are not listed. No usage counters are returned.\n\n**When to use:** To explain why an email is delayed, or to warn the user before sending that the mailbox is saturated.\n\n**When not to use:** To know when a new email would leave, use `get_email_send_estimate`. To list the mailboxes, use `list_email_senders`.\n\n**Filters:** No filters and no pagination.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sending limit",
            "mailbox limit",
            "why is my email delayed",
            "rate limit",
            "gmail limit"
          ],
          "es": [
            "límite de envío",
            "límite del buzón",
            "por qué se retrasa mi email",
            "buzón saturado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/email_senders": {
      "get": {
        "operationId": "list_email_senders",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailSender collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSender.jsonld-email_sender.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSender-email_sender.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List mailboxes I can send from",
        "description": "Lists the connected Gmail mailboxes the user can send CRM emails from now: their own first, then those shared with them or with a team they belong to. Each comes with its signatures.\n\n**When to use:** Before `send_email`, `schedule_email`, `send_email_batch` or `create_email_draft`, to get the `sender_uuid`. If the list is empty the user has no mailbox connected (or lost access) and cannot send.\n\n**When not to use:** These are the user's connected mailboxes, not the sender identities of email campaigns (those are `list_senders`). To see which mailboxes are at their sending limit, use `list_email_sender_limits`.\n\n**Filters:** No filters and no pagination.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. A mailbox is listed only while it is usable (active or still loading its history), its owner is active and it is not being disconnected.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "my mailboxes",
            "send from",
            "connected gmail",
            "email accounts",
            "sender mailbox",
            "signatures"
          ],
          "es": [
            "mis buzones",
            "enviar desde",
            "gmail conectado",
            "cuentas de correo",
            "desde qué buzón enviar",
            "firmas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/email_senders/{senderUuid}/send_estimate": {
      "get": {
        "operationId": "get_email_send_estimate",
        "tags": [
          "Email composing"
        ],
        "responses": {
          "200": {
            "description": "EmailSendEstimate resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendEstimate.jsonld-email_send_estimate.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendEstimate-email_send_estimate.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `estimate_invalid`: `count` is not a whole number from 1 to 500 (2 to 50 with `separate=1`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Estimate when an email would leave",
        "description": "Says when a send requested now from a mailbox would leave, taking into account its limits (12 per hour, 200 per day) and, for separate emails, the five minutes between them. It is an estimate: the real time is fixed when you send and can move if others send at the same time.\n\n**When to use:** Before `send_email_batch`, to tell the user how long a batch will take, or before any send to warn of a delay.\n\n**When not to use:** It reserves nothing and sends nothing. For the real release time of an existing send, read `release_at` with `get_email_send`.\n\n**Filters:** - `count` (required): number of recipients, 1 to 500 (2 to 50 with `separate=true`). A single email with many recipients counts as one: it is estimated as 1.\n- `separate`: `true` to estimate separate emails (a batch).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them.",
        "parameters": [
          {
            "name": "senderUuid",
            "in": "path",
            "description": "UUID of the mailbox (`list_email_senders`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of recipients.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 20
          },
          {
            "name": "separate",
            "in": "query",
            "description": "`true` to estimate separate emails.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "when will email be sent",
            "how long will batch take",
            "send time estimate",
            "email delay",
            "when will this email leave"
          ],
          "es": [
            "cuándo se enviará el email",
            "cuánto tardará el lote",
            "estimación de envío",
            "retraso del email",
            "estimar hora de salida del correo",
            "cuándo saldrá el correo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `estimate_invalid`: `count` is not a whole number from 1 to 500 (2 to 50 with `separate=1`)."
          }
        ]
      }
    },
    "/email_drafts": {
      "get": {
        "operationId": "list_email_drafts",
        "tags": [
          "Email drafts"
        ],
        "responses": {
          "200": {
            "description": "EmailDraft collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailDraft.jsonld-email_draft.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailDraft-email_draft.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List my email drafts",
        "description": "Lists the unsent email drafts of the user who owns the token, newest first, without their body. A draft is an email that is being written and has not been sent; it can be incomplete.\n\n**When to use:** To see what the user has started but not sent, or to find a draft to continue, edit or send.\n\n**When not to use:** To read the body of one draft, use `get_email_draft`. To see emails that are already queued, scheduled or failed, use `list_email_sends`. To see emails received or sent, use the email read operations (`list_emails`).\n\n**Filters:** No filters and no pagination: all the drafts of the user are returned (at most 200).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Drafts are private: only their author can read or change them.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "drafts",
            "unsent emails",
            "emails in progress",
            "saved drafts",
            "pending drafts"
          ],
          "es": [
            "borradores",
            "borradores de email",
            "correos sin enviar",
            "emails a medias",
            "mis borradores"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      },
      "post": {
        "operationId": "create_email_draft",
        "tags": [
          "Email drafts"
        ],
        "responses": {
          "201": {
            "description": "EmailDraft resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft.jsonld-email_draft.list"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft-email_draft.list"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `body_too_large`: `body_html` is too large. Shorten it or remove images. `too_many_drafts`: The user already has 200 drafts. Delete some with `delete_email_draft`. `draft_invalid`: The draft is not valid: more than 100 attachments, more than 500 addresses, or a malformed id. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create an email draft",
        "description": "Saves a new email draft for the user. Nothing is sent and nobody is notified; the user can open it in the app (Emails) and finish it, or you can send it later with `send_email` or `schedule_email` passing `draft`.\n\n**When to use:** To prepare an email for the user to review before it goes out, or to keep a half-written one. This is the safe default when the user asks to write an email but has not said to send it.\n\n**When not to use:** To send now, use `send_email`; to send at a given time, use `schedule_email`. To change a draft that already exists, use `update_email_draft`.\n\n**Side effects:** Creates the draft with `revision` 1. Nothing leaves the mailbox. The attachments listed count against the CRM Files storage of the account until the draft is sent or deleted. A draft does not append the user's signature: paste it into `body_html` if you want it.\n\n**Filters:** A draft is not checked like a send: it can have no recipients, no subject and no sender. Those are required when it is sent. A user can have at most 200 drafts.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Drafts are private: only their author can read or change them. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailDraft resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDraft.EmailDraftCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDraft.EmailDraftCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "write email",
            "compose email",
            "prepare email",
            "draft an email",
            "save draft",
            "email draft"
          ],
          "es": [
            "redactar email",
            "escribir correo",
            "preparar correo",
            "crear borrador",
            "guardar borrador",
            "borrador de email"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `body_too_large`: `body_html` is too large. Shorten it or remove images. `too_many_drafts`: The user already has 200 drafts. Delete some with `delete_email_draft`. `draft_invalid`: The draft is not valid: more than 100 attachments, more than 500 addresses, or a malformed id. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          }
        ]
      }
    },
    "/email_drafts/{uuid}": {
      "get": {
        "operationId": "get_email_draft",
        "tags": [
          "Email drafts"
        ],
        "responses": {
          "200": {
            "description": "EmailDraft resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft.jsonld-email_draft.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft-email_draft.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_draft_not_found`: The draft does not exist or belongs to someone else. Find yours with `list_email_drafts`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an email draft",
        "description": "Returns one draft with its body, recipients, attachments and current `revision`.\n\n**When to use:** To read the text of a draft, or to get the current `revision` before calling `update_email_draft`.\n\n**When not to use:** To list the drafts, use `list_email_drafts`. To read a send that already exists, use `get_email_send`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Drafts are private: only their author can read or change them.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the draft.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "read draft",
            "open draft",
            "draft body",
            "show draft"
          ],
          "es": [
            "abrir borrador",
            "ver borrador",
            "leer borrador",
            "texto del borrador"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_draft_not_found",
            "meaning": "The draft does not exist or belongs to someone else. Find yours with `list_email_drafts`."
          }
        ]
      },
      "put": {
        "operationId": "update_email_draft",
        "tags": [
          "Email drafts"
        ],
        "responses": {
          "200": {
            "description": "EmailDraft resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft.jsonld-email_draft.list"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDraft-email_draft.list"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_draft_not_found`: The draft does not exist or belongs to someone else. Find yours with `list_email_drafts`.\n\n`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `draft_conflict`: The draft changed since you read it (another device or call saved it first), or `revision` does not match. Read it again with `get_email_draft` and repeat the change on the current `revision`.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `body_too_large`: `body_html` is too large. Shorten it or remove images. `too_many_drafts`: The user already has 200 drafts. Delete some with `delete_email_draft`. `draft_invalid`: The draft is not valid: more than 100 attachments, more than 500 addresses, or a malformed id. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update an email draft",
        "description": "Changes a draft. Only the fields you send change; `null` or an empty list clears a field. `revision` is required and must be the one you last read.\n\n**When to use:** To correct or complete a draft the user already has: new text, recipients, subject or attachments.\n\n**When not to use:** To create a draft, use `create_email_draft`. To send it, use `send_email` or `schedule_email` with `draft`.\n\n**Side effects:** Saves the draft and raises its `revision`. Nothing leaves the mailbox. Attachments removed from the list are deleted; new ones start counting against the CRM Files storage.\n\n**Filters:** Read the draft with `get_email_draft` first to get its `revision`. If the user edits the same draft in the app at the same time, the one that saves second gets 409 `draft_conflict`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Drafts are private: only their author can read or change them. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the draft.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          }
        ],
        "requestBody": {
          "description": "The updated EmailDraft resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDraft.EmailDraftUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDraft.EmailDraftUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit draft",
            "change draft",
            "modify draft",
            "update draft",
            "rewrite draft"
          ],
          "es": [
            "editar borrador",
            "modificar borrador",
            "cambiar borrador",
            "actualizar borrador",
            "reescribir borrador"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_draft_not_found",
            "meaning": "The draft does not exist or belongs to someone else. Find yours with `list_email_drafts`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `draft_conflict`: The draft changed since you read it (another device or call saved it first), or `revision` does not match. Read it again with `get_email_draft` and repeat the change on the current `revision`."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `body_too_large`: `body_html` is too large. Shorten it or remove images. `too_many_drafts`: The user already has 200 drafts. Delete some with `delete_email_draft`. `draft_invalid`: The draft is not valid: more than 100 attachments, more than 500 addresses, or a malformed id. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          }
        ]
      },
      "delete": {
        "operationId": "delete_email_draft",
        "tags": [
          "Email drafts"
        ],
        "responses": {
          "204": {
            "description": "EmailDraft resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete an email draft",
        "description": "Permanently deletes a draft of the user and its attachments. There is no undo.\n\n**When to use:** Only when the user explicitly asks to delete this draft.\n\n**When not to use:** To stop an email that was already sent or scheduled, use `cancel_email_send`. To change the draft, use `update_email_draft`. Sending a draft with `send_email` already deletes it.\n\n**Side effects:** Deletes the draft and its uploaded attachments; their size stops counting against the CRM Files storage. Nobody is notified. Deleting a draft that does not exist, or is not the user's, does nothing and still answers 204.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Drafts are private: only their author can read or change them.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the draft.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete draft",
            "discard draft",
            "remove draft",
            "throw away draft"
          ],
          "es": [
            "borrar borrador",
            "eliminar borrador",
            "descartar borrador"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/contacts/{contactUuid}/email_opt_out": {
      "get": {
        "operationId": "get_contact_email_opt_out",
        "tags": [
          "Email opt-outs"
        ],
        "responses": {
          "200": {
            "description": "ContactEmailOptOut resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactEmailOptOut.jsonld-contact_email_opt_out.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactEmailOptOut-contact_email_opt_out.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The contact does not exist in this account. Check the UUID with `get_contact`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Check a contact's opt-out from CRM email",
        "description": "Says whether the contact asked not to receive more emails sent from the CRM (by clicking the unsubscribe link of one), and which of their addresses and since when.\n\n**When to use:** Before writing to a contact, or to answer why sending to someone returned `recipient_opted_out`.\n\n**When not to use:** This opt-out only covers 1-to-1 emails sent from the CRM. It is independent from the subscription status of the contact in audiences and email campaigns (`list_contact_audience_memberships`). To check several addresses at once, use `check_email_recipients`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opted out",
            "unsubscribed contact",
            "does not want emails",
            "do not email",
            "unsubscribe status",
            "check opt-out"
          ],
          "es": [
            "dado de baja",
            "no quiere recibir emails",
            "no escribir",
            "baja de emails",
            "contacto que se dio de baja",
            "consultar baja de correo",
            "pidió no recibir correos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The contact does not exist in this account. Check the UUID with `get_contact`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_contact_email_opt_out",
        "tags": [
          "Email opt-outs"
        ],
        "responses": {
          "204": {
            "description": "ContactEmailOptOut resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The contact does not exist in this account. Check the UUID with `get_contact`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Let a contact receive CRM email again",
        "description": "Removes the opt-out of a contact, so CRM emails can be sent to them again without acknowledging it.\n\n**When to use:** Only when the user explicitly says the contact has asked to be emailed again, or the opt-out was a mistake.\n\n**When not to use:** To send to an opted-out person once, without removing the opt-out, leave it and put their address in `acknowledged_opt_outs` of the send after the user confirms. Marketing subscriptions are not touched: for those use the audience membership operations.\n\n**Side effects:** From now on sends to the contact are no longer flagged `recipient_opted_out`. The person had asked not to be emailed, so do it only on the user's explicit instruction. Nobody is notified. There is no operation to opt a contact out: only the contact does it, with the unsubscribe link.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [
          {
            "name": "contactUuid",
            "in": "path",
            "description": "UUID of the contact.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove opt-out",
            "resubscribe to emails",
            "allow emails again",
            "undo unsubscribe",
            "allow emails to a contact"
          ],
          "es": [
            "quitar la baja",
            "volver a permitir emails",
            "reactivar emails",
            "deshacer baja",
            "reactivar correos de un contacto",
            "permitir correos a un contacto",
            "volver a recibir correos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The contact does not exist in this account. Check the UUID with `get_contact`."
          }
        ]
      }
    },
    "/senders": {
      "get": {
        "operationId": "list_senders",
        "tags": [
          "Email senders"
        ],
        "responses": {
          "200": {
            "description": "Sender collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sender.jsonld-sender.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Sender-sender.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List email senders",
        "description": "Returns the sender addresses of the account, each with whether it is already confirmed.\n\n**When to use:** To check which addresses can be used as the sender of a campaign, or whether a new one is still waiting for confirmation.\n\n**When not to use:** For the domains that authenticate your sending use `list_sender_domains`; for SMS senders use `list_sms_senders`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "from address",
            "sender addresses",
            "reply addresses",
            "verified senders"
          ],
          "es": [
            "remitentes",
            "direcciones de envío",
            "remitentes de email",
            "correo del remitente"
          ]
        }
      },
      "post": {
        "operationId": "create_sender",
        "tags": [
          "Email senders"
        ],
        "responses": {
          "201": {
            "description": "Sender resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Sender.jsonld-sender.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sender-sender.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The email is not valid or the sender already exists. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an email sender",
        "description": "Adds an email address as a possible sender. If the address belongs to a sending domain that is already authenticated it is confirmed at once; otherwise a confirmation email is sent and the address can be used in campaigns only after its owner follows the link.\n\n**When to use:** When a campaign must go out from an address the account has not used before.\n\n**When not to use:** If the address belongs to a domain you want to authenticate, see `create_sender_domain`. To resend the confirmation email use `resend_sender_verification`.\n\n**Side effects:** A confirmation email is sent to the address, unless it is confirmed on creation because its domain is already authenticated (see `create_sender_domain`).\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Sender resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Sender.jsonld-sender.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Sender-sender.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new from address",
            "add sender",
            "verify email address",
            "register sender"
          ],
          "es": [
            "crear remitente",
            "nuevo remitente",
            "añadir remitente",
            "verificar dirección de correo"
          ]
        }
      }
    },
    "/senders/{uuid}": {
      "get": {
        "operationId": "get_sender",
        "tags": [
          "Email senders"
        ],
        "responses": {
          "200": {
            "description": "Sender resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Sender.jsonld-sender.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sender-sender.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sender does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an email sender",
        "description": "Returns one sender address and whether it is confirmed.\n\n**When to use:** To check if a sender is ready to use in a campaign.\n\n**When not to use:** To find senders use `list_senders`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sender. Get it with `list_senders`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "2d7f9a41-6c83-4e15-b0a2-8e1c5f3d7b96"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sender status",
            "is verified",
            "from address details"
          ],
          "es": [
            "ver remitente",
            "estado del remitente",
            "remitente confirmado"
          ]
        }
      },
      "delete": {
        "operationId": "delete_sender",
        "tags": [
          "Email senders"
        ],
        "responses": {
          "204": {
            "description": "Sender resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sender does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The sender is the default sender or reply-to of an audience, or the sender of an A/B test variant of a campaign (the answer says it is used by an audience in both cases). Change it there and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an email sender",
        "description": "Removes a sender address from the account. Campaigns and booking pages that used it lose that sender.\n\n**When to use:** When an address is no longer used to send campaigns.\n\n**When not to use:** To confirm an address instead use `resend_sender_verification`.\n\n**Side effects:** Email campaigns and booking pages that had this address as sender or reply-to keep existing but are left without it: choose another sender before sending a draft or scheduled campaign.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sender. Get it with `list_senders`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "2d7f9a41-6c83-4e15-b0a2-8e1c5f3d7b96"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove sender",
            "erase from address",
            "discard sender"
          ],
          "es": [
            "eliminar remitente",
            "borrar remitente",
            "quitar dirección de envío"
          ]
        }
      }
    },
    "/senders/{uuid}/actions/resend_verification": {
      "post": {
        "operationId": "resend_sender_verification",
        "tags": [
          "Email senders"
        ],
        "responses": {
          "204": {
            "description": "Sender resource created",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The sender is already confirmed. Nothing to resend.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sender does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Resend the sender confirmation email",
        "description": "Sends again the confirmation email to a sender address that is not confirmed yet.\n\n**When to use:** When the owner did not receive the first email or the link has expired.\n\n**When not to use:** If the sender is already confirmed there is nothing to resend.\n\n**Side effects:** A confirmation email is sent to the sender address.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sender. Get it with `list_senders`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "2d7f9a41-6c83-4e15-b0a2-8e1c5f3d7b96"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "send confirmation again",
            "re-verify",
            "confirmation link",
            "verification email"
          ],
          "es": [
            "reenviar confirmación",
            "reenviar verificación",
            "volver a enviar el enlace",
            "correo de verificación"
          ]
        }
      }
    },
    "/email_sends": {
      "get": {
        "operationId": "list_email_sends",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSend-email_send.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: Send exactly one filter. The `reason` extension tells which: `list_filter_required`: Send exactly one of `contact`, `company`, `opportunity` or `view`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List queued, scheduled or failed emails",
        "description": "Lists the emails the user has sent from the CRM that have not gone out yet or that need attention: queued, scheduled and failed or unconfirmed ones.\n\n**When to use:** To answer what is scheduled or waiting to go out, which emails failed, or what is pending for one contact, company or opportunity.\n\n**When not to use:** To list emails that already left, use `list_sent_emails`. To read one send, use `get_email_send`. To read emails received or the history of a record, use the email read operations (`list_emails`).\n\n**Filters:** Send exactly one filter, otherwise 422 `email_send_rejected` with `list_filter_required`.\n- `view=scheduled`: the user's emails waiting for their time (scheduled ones, plus every email of a batch that still has one to leave so its progress shows). At most 500. An email still inside its 10 seconds to undo is not listed yet.\n- `view=failed`: the user's failed or unconfirmed sends not yet discarded. At most 200.\n- `contact`, `company`, `opportunity`: the user's sends written from that record that are still waiting or need attention (not the ones already sent).\nOnly the user's own sends are listed, never other people's. The list is not paginated.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "description": "`scheduled` or `failed`. Do not combine with a record filter.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "scheduled",
                "failed"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "scheduled"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: only sends written from it.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: only sends written from it.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: only sends written from it.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f59-0000-4000-8000-6c474d08b1aa"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "scheduled emails",
            "pending emails",
            "outbox",
            "failed emails",
            "emails waiting to send",
            "queued emails"
          ],
          "es": [
            "emails programados",
            "correos pendientes",
            "bandeja de salida",
            "correos fallidos",
            "emails en cola",
            "pendientes de envío"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "Send exactly one filter. The `reason` extension tells which: `list_filter_required`: Send exactly one of `contact`, `company`, `opportunity` or `view`."
          }
        ]
      }
    },
    "/email_sends/actions/cancel_all": {
      "put": {
        "operationId": "cancel_all_email_sends",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSendCancellation resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendCancellation.jsonld-email_send_cancellation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendCancellation-email_send_cancellation.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Cancel all pending emails",
        "description": "Cancels every email of the user that has not started to leave: queued, scheduled and the pending ones of batches. Emails already leaving or sent are untouched.\n\n**When to use:** Only when the user explicitly asks to stop everything that is waiting to go out.\n\n**When not to use:** To stop one email, use `cancel_email_send`; one batch, `cancel_email_batch`.\n\n**Side effects:** Every cancelled email is never sent and its stored body is deleted. Pending-send notifications are withdrawn.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "cancel all emails",
            "stop all scheduled emails",
            "clear outbox",
            "cancel everything pending"
          ],
          "es": [
            "cancelar todos los emails",
            "cancelar todo lo programado",
            "vaciar bandeja de salida",
            "anular todos los envíos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued)."
          }
        ]
      }
    },
    "/email_sends/actions/schedule": {
      "post": {
        "operationId": "schedule_email",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "202": {
            "description": "EmailSend resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `too_many_recipients`: More than 500 addresses between `to`, `cc` and `bcc`. Split the email. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`. `schedule_invalid`: `scheduled_at` is not an ISO 8601 date-time with a time zone offset (for example `2026-11-05T09:30:00+01:00`). `schedule_too_soon`: `scheduled_at` is less than 90 seconds from now. Pick a later time, or use `send_email`. `schedule_too_far`: `scheduled_at` is more than 365 days from now. Pick an earlier time. `too_many_scheduled_sends`: The user already has 100 scheduled emails (each recipient of a batch counts). Cancel some with `cancel_email_send` or wait for them to go out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Schedule an email for later",
        "description": "Schedules an email from the user's connected Gmail mailbox to leave at a chosen time, written from a contact, company or opportunity. It is stored and released at `scheduled_at` or later, if the mailbox has reached its sending limit by then.\n\n**When to use:** When the user wants the email to go out at a specific date and time (tomorrow at 9, next Monday) and has confirmed the final recipients, text and time. It reaches other people, so confirm with the user before calling it.\n\n**When not to use:** To send right away, use `send_email`. To save without sending, use `create_email_draft`. To change the time of an email already scheduled: cancel it with `cancel_email_send` and schedule it again; to edit its text too, open it first with `reopen_email_send`.\n\n**Side effects:** The email goes out through the Gmail account of the chosen sender, as the user, to the recipients in `to`, `cc` and `bcc`. Nothing leaves before `scheduled_at`. It is released asynchronously by a background job, so read `state` with `get_email_send`. There is no undo window, but it can be cancelled with `cancel_email_send` while `state` is `queued`, and brought forward with `send_queued_email_now`. A user can have at most 100 scheduled emails. A failed send notifies the user in the app.\n\n**Filters:** The same opt-out protection as `send_email`: 409 `recipient_opted_out` with the addresses, until `acknowledged_opt_outs` lists them.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailSend resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSend.EmailScheduleInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSend.EmailScheduleInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "schedule email",
            "send later",
            "send email tomorrow",
            "email at a specific time",
            "delay email",
            "scheduled email"
          ],
          "es": [
            "programar email",
            "programar correo",
            "enviar más tarde",
            "enviar mañana",
            "enviar a una hora",
            "email programado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `too_many_recipients`: More than 500 addresses between `to`, `cc` and `bcc`. Split the email. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`. `schedule_invalid`: `scheduled_at` is not an ISO 8601 date-time with a time zone offset (for example `2026-11-05T09:30:00+01:00`). `schedule_too_soon`: `scheduled_at` is less than 90 seconds from now. Pick a later time, or use `send_email`. `schedule_too_far`: `scheduled_at` is more than 365 days from now. Pick an earlier time. `too_many_scheduled_sends`: The user already has 100 scheduled emails (each recipient of a batch counts). Cancel some with `cancel_email_send` or wait for them to go out."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one."
          }
        ]
      }
    },
    "/email_sends/actions/send": {
      "post": {
        "operationId": "send_email",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "202": {
            "description": "EmailSend resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email.\n\n`crm_file_quota_exceeded`: The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `too_many_recipients`: More than 500 addresses between `to`, `cc` and `bcc`. Split the email. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Send an email from the CRM",
        "description": "Sends an email from the user's connected Gmail mailbox to the given recipients, written from a contact, company or opportunity. The email is queued and leaves about 20 seconds later (10 seconds in which the user can still undo it plus 10 of grace), or later if the mailbox has reached its sending limit.\n\n**When to use:** When the user has asked to send an email and has confirmed the final recipients, subject and text. Because it reaches other people and cannot be taken back once it leaves, confirm with the user before calling it.\n\n**When not to use:** To prepare an email without sending it, use `create_email_draft`. To send at a given time, use `schedule_email`. To send a separate copy to each of several people, use `send_email_batch`. To send from an email campaign to an audience, use the campaign operations: this one is a personal 1-to-1 email from the user's own mailbox.\n\n**Side effects:** The email goes out through the Gmail account of the chosen sender, as the user, to the recipients in `to`, `cc` and `bcc`. It is delivered asynchronously: this call only queues it and answers 202; the upload to Gmail happens in a background job, so read `state` with `get_email_send` to know when it is `sent`. Until `release_at` it can still be stopped with `cancel_email_send`. A copy synced from Gmail then appears in the email history of the record (`copy_visible`). A failed send notifies the user in the app. The email is limited to 12 per hour and 200 per day per mailbox; beyond that `release_at` moves later. If `draft` is given, the draft is deleted.\n\n**Filters:** Optional unsubscribe link: include the unsubscribe block in `body_html` (see its description). Recipients who clicked such a link before are protected: the call answers 409 `recipient_opted_out` with their addresses until `acknowledged_opt_outs` lists them. Check beforehand with `check_email_recipients`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The sender must be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Writing from an opportunity also requires `crm.opportunities.read` and the Work level on its pipeline.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailSend resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSend.EmailSendInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSend.EmailSendInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send email",
            "send mail",
            "email a contact",
            "write to",
            "send message",
            "send an email now",
            "reply to email",
            "forward email"
          ],
          "es": [
            "enviar email",
            "enviar correo",
            "mandar email",
            "escribir a un contacto",
            "responder correo",
            "reenviar correo",
            "mandar correo ahora"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) the user has no Work level on its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The request was understood but the email cannot be used as it is; nothing was saved. The `reason` extension tells which: `recipients_required`: `to`, `cc` and `bcc` are all empty. Add at least one address. `recipients_invalid`: An address is not a valid email address. Fix or remove it. `too_many_recipients`: More than 500 addresses between `to`, `cc` and `bcc`. Split the email. `subject_too_long`: `subject` is longer than 998 characters. Shorten it. `body_too_large`: `body_html` is too large. Shorten it or remove images. `body_invalid`: `body_html` cannot be parsed (too deeply nested or invalid encoding). Send simpler HTML. `inline_image_invalid`: An image in `body_html` cannot be sent. Remove or replace it. `inline_image_too_large`: An image in `body_html` is larger than 5 MB. Use a smaller one. `message_too_large`: The complete email is larger than Gmail accepts. Remove attachments or images. `attachments_too_large`: Attachments, inline images and forwarded attachments add up to more than 25 MB. Remove some. `attachment_missing`: An id in `attachment_ids` was never uploaded, belongs to someone else, already goes with another email, or expired (an upload that nobody sends is deleted after 24 hours). Upload it again with `upload_email_attachment`. `source_email_required`: `mode` is `reply`, `reply_all` or `forward` but `source_email` is missing or is not an email IRI. `source_email_not_full_access`: `source_email` does not exist, or the user cannot see the whole original email, so it cannot be answered or forwarded. Check the IRI; otherwise ask whoever owns the mailbox for full access. `source_email_not_hydrated`: The original email has not finished loading from Gmail yet. Retry in a moment. `forwarded_attachment_invalid`: An id in `forwarded_attachment_ids` is not an attachment of the original email. Take the ids from the original email. `forwarded_attachments_unavailable`: Attachments of the original email cannot be forwarded in this environment. Send without `forwarded_attachment_ids`. `contact_required`: `record` is a contact that does not exist. Check it with `get_contact`. `record_not_found`: `record` is a company or opportunity that does not exist or that the user cannot see. `record_required`: Exactly one record is needed (a contact, a company or an opportunity). `personalization_tag_unavailable`: A personalization tag in `subject` or `body_html` is not available for this record, is `pending`, or is malformed. List the usable ones with `list_email_personalization_tags`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `recipient_opted_out`: Some recipient asked not to receive CRM email (the addresses come in the `addresses` extension). Nothing was created. Tell the user and, only if they confirm, repeat the request with those addresses in `acknowledged_opt_outs`; otherwise remove them. `replaced_send_changed`: The send named in `replaces_send` is alive again (queued, sending or sent). Check it with `get_email_send` before sending the edited email."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The attachments would not fit in the CRM Files storage of the account. Remove attachments or free space."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken) or the attachment quota is being updated. Nothing was saved and there is no answer to rely on: repeat the same request, with the same `idempotency_key` when the operation has one."
          }
        ]
      }
    },
    "/email_sends/{uuid}": {
      "get": {
        "operationId": "get_email_send",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an email send",
        "description": "Returns the state of one email sent from the CRM: whether it is still queued, leaving, sent, failed, unconfirmed or cancelled, when it leaves, and who it goes to.\n\n**When to use:** To check whether an email has already gone out after `send_email` or `schedule_email`, or why it failed.\n\n**When not to use:** To list several, use `list_email_sends` or `list_sent_emails`. The body of the email is not returned here.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Only the author of the send can read it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email status",
            "was the email sent",
            "send status",
            "check sent email",
            "delivery state"
          ],
          "es": [
            "estado del email",
            "se envió el correo",
            "estado del envío",
            "comprobar envío"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          }
        ]
      }
    },
    "/email_sends/{uuid}/actions/cancel": {
      "put": {
        "operationId": "cancel_email_send",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Cancel a queued email",
        "description": "Stops an email that has not started to leave. It never goes out and its stored body is deleted.\n\n**When to use:** When the user changes their mind about an email that is queued or scheduled (`cancellable` is `true`), or to reschedule it: cancel, then `schedule_email` again.\n\n**When not to use:** To stop every pending email at once, use `cancel_all_email_sends`; for the emails of a batch, `cancel_email_batch`. An email that is `sending` or `sent` cannot be recalled. To keep the text to edit it, call `reopen_email_send` first.\n\n**Side effects:** The recipients never receive the email. The user's pending-send notification, if any, is withdrawn.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author of the send can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "cancel email",
            "undo send",
            "stop email",
            "unschedule email",
            "cancel scheduled email"
          ],
          "es": [
            "cancelar email",
            "deshacer envío",
            "cancelar correo programado",
            "anular envío",
            "parar email"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_cancellable`: It has already started to leave, left, or was cancelled (for a batch or `cancel_all_email_sends`: nothing was still queued)."
          }
        ]
      }
    },
    "/email_sends/{uuid}/actions/discard": {
      "put": {
        "operationId": "discard_email_send",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_dismissable`: Only a failed or unconfirmed send can be discarded.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Discard a failed email",
        "description": "Hides a failed or unconfirmed send from the user's failed list and deletes its stored content (text and attachments). The email is not sent.\n\n**When to use:** When the user does not want to retry a failed email and asks to dismiss it.\n\n**When not to use:** To send it again, use `retry_email_send`. To edit and resend it, use `reopen_email_send`. To stop a queued email, use `cancel_email_send`.\n\n**Side effects:** Deletes the stored content of the failed email; it cannot be retried or reopened afterwards. Nothing is sent.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author of the send can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "dismiss failed email",
            "discard failed email",
            "remove failed send",
            "clear failed email"
          ],
          "es": [
            "descartar email fallido",
            "quitar envío fallido",
            "ocultar correo fallido"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_dismissable`: Only a failed or unconfirmed send can be discarded."
          }
        ]
      }
    },
    "/email_sends/{uuid}/actions/reopen": {
      "post": {
        "operationId": "reopen_email_send",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSendReopening resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendReopening.jsonld-email_send_reopening.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendReopening-email_send_reopening.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_reopenable`: It already left, is leaving, was cancelled or discarded, or its content was deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reopen a queued or failed email to edit",
        "description": "Returns the full content of a send that has not left (queued, scheduled, failed or unconfirmed) so it can be edited and sent again: recipients, subject, body, and a fresh copy of each attachment. The original send is not changed.\n\n**When to use:** To fix and resend a failed email, or to change the text or time of a queued or scheduled one. Flow: reopen, then (if it was queued) `cancel_email_send`, then `send_email` or `schedule_email` with `replaces_send` set to this send, or `create_email_draft` to leave it for the user.\n\n**When not to use:** To only change the time, you do not need this: cancel and schedule again. To read the status, use `get_email_send`; the body is not returned there. A send that already left cannot be reopened.\n\n**Side effects:** Creates a loose copy of every attachment (valid for 24 hours; unused copies are deleted by themselves). A queued original keeps going out until you cancel it, so cancel it before sending the edited email or the recipients get both. Nothing is sent.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author of the send can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit sent email",
            "edit scheduled email",
            "change scheduled email",
            "reopen email",
            "fix failed email",
            "modify queued email"
          ],
          "es": [
            "editar email programado",
            "modificar correo en cola",
            "reabrir correo",
            "corregir email fallido",
            "cambiar email programado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_reopenable`: It already left, is leaving, was cancelled or discarded, or its content was deleted."
          }
        ]
      }
    },
    "/email_sends/{uuid}/actions/retry": {
      "put": {
        "operationId": "retry_email_send",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.\n\n`email_sender_not_found`: `sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_retryable`: Only a failed or unconfirmed send whose content is still kept can be retried. `sequence_send_not_retryable`: It belongs to an email sequence; retry it from the sequence enrollment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Retry a failed email",
        "description": "Queues again, with the same content, an email that failed or whose delivery could not be confirmed.\n\n**When to use:** When the user asks to send again a failed email, once the cause is fixed. For an `unconfirmed` email the original may have actually left, so the recipients could get it twice: tell the user and confirm first.\n\n**When not to use:** To change the text first, use `reopen_email_send`. An email that belongs to an email sequence is retried from its sequence enrollment. For a send that is `sent` or `canceled`, create a new one with `send_email`.\n\n**Side effects:** The email is queued again and leaves like a new one (about 20 seconds later, within the mailbox limits) to the same recipients, asynchronously. The permission to send is checked again.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. The original sender must still be a mailbox the user can send from: one of their own or one shared with them (see `list_email_senders`). Only the author of the send can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "retry email",
            "resend email",
            "send again",
            "retry failed email",
            "try again"
          ],
          "es": [
            "reintentar email",
            "reenviar correo fallido",
            "volver a enviar",
            "reintentar envío"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          },
          {
            "status": 404,
            "code": "email_sender_not_found",
            "meaning": "`sender_uuid` is not a mailbox the user can send from (not theirs or shared with them, disconnected, or being removed). Pick one from `list_email_senders`; if the list is empty the user has no mailbox connected."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_retryable`: Only a failed or unconfirmed send whose content is still kept can be retried. `sequence_send_not_retryable`: It belongs to an email sequence; retry it from the sequence enrollment."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call."
          }
        ]
      }
    },
    "/email_sends/{uuid}/actions/send_now": {
      "put": {
        "operationId": "send_queued_email_now",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "EmailSend resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend.jsonld-email_send.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSend-email_send.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`email_send_not_found`: The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`email_send_conflict`: The `reason` extension tells which: `not_sendable_now`: It is no longer queued (it started to leave, left, or was cancelled). `mailbox_limit_reached`: The sending limit of the mailbox is what delays it, so it cannot be brought forward.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nThe mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Release a queued email now",
        "description": "Brings forward an email that is still waiting (its 10-second undo window or its scheduled time) so it is released to Gmail immediately. The mailbox sending limits still apply.\n\n**When to use:** When the user asks to send now an email that is queued or scheduled. It reaches other people and skips the chance to undo, so confirm with the user.\n\n**When not to use:** To send a new email, use `send_email`. For a batch, use `send_queued_email_batch_now`. Nothing happens to an email that already started to leave.\n\n**Side effects:** Sets `release_at` to now and publishes the job without delay; the email leaves as soon as a background worker takes it, so check `state` with `get_email_send`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the author of the send can do it.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the send.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send now",
            "send scheduled email now",
            "skip undo",
            "send immediately",
            "release email"
          ],
          "es": [
            "enviar ahora",
            "enviar ya",
            "adelantar envío",
            "saltar el deshacer",
            "enviar inmediatamente"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "email_send_not_found",
            "meaning": "The send does not exist or was created by someone else. Sends are private to their author. Find it with `list_email_sends`."
          },
          {
            "status": 409,
            "code": "email_send_conflict",
            "meaning": "The `reason` extension tells which: `not_sendable_now`: It is no longer queued (it started to leave, left, or was cancelled). `mailbox_limit_reached`: The sending limit of the mailbox is what delays it, so it cannot be brought forward."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "The mailbox is busy (its sending lock could not be taken). Nothing changed; repeat the call."
          }
        ]
      }
    },
    "/sent_emails": {
      "get": {
        "operationId": "list_sent_emails",
        "tags": [
          "Email sends"
        ],
        "responses": {
          "200": {
            "description": "SentEmail collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SentEmail.jsonld-sent_email.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SentEmail-sent_email.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List emails sent from the CRM",
        "description": "Lists the emails that already left through the CRM and whose copy is visible in the record: the ones the user sent plus those sent from mailboxes where the user has full access. No content: subject, recipients, date and sender.\n\n**When to use:** To answer what was sent recently, to whom, or by whom.\n\n**When not to use:** For emails not sent yet (queued, scheduled, failed) use `list_email_sends`. To read the content or the history of a record, use the email read operations (`list_emails`).\n\n**Filters:** - `search`: text to look for (maximum 190 characters).\nSorting: newest first. Pagination: `page` and `itemsPerPage` (default 30, maximum 100); the total is returned in `hydra:totalItems`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the sent emails.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 190
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "proposal"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Emails per page. Default 30, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sent emails",
            "emails sent",
            "what did we send",
            "sent folder",
            "outgoing emails history"
          ],
          "es": [
            "emails enviados",
            "correos enviados",
            "qué hemos enviado",
            "bandeja de enviados",
            "historial de envíos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/email_sequences": {
      "get": {
        "operationId": "list_email_sequences",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSequence-email_sequence.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `status` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List email sequences",
        "description": "Lists the email sequences of the account, most recently edited first, with their state, number of emails and waits, running enrollments and published sender.\n\n**When to use:** To find a sequence by name or state before reading, editing, publishing or enrolling contacts in it, or to see which sequences are active.\n\n**When not to use:** To read the steps of one sequence use `get_email_sequence`: the list leaves them out. To see who is enrolled in a sequence use `list_email_sequence_enrollments`. For marketing emails to an audience use `list_campaigns`; for event-driven flows use `list_automations`.\n\n**Filters:** All filters are optional and combine with AND.\n- `search`: part of the title, case-insensitive; surrounding spaces are ignored (up to 120 characters).\n- `status`: only sequences in that state. Without it, archived sequences are NOT listed (ask for `status=archived` to see them); a sequence paused for commercial review (`commercial-paused`) is always listed.\nSorting: fixed, last edited first; there is no `order` parameter.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100), like the rest of the API; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Part of the title of the sequence, case-insensitive. Up to 120 characters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "demo"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only sequences in this state. Without it, archived sequences are not listed.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "active",
                "paused",
                "archived",
                "commercial-paused"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "active"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Sequences per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email sequence",
            "outreach sequence",
            "drip sequence",
            "sales cadence",
            "all sequences",
            "find a sequence",
            "active sequences",
            "outreach cadence"
          ],
          "es": [
            "secuencia de email",
            "secuencia de correos",
            "cadencia de ventas",
            "seguimiento automático",
            "todas las secuencias",
            "buscar una secuencia",
            "secuencias activas",
            "cadencias de seguimiento"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `status` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "201": {
            "description": "EmailSequence resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`title_invalid`: `title` is blank or longer than 120 characters after trimming spaces.\n\nA field is not valid: `title` missing, or `template` outside `blank` and `sales_follow_up`. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create an email sequence",
        "description": "Creates an email sequence in `draft` from a starting template: `blank` (one empty email) or `sales_follow_up` (three follow-up emails with two waits, written in the default language of the account). It is not published and nobody is contacted.\n\n**When to use:** To start a new sequence. Then fill it with `update_email_sequence_draft`, check it with `get_email_sequence_validation`, publish it with `publish_email_sequence` and enroll contacts with `enroll_contacts_in_email_sequence`.\n\n**When not to use:** To copy an existing sequence, with its attachments, use `duplicate_email_sequence`. A sequence is for personal follow-ups to known contacts: for a marketing email to an audience use `create_campaign`.\n\n**Side effects:** The draft is created with the default schedule (Monday to Friday, 09:00 to 18:00), threading on, exit on reply and on booked meeting on, and no sender. It belongs to the person who owns the token and an audit event `automation.sequence.created` is recorded. Nothing is published, enrolled or sent.\n\n**Permissions:** Requires the `automations.work` and `contacts.read` capabilities. The account must also have the CRM Pro plan.",
        "parameters": [],
        "requestBody": {
          "description": "The new EmailSequence resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create sequence",
            "new sequence",
            "start an email sequence",
            "build a follow-up cadence",
            "sales follow up playbook"
          ],
          "es": [
            "crear secuencia",
            "nueva secuencia",
            "empezar una secuencia de emails",
            "montar una cadencia de seguimiento",
            "guion de seguimiento comercial"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 422,
            "code": "title_invalid",
            "meaning": "`title` is blank or longer than 120 characters after trimming spaces."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid: `title` missing, or `template` outside `blank` and `sales_follow_up`. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/personalization_tags": {
      "get": {
        "operationId": "list_email_sequence_personalization_tags",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequencePersonalizationTag collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSequencePersonalizationTag.jsonld-email_sequence_personalization_tag.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSequencePersonalizationTag-email_sequence_personalization_tag.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List personalization tags for sequence emails",
        "description": "Lists the personalization tags an email of a sequence can use: fields of the contact, of the company of the contact and of the sender, such as the first name. The list depends on the attributes the account defined.\n\n**When to use:** Before writing the subject and body of an email: to know the valid tag ids to put in `data-email-tag-id` and in `variables`.\n\n**When not to use:** These tags only work in sequence emails; they are not the merge tags of campaigns (see merge tags). An unknown id stops the publication (`unknown_tag`). Opportunity tags do not exist in sequences.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sequence tags",
            "personalization fields",
            "merge fields for sequences",
            "variables of a sequence email",
            "first name tag"
          ],
          "es": [
            "etiquetas de la secuencia",
            "campos de personalización",
            "variables del email de la secuencia",
            "etiqueta de nombre",
            "campos para combinar"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/email_sequences/{uuid}": {
      "get": {
        "operationId": "get_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an email sequence",
        "description": "Reads one email sequence with its draft (steps, schedule, sender, exit rules), its published versions, its counts and whether the user can enroll contacts in it.\n\n**When to use:** Before editing: you need the current `draft_version` and the steps to send back whole to `update_email_sequence_draft`. Also to check `status`, `sender_problem` and `can_enroll` before enrolling contacts.\n\n**When not to use:** To find a sequence by name or state use `list_email_sequences`. The `steps` here are the DRAFT: to see exactly what already enrolled contacts receive, read the frozen version with `get_email_sequence_version`. To know whether the draft can be published, use `get_email_sequence_validation`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email sequence",
            "outreach sequence",
            "drip sequence",
            "sales cadence",
            "get sequence",
            "sequence steps",
            "sequence draft",
            "sequence details"
          ],
          "es": [
            "secuencia de email",
            "secuencia de correos",
            "cadencia de ventas",
            "seguimiento automático",
            "ver secuencia",
            "pasos de la secuencia",
            "borrador de la secuencia",
            "detalle de la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "202": {
            "description": "EmailSequence resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete an email sequence",
        "description": "Deletes a sequence for good: it disappears, its live enrollments end, the emails still queued are canceled and its content is purged in the background.\n\n**When to use:** Only when the sequence must not exist any more, for example a test or a mistake.\n\n**When not to use:** To keep it but stop it, use `pause_email_sequence`; to hide it without stopping the people in progress, `archive_email_sequence`. Deleting cannot be undone.\n\n**Side effects:** In one step the sequence is marked deleted and every live enrollment ends as manually excluded (`manual_exclusion`), canceling its queued email; an email that is being sent at that very moment may still leave. Afterwards, in the background, the draft, versions, attachments (and their storage) and the addresses of the recipients in those enrollments are emptied; counts and dates are kept. Contacts are not touched. The answer comes before the purge finishes.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete sequence",
            "remove sequence",
            "destroy sequence",
            "erase a sequence"
          ],
          "es": [
            "borrar secuencia",
            "eliminar secuencia",
            "quitar secuencia",
            "suprimir una secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/archive": {
      "put": {
        "operationId": "archive_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_state_conflict`: The sequence is already archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive an email sequence",
        "description": "Archives a sequence: it stops taking new enrollments and disappears from the default list. The people already enrolled KEEP receiving their emails.\n\n**When to use:** To retire a sequence you no longer want people to enter, without cutting the ones in progress.\n\n**When not to use:** Archiving does NOT stop emails. To stop them use `pause_email_sequence` (all) or `exclude_email_sequence_enrollment` (one person). To remove the sequence for good use `delete_email_sequence`. To bring it back, `restore_email_sequence`.\n\n**Side effects:** Entries close and the sequence leaves the default list (`list_email_sequences` shows it with `status=archived`). Live enrollments are not touched and go on sending. An `archived` entry is added to the activity.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "archive sequence",
            "retire sequence",
            "hide sequence",
            "close sequence to new contacts"
          ],
          "es": [
            "archivar secuencia",
            "retirar secuencia",
            "ocultar secuencia",
            "cerrar secuencia a nuevos contactos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "sequence_state_conflict",
            "meaning": "The sequence is already archived."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/duplicate": {
      "post": {
        "operationId": "duplicate_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "201": {
            "description": "EmailSequence resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`source_not_found`: The sequence to copy does not exist in this account. Find it with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_quota_exceeded`: The copied attachments would exceed the CRM Files storage of the account. Nothing was created. Free space or duplicate a sequence without attachments.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`title_invalid`: `title` is blank or longer than 120 characters after trimming spaces.\n\nA field is not valid. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_file_quota_busy`: The storage counters are busy. Nothing was created: retry in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Duplicate an email sequence",
        "description": "Creates a new `draft` sequence that is a copy of the draft of another one: same steps, schedule, sender, exit rules and attachments. Enrollments, published versions and statistics are not copied.\n\n**When to use:** To reuse a sequence as the base of another one, for example for a different audience or language.\n\n**When not to use:** To start from scratch or from a template use `create_email_sequence`. Duplicating does not enroll anybody and does not copy the people enrolled.\n\n**Side effects:** Every step gets a new `uuid`. Each attachment is copied as a new file of the new sequence, pointing at the same stored bytes, and counts again in the CRM Files storage of the account. The copy belongs to the person who owns the token and an audit event `automation.sequence.created` is recorded. Nothing is published, enrolled or sent.\n\n**Permissions:** Requires the `automations.work` and `contacts.read` capabilities. The account must also have the CRM Pro plan.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence to copy. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "requestBody": {
          "description": "The new EmailSequence resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceDuplicateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceDuplicateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "duplicate sequence",
            "copy a sequence",
            "clone sequence",
            "reuse a sequence"
          ],
          "es": [
            "duplicar secuencia",
            "copiar una secuencia",
            "clonar secuencia",
            "reutilizar una secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "source_not_found",
            "meaning": "The sequence to copy does not exist in this account. Find it with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The copied attachments would exceed the CRM Files storage of the account. Nothing was created. Free space or duplicate a sequence without attachments."
          },
          {
            "status": 503,
            "code": "crm_file_quota_busy",
            "meaning": "The storage counters are busy. Nothing was created: retry in a few seconds."
          },
          {
            "status": 422,
            "code": "title_invalid",
            "meaning": "`title` is blank or longer than 120 characters after trimming spaces."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/enroll": {
      "post": {
        "operationId": "enroll_contacts_in_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceEnrollmentRun resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceEnrollmentRun.jsonld-email_sequence_enrollment_run.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceEnrollmentRun-email_sequence_enrollment_run.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`sender_not_allowed`: The user who owns the token is not the owner of the mailbox of the sequence and has no send permission on it. Use the credentials of the owner, or ask the owner for the send permission. Nothing was enrolled.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_not_enrollable`: The sequence is not `active` (it is a draft, paused, archived or under commercial review). Publish or resume it first. Nothing was enrolled.\n\n`sequence_sender_missing`: The published version has no sender, so it takes no enrollments. Choose a sender in the draft and publish again.\n\n`sequence_sender_unavailable`: The mailbox of the sequence is disconnected or cannot send, or its signature is gone. Reconnect it, or change the sender and publish again. Nothing was enrolled.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`sequence_start_invalid`: `start` is neither `now` nor an ISO 8601 date and time with offset in the future.\n\n`contacts` is missing, empty, has more than 25 entries or an entry that is not a `/contacts/{uuid}` IRI. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Enroll contacts in an email sequence",
        "description": "Enrolls up to 25 contacts in an `active` sequence. Each one starts receiving the emails of the published version from the mailbox of the sequence, at their primary email address.\n\n**When to use:** When the user wants specific contacts to receive a sequence, right now or from a future date.\n\n**When not to use:** It only works on an `active` sequence with a sound sender (`can_enroll` in `get_email_sequence`): publish a draft with `publish_email_sequence`, or `resume_email_sequence` a paused one. To enroll many contacts split them in calls of 25. To take someone out, use `exclude_email_sequence_enrollment`. This is not a campaign: it does not subscribe anybody to an audience.\n\n**Side effects:** THIS REACHES PEOPLE. Each enrolled contact gets an enrollment and its first email is planned for the first slot the schedule allows from `start` (the schedule window, the mailbox limits and the account queue still apply: `now` does not mean this second). The request does not send anything itself: the emails are sent afterwards by Easymailing's background workers through the connected Gmail of the sender, as that person, from their address and with their signature, always with the unsubscribe footer; the next emails follow after each wait until the contact replies, books a meeting, bounces, unsubscribes or the sequence ends. An `enrolled` entry (with the person who enrolled) is added to the sequence activity. Contacts that unsubscribed or are already in another live sequence are skipped, never forced. Repeating a request is safe: a contact already enrolled comes back as `skipped` with `enrollment_conflict`, so nobody gets duplicate emails.\n\n**Permissions:** Requires the `automations.work` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The user who owns the token must own the mailbox the sequence sends from, or hold the send permission on it when it is shared; otherwise the answer is 403 `sender_not_allowed`. The user who enrolls and the owner of that mailbox also need a CRM seat and the `crm.contacts_companies.write` capability, which the engine checks while enrolling; without them the answer is 403 without code.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence the contacts enter. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "requestBody": {
          "description": "The new EmailSequenceEnrollmentRun resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequenceEnrollmentRun.EmailSequenceEnrollInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequenceEnrollmentRun.EmailSequenceEnrollInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "enroll contacts in a sequence",
            "add contact to sequence",
            "start sequence for a contact",
            "subscribe to sequence",
            "send the sequence to"
          ],
          "es": [
            "inscribir contactos en una secuencia",
            "añadir contacto a la secuencia",
            "empezar la secuencia para un contacto",
            "meter en la secuencia",
            "enviar la secuencia a"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 403,
            "code": "sender_not_allowed",
            "meaning": "The user who owns the token is not the owner of the mailbox of the sequence and has no send permission on it. Use the credentials of the owner, or ask the owner for the send permission. Nothing was enrolled."
          },
          {
            "status": 409,
            "code": "sequence_not_enrollable",
            "meaning": "The sequence is not `active` (it is a draft, paused, archived or under commercial review). Publish or resume it first. Nothing was enrolled."
          },
          {
            "status": 409,
            "code": "sequence_sender_missing",
            "meaning": "The published version has no sender, so it takes no enrollments. Choose a sender in the draft and publish again."
          },
          {
            "status": 409,
            "code": "sequence_sender_unavailable",
            "meaning": "The mailbox of the sequence is disconnected or cannot send, or its signature is gone. Reconnect it, or change the sender and publish again. Nothing was enrolled."
          },
          {
            "status": 422,
            "code": "sequence_start_invalid",
            "meaning": "`start` is neither `now` nor an ISO 8601 date and time with offset in the future."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`contacts` is missing, empty, has more than 25 entries or an entry that is not a `/contacts/{uuid}` IRI. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/pause": {
      "put": {
        "operationId": "pause_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_state_conflict`: The sequence is not `active` (it is a draft, already paused, archived or under commercial review), so it cannot be paused. Read its `status` with `get_email_sequence`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Pause an email sequence",
        "description": "Pauses an `active` sequence: it stops taking new enrollments AND stops sending to everybody already enrolled until it is resumed.\n\n**When to use:** To stop all emails of a sequence at once, for example after finding a mistake in its content, or while something is checked.\n\n**When not to use:** To stop emails to one person only, use `exclude_email_sequence_enrollment` (final) or `pause_email_sequence_enrollment`. To only stop new people from entering while the enrolled ones keep going, use `archive_email_sequence`. To bring it back, `resume_email_sequence`.\n\n**Side effects:** Entries close and no step is admitted while it lasts: the waits of the live enrollments are frozen at this moment and emails already queued are held. Nobody receives anything from this sequence until it is resumed. A `paused` entry is added to the sequence activity under the person who owns the token. Nothing is sent to anyone.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pause sequence",
            "stop sequence",
            "halt the emails of a sequence",
            "freeze sequence"
          ],
          "es": [
            "pausar secuencia",
            "parar secuencia",
            "detener los emails de la secuencia",
            "congelar secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "sequence_state_conflict",
            "meaning": "The sequence is not `active` (it is a draft, already paused, archived or under commercial review), so it cannot be paused. Read its `status` with `get_email_sequence`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/publish": {
      "post": {
        "operationId": "publish_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "201": {
            "description": "EmailSequence resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: `expected_draft_version` is not the current `draft_version`: the draft changed after you read it. Nothing was saved. Read it again with `get_email_sequence`, apply your change on top and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: The draft cannot be published. `violations[]` lists every problem with its `code` and, for a step, its `uuid` in `field`; the codes are the ones of `get_email_sequence_validation`. Fix them with `update_email_sequence_draft` and publish again.\n\n`expected_draft_version` is missing or not a positive integer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Publish an email sequence",
        "description": "Publishes the draft as a new immutable version. From then on it is the version every NEW enrollment uses; the first publication also leaves the sequence `active`, open to enrollments.\n\n**When to use:** When the draft is ready (`get_email_sequence_validation` returns no issues) and the user wants contacts to be able to enter it. Publish again after editing the draft of an `active` sequence to make the change count for new enrollments.\n\n**When not to use:** Publishing sends nothing: emails leave only for contacts enrolled with `enroll_contacts_in_email_sequence`. It does not change the enrollments already running, which stay on the version they entered with. To save changes without publishing use `update_email_sequence_draft`.\n\n**Side effects:** A new version (`published_revision` goes up by one, `draft_version` too) is stored with the draft as it is now, and an audit event `automation.version.published` is recorded. The first publication sets `status` to `active`. No email is sent, nobody is enrolled and running enrollments are untouched.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope). The user must also be able to send from the mailbox chosen as sender: the version stands on their send permission, and if the owner removes it later the sequence stops accepting enrollments (`sender_problem: not_allowed`) until someone with access publishes again.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "requestBody": {
          "description": "The new EmailSequence resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequencePublishInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequencePublishInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "publish sequence",
            "activate sequence",
            "go live sequence",
            "launch the sequence",
            "new version of the sequence"
          ],
          "es": [
            "publicar secuencia",
            "activar secuencia",
            "lanzar la secuencia",
            "poner en marcha la secuencia",
            "nueva versión de la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "`expected_draft_version` is not the current `draft_version`: the draft changed after you read it. Nothing was saved. Read it again with `get_email_sequence`, apply your change on top and retry."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "The draft cannot be published. `violations[]` lists every problem with its `code` and, for a step, its `uuid` in `field`; the codes are the ones of `get_email_sequence_validation`. Fix them with `update_email_sequence_draft` and publish again."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`expected_draft_version` is missing or not a positive integer."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/reactivate": {
      "put": {
        "operationId": "reactivate_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account still does not have CRM Pro. Upgrade the plan first; nothing was changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_state_conflict`: The sequence is not under commercial review (`commercial-paused`). Read its `status` with `get_email_sequence`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reactivate a commercially paused sequence",
        "description": "Reviews and reactivates a sequence that Easymailing paused (`status` `commercial-paused`) because the account lost CRM Pro, once the account has CRM Pro again. It returns to the state it had before the pause.\n\n**When to use:** When a sequence is `commercial-paused` and the account has CRM Pro again.\n\n**When not to use:** For a sequence a person paused use `resume_email_sequence`; this one only works on `commercial-paused`. It cannot be used while the account still lacks CRM Pro.\n\n**Side effects:** The sequence becomes `active` again unless someone had paused or archived it before. Nothing is retroactive: each enrollment continues from its step, and overdue emails pass through the schedule window, the send limits and the queue, so they do not leave in a burst. THIS CAN MAKE EMAILS LEAVE to people already enrolled. A `reactivated` entry is added to the activity.\n\n**Permissions:** Requires the `automations.manage` capability. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "reactivate sequence",
            "review and reactivate",
            "sequence paused by plan",
            "commercial pause",
            "lost CRM Pro"
          ],
          "es": [
            "reactivar secuencia",
            "revisar y reactivar",
            "secuencia pausada por el plan",
            "pausa comercial",
            "perdió CRM Pro"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability or its scope is below `account`. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account still does not have CRM Pro. Upgrade the plan first; nothing was changed."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "sequence_state_conflict",
            "meaning": "The sequence is not under commercial review (`commercial-paused`). Read its `status` with `get_email_sequence`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/restore": {
      "put": {
        "operationId": "restore_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_state_conflict`: The sequence is not archived.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore an archived email sequence",
        "description": "Brings an archived sequence back to the list. It returns closed to new enrollments (`paused`, or `draft` if it was never published).\n\n**When to use:** To recover an archived sequence. Then call `resume_email_sequence` if it should take enrollments again.\n\n**When not to use:** To resume a sequence that is merely paused use `resume_email_sequence`.\n\n**Side effects:** The sequence is listed again, still without taking new enrollments. A `restored` entry is added to the activity. Nothing is sent.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "restore sequence",
            "unarchive sequence",
            "bring back sequence",
            "recover archived sequence"
          ],
          "es": [
            "restaurar secuencia",
            "desarchivar secuencia",
            "recuperar secuencia archivada",
            "volver a mostrar secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "sequence_state_conflict",
            "meaning": "The sequence is not archived."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/actions/resume": {
      "put": {
        "operationId": "resume_email_sequence",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`sequence_state_conflict`: The sequence is not `paused` (it is a draft, already active, archived or under commercial review). Read its `status` with `get_email_sequence`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Resume a paused email sequence",
        "description": "Resumes a `paused` sequence: it takes new enrollments again and the people already enrolled start receiving their emails again.\n\n**When to use:** After `pause_email_sequence`, or to open a restored sequence (`restore_email_sequence` leaves it paused) that has a published version.\n\n**When not to use:** To bring back a sequence paused by Easymailing because the account lost CRM Pro (`commercial-paused`) use `reactivate_email_sequence`. To publish a draft use `publish_email_sequence`. To resume one enrollment use `resume_email_sequence_enrollment`.\n\n**Side effects:** Entries open again. Each live enrollment moves its next attempt forward by the length of the pause (never earlier than now) and then passes through the schedule window, the mailbox limits (5 minutes between emails of the same mailbox) and the account queue, so overdue emails do not leave in a burst. THIS CALL MAKES EMAILS LEAVE to people who are already enrolled, from the mailbox of the sender and as that person. A `resumed` entry is added to the sequence activity.\n\n**Permissions:** Requires the `automations.manage` and `contacts.read` capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the `account` or `admin` scope).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "resume sequence",
            "unpause sequence",
            "restart sequence",
            "continue the sequence"
          ],
          "es": [
            "reanudar secuencia",
            "reactivar tras pausa",
            "retomar secuencia",
            "continuar la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "sequence_state_conflict",
            "meaning": "The sequence is not `paused` (it is a draft, already active, archived or under commercial review). Read its `status` with `get_email_sequence`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/activity": {
      "get": {
        "operationId": "list_email_sequence_activity",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceActivity collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSequenceActivity.jsonld-email_sequence_activity.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSequenceActivity-email_sequence_activity.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`type` is outside the allowed values, `enrollment` is not a UUID, or `page` / `itemsPerPage` are outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the activity of an email sequence",
        "description": "Lists what happened in a sequence, newest first: contacts enrolled, emails sent, replies and other exits, pauses and resumptions, failures and retries, and changes of state of the sequence.\n\n**When to use:** To audit a sequence or an enrollment: who enrolled whom and when, what was sent, why someone left. Pass `enrollment` to see the history of one contact.\n\n**When not to use:** For the current state of each contact use `list_email_sequence_enrollments`; for totals, `get_email_sequence_statistics`. It is not the activity of a contact record (see `list_activities`), which also includes emails and meetings outside the sequence.\n\n**Filters:** All filters are optional and combine with AND.\n- `type`: only events of that type.\n- `enrollment`: only the events of that enrollment; an enrollment of another sequence gives an empty page.\nSorting: fixed, newest first.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100); the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability. Names and addresses of recipients are returned only to users who also have the `contacts.read` capability; without it `privacy` is `aggregate` and they are `null`. The linked `email` of a sent email or of a reply is returned only if the user may read that mailbox.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Only events of this type.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "enrolled",
                "email_sent",
                "exited",
                "completed",
                "paused",
                "resumed",
                "failed",
                "retried",
                "commercial_paused",
                "reactivated",
                "archived",
                "restored"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "email_sent"
          },
          {
            "name": "enrollment",
            "in": "query",
            "description": "UUID of an enrollment: only its events.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Events per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sequence activity",
            "sequence history",
            "sequence log",
            "what happened in the sequence",
            "emails sent by the sequence",
            "who replied"
          ],
          "es": [
            "actividad de la secuencia",
            "historial de la secuencia",
            "log de la secuencia",
            "qué ha pasado en la secuencia",
            "emails enviados por la secuencia",
            "quién ha respondido"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`type` is outside the allowed values, `enrollment` is not a UUID, or `page` / `itemsPerPage` are outside their range. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/assets/{assetUuid}": {
      "put": {
        "operationId": "upload_email_sequence_asset",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceAsset resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceAsset.jsonld-email_sequence_asset.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceAsset-email_sequence_asset.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`asset_conflict`: That `assetUuid` is already used with other bytes, in another sequence, or by an email attachment. Use a new UUID.\n\n`crm_file_quota_exceeded`: The file would not fit in the CRM Files storage of the account. Free space and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 20 MiB (20,971,520 bytes), the limit of the public API host. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB per file.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "`email_attachment_media_type_unsupported`: The `Content-Type` is not `application/octet-stream`. Nothing was read.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`email_send_rejected`: The file is refused; `reason` says why: `attachment_id_invalid` (`assetUuid` is not a UUID), `attachment_name_invalid` (`X-Attachment-Name` missing or invalid), `attachment_blocked_type` (a blocked extension or an executable), `attachment_too_large` (more than 25 MB; in practice the 20 MiB limit of the host answers 413 first) or `attachment_empty`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_file_quota_busy`: The storage counters are busy, or the database lost a deadlock. Nothing was stored: send the same request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Upload an attachment for a sequence",
        "description": "Uploads a file to a sequence under an `assetUuid` you choose, so that an email of the draft can attach it. The request body is the raw file, not JSON.\n\n**When to use:** Before referencing the file in a step: upload it here, then put its `assetUuid` as `asset_uuid` in `attachments` of that step with `update_email_sequence_draft`. Repeating the same request with the same bytes is safe: you get the same asset.\n\n**When not to use:** A file that is not an attachment of a sequence goes elsewhere: a document of a contact, company or opportunity through `create_file`, an attachment of a one-off email through `upload_email_attachment`. There is no multipart or base64 form, and an uploaded file cannot be changed or deleted: an asset no draft or version references is purged after 24 hours.\n\n**Side effects:** The file is stored in the private storage of the account before the answer and counts in the CRM Files storage of the account from that moment (unreferenced assets are purged after 24 hours and the space returned). A file is at most 20 MiB through the public API, and the attachments of one email at most 25 MB together (checked when the sequence is published). Each file is checked by its name and its real content: executables and the extensions Gmail blocks are refused. Nothing is sent and the draft is not changed until a step references the asset.\n\n**Permissions:** Requires the `automations.work` and `contacts.read` capabilities. The account must also have the CRM Pro plan.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "assetUuid",
            "in": "path",
            "description": "UUID you choose for the file; use it as `asset_uuid` in the step that attaches it. Generate a new UUID per file.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Always `application/octet-stream`. Any other value is refused with 415 before the body is read.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "application/octet-stream"
              ]
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "application/octet-stream"
          },
          {
            "name": "X-Attachment-Name",
            "in": "header",
            "description": "Name of the file, UTF-8 percent-encoded, up to 1,024 characters. Its extension decides the media type.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 1024
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "Price%20sheet%202026.pdf"
          }
        ],
        "requestBody": {
          "description": "The raw bytes of the file.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "upload sequence attachment",
            "attach a file to a sequence email",
            "sequence file",
            "sequence asset"
          ],
          "es": [
            "subir adjunto a la secuencia",
            "adjuntar un archivo a un email de la secuencia",
            "archivo de la secuencia",
            "adjunto de secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "asset_conflict",
            "meaning": "That `assetUuid` is already used with other bytes, in another sequence, or by an email attachment. Use a new UUID."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The file would not fit in the CRM Files storage of the account. Free space and retry."
          },
          {
            "status": 413,
            "code": null,
            "meaning": "The body is larger than 20 MiB (20,971,520 bytes), the limit of the public API host. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB per file."
          },
          {
            "status": 415,
            "code": "email_attachment_media_type_unsupported",
            "meaning": "The `Content-Type` is not `application/octet-stream`. Nothing was read."
          },
          {
            "status": 422,
            "code": "email_send_rejected",
            "meaning": "The file is refused; `reason` says why: `attachment_id_invalid` (`assetUuid` is not a UUID), `attachment_name_invalid` (`X-Attachment-Name` missing or invalid), `attachment_blocked_type` (a blocked extension or an executable), `attachment_too_large` (more than 25 MB; in practice the 20 MiB limit of the host answers 413 first) or `attachment_empty`."
          },
          {
            "status": 503,
            "code": "crm_file_quota_busy",
            "meaning": "The storage counters are busy, or the database lost a deadlock. Nothing was stored: send the same request again."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/draft": {
      "put": {
        "operationId": "update_email_sequence_draft",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequence resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence.jsonld-email_sequence.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequence-email_sequence.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.\n\n`entitlement_review_required`: The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: `expected_draft_version` is not the current `draft_version`: the draft changed after you read it. Nothing was saved. Read it again with `get_email_sequence`, apply your change on top and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: The draft cannot be saved. Read `violations[]`: `code` is `invalid_shape` (a step with missing or extra keys, a bad schedule, UUID or day count, repeated step `uuids`, or a follow-up with a subject while `threading` is on), `unknown_asset` (an attachment `asset_uuid` that was not uploaded to this sequence; `field` is the step), `sender_not_allowed` (you cannot send from the mailbox) or `signature_foreign` (the signature is not of that mailbox).\n\n`title_invalid`: `title` is blank or longer than 120 characters after trimming spaces.\n\nA top-level field is missing, null where it cannot be, or of the wrong type: `expected_draft_version` must be a positive integer. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Replace the draft of an email sequence",
        "description": "Replaces the title and the whole draft of a sequence: sending options, sender, exit rules and ALL its steps. The draft may be incomplete; what stops it from being published is only checked by the validation and the publication.\n\n**When to use:** To write or change a sequence: read it with `get_email_sequence`, change what you need and send back everything, with the `draft_version` you read as `expected_draft_version`.\n\n**When not to use:** It is a full replacement, not a partial update: any step you leave out is deleted and every field is required. To publish what you saved use `publish_email_sequence`; to find out what would stop the publication use `get_email_sequence_validation`. To attach a file, upload it first with `upload_email_sequence_asset`. To choose the sender, take the mailbox and signature from `list_email_senders`. It does not change who is enrolled.\n\n**Side effects:** The title and the draft are replaced and `draft_version` goes up by one; an audit event `automation.sequence.draft_saved` is recorded. The published version, the enrollments already running and the emails already queued are NOT changed: new enrollments keep using the published version until you call `publish_email_sequence`. Nothing is sent. Each step must carry exactly the keys listed under `steps`; a missing or extra key is `validation_failed` with `invalid_shape`.\n\n**Filters:** Rules that are checked on save (the rest wait for the publication): at most 60 steps and 20 emails; every step `uuid` is a distinct lowercase UUID; a `wait` has 1 to 365 days; with `threading` on, every email after the first has `subject: null`; `schedule.start` is earlier than `schedule.end` and both are `HH:00` or `HH:30`; `time_zone` is an IANA zone; the draft is at most 256 KB. The `sender` is only checked when it changes: you must own the mailbox or hold its send permission, and the signature must belong to it.\n\n**Permissions:** Requires the `automations.work` and `contacts.read` capabilities. The account must also have the CRM Pro plan.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "requestBody": {
          "description": "The updated EmailSequence resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceDraftInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSequence.EmailSequenceDraftInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit sequence",
            "update sequence",
            "write sequence emails",
            "save sequence draft",
            "change sequence steps",
            "set sequence sender"
          ],
          "es": [
            "editar secuencia",
            "actualizar secuencia",
            "escribir los emails de la secuencia",
            "guardar borrador de la secuencia",
            "cambiar pasos de la secuencia",
            "elegir remitente de la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` and `contacts.read` capabilities. Ask an administrator, or use a key or token that has them; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 403,
            "code": "entitlement_review_required",
            "meaning": "The sequence is paused for a commercial review (status `commercial-paused`) because the account lost CRM Pro, and it cannot be changed until `reactivate_email_sequence` is called once the account has CRM Pro again."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "`expected_draft_version` is not the current `draft_version`: the draft changed after you read it. Nothing was saved. Read it again with `get_email_sequence`, apply your change on top and retry."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "The draft cannot be saved. Read `violations[]`: `code` is `invalid_shape` (a step with missing or extra keys, a bad schedule, UUID or day count, repeated step `uuids`, or a follow-up with a subject while `threading` is on), `unknown_asset` (an attachment `asset_uuid` that was not uploaded to this sequence; `field` is the step), `sender_not_allowed` (you cannot send from the mailbox) or `signature_foreign` (the signature is not of that mailbox)."
          },
          {
            "status": 422,
            "code": "title_invalid",
            "meaning": "`title` is blank or longer than 120 characters after trimming spaces."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A top-level field is missing, null where it cannot be, or of the wrong type: `expected_draft_version` must be a positive integer. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/enrollments": {
      "get": {
        "operationId": "list_email_sequence_enrollments",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceEnrollment collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailSequenceEnrollment.jsonld-email_sequence_enrollment.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailSequenceEnrollment-email_sequence_enrollment.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`search` is longer than 200 characters, or `page` / `itemsPerPage` are outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the enrollments of an email sequence",
        "description": "Lists the contacts enrolled in a sequence, newest first, with the state of each enrollment, its next email and send time and, when finished, why.\n\n**When to use:** To see who is in a sequence and how each is going, to find the `uuid` of an enrollment before pausing, resuming, excluding or retrying it, or to check that `enroll_contacts_in_email_sequence` worked.\n\n**When not to use:** For the history of events (emails sent, replies, pauses) use `list_email_sequence_activity`. For totals use `get_email_sequence_statistics`. This lists one sequence at a time: there is no operation that lists the sequences a given contact is in.\n\n**Filters:** - `search`: part of the name or address of the recipient, case-insensitive (up to 200 characters). Ignored without the `contacts.read` capability, because it would reveal who is enrolled.\nSorting: fixed, newest first.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100); the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability. Names and addresses of recipients are returned only to users who also have the `contacts.read` capability; without it `privacy` is `aggregate` and they are `null`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Part of the name or address of the recipient. Ignored without the `contacts.read` capability.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Enrollments per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sequence recipients",
            "who is in the sequence",
            "enrolled contacts",
            "sequence enrollments",
            "sequence progress"
          ],
          "es": [
            "destinatarios de la secuencia",
            "quién está en la secuencia",
            "contactos inscritos",
            "inscripciones de la secuencia",
            "progreso de la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`search` is longer than 200 characters, or `page` / `itemsPerPage` are outside their range. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/exclude": {
      "put": {
        "operationId": "exclude_email_sequence_enrollment",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "204": {
            "description": "EmailSequenceEnrollment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.\n\n`enrollment_not_found`: The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`enrollment_state_conflict`: The enrollment already finished. Read its `status` in `list_email_sequence_enrollments`.\n\n`enrollment_effect_in_flight`: An email of this enrollment is being sent right now. Try again in a minute.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Take a contact out of a sequence",
        "description": "Ends one live enrollment for good (exit reason `manual_exclusion`): the contact gets no more emails from this sequence and a queued email is canceled.\n\n**When to use:** To remove a contact from a sequence, for example because they asked, a deal closed or the emails no longer apply. Also for an enrollment in `technical-error` that you do not want to retry.\n\n**When not to use:** To hold the emails for a while without ending it use `pause_email_sequence_enrollment`. To stop everybody use `pause_email_sequence`. It cannot be undone, but the contact can be enrolled again with `enroll_contacts_in_email_sequence` (it counts as a re-entry). It does not unsubscribe the contact from anything else.\n\n**Side effects:** The enrollment finishes as `excluded` and its queued email is canceled; an email being sent at that very moment is not cut (you get 409 `enrollment_effect_in_flight`: retry in a minute). The contact and their other sequences, audiences and activity are not touched. An `exited` entry with reason `manual_exclusion` and the person who acted is added to the activity.\n\n**Permissions:** Requires the `automations.work` capability. Only the sender of the enrollment (the owner of the sequence's mailbox) or a user with the `automations.manage` capability can act on it; anyone else gets 403. A manager acts without access to the mailbox or to the contact.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "enrollmentUuid",
            "in": "path",
            "description": "UUID of the enrollment. Get it from `list_email_sequence_enrollments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "exclude contact from sequence",
            "remove contact from sequence",
            "unenroll",
            "stop sequence for a contact",
            "cancel an enrollment"
          ],
          "es": [
            "excluir contacto de la secuencia",
            "sacar a un contacto de la secuencia",
            "dar de baja de la secuencia",
            "parar la secuencia para un contacto",
            "cancelar una inscripción"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 404,
            "code": "enrollment_not_found",
            "meaning": "The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`."
          },
          {
            "status": 409,
            "code": "enrollment_state_conflict",
            "meaning": "The enrollment already finished. Read its `status` in `list_email_sequence_enrollments`."
          },
          {
            "status": 409,
            "code": "enrollment_effect_in_flight",
            "meaning": "An email of this enrollment is being sent right now. Try again in a minute."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/pause": {
      "put": {
        "operationId": "pause_email_sequence_enrollment",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "204": {
            "description": "EmailSequenceEnrollment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.\n\n`enrollment_not_found`: The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`enrollment_state_conflict`: The enrollment already finished or is already paused. Read its `status` in `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Pause one enrollment",
        "description": "Pauses one live enrollment: its next email waits until the enrollment is resumed. The rest of the sequence goes on.\n\n**When to use:** To hold the emails to one person, for example because they asked for time, without removing them.\n\n**When not to use:** To stop for good use `exclude_email_sequence_enrollment`. To stop the whole sequence use `pause_email_sequence`. To undo, `resume_email_sequence_enrollment`.\n\n**Side effects:** The enrollment becomes `paused`, its next send time is cleared and nothing leaves for it until it is resumed. A `paused` entry with the person who acted is added to the activity. Nothing is sent.\n\n**Permissions:** Requires the `automations.work` capability. Only the sender of the enrollment (the owner of the sequence's mailbox) or a user with the `automations.manage` capability can act on it; anyone else gets 403. A manager acts without access to the mailbox or to the contact.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "enrollmentUuid",
            "in": "path",
            "description": "UUID of the enrollment. Get it from `list_email_sequence_enrollments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pause enrollment",
            "hold a contact in the sequence",
            "pause one recipient",
            "stop emails to one contact for now"
          ],
          "es": [
            "pausar inscripción",
            "retener a un contacto en la secuencia",
            "pausar un destinatario",
            "parar los emails a un contacto por ahora"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 404,
            "code": "enrollment_not_found",
            "meaning": "The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`."
          },
          {
            "status": 409,
            "code": "enrollment_state_conflict",
            "meaning": "The enrollment already finished or is already paused. Read its `status` in `list_email_sequence_enrollments`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/resume": {
      "put": {
        "operationId": "resume_email_sequence_enrollment",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "204": {
            "description": "EmailSequenceEnrollment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.\n\n`enrollment_not_found`: The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`enrollment_state_conflict`: The enrollment is not paused, or it already finished. Read its `status` in `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Resume one paused enrollment",
        "description": "Resumes an enrollment paused by a person or by an automatic reply (out of office): its next email may go again.\n\n**When to use:** After `pause_email_sequence_enrollment`, or when an out-of-office reply paused it (`status` `automatic-reply`) and the person is back.\n\n**When not to use:** To resume the whole sequence use `resume_email_sequence`. It does not work on finished enrollments; to enroll the contact again use `enroll_contacts_in_email_sequence`.\n\n**Side effects:** THIS CAN MAKE AN EMAIL LEAVE: the next email of this contact is released within a second, still subject to the schedule window, the send limits and the queue. A `resumed` entry with the person who acted is added to the activity.\n\n**Permissions:** Requires the `automations.work` capability. Only the sender of the enrollment (the owner of the sequence's mailbox) or a user with the `automations.manage` capability can act on it; anyone else gets 403. A manager acts without access to the mailbox or to the contact.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "enrollmentUuid",
            "in": "path",
            "description": "UUID of the enrollment. Get it from `list_email_sequence_enrollments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "resume enrollment",
            "unpause a recipient",
            "continue emails to a contact",
            "restart one contact in the sequence"
          ],
          "es": [
            "reanudar inscripción",
            "reactivar a un destinatario",
            "continuar los emails a un contacto",
            "retomar un contacto en la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 404,
            "code": "enrollment_not_found",
            "meaning": "The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`."
          },
          {
            "status": 409,
            "code": "enrollment_state_conflict",
            "meaning": "The enrollment is not paused, or it already finished. Read its `status` in `list_email_sequence_enrollments`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/retry": {
      "put": {
        "operationId": "retry_email_sequence_enrollment",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "204": {
            "description": "EmailSequenceEnrollment resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`economic_entitlement_unavailable`: The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.\n\n`enrollment_not_found`: The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`enrollment_state_conflict`: The enrollment is not in `technical-error`, or its email is not retryable, or it already finished. Read its `status` in `list_email_sequence_enrollments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Retry the failed email of an enrollment",
        "description": "Retries the step that blocked an enrollment in `technical-error`: the failed email is queued again with the same content.\n\n**When to use:** When an enrollment shows `technical-error` after an email failed to send (for example the mailbox was disconnected or Gmail refused it) and the cause is fixed.\n\n**When not to use:** It only works on an enrollment in `technical-error`. If the email should not go at all, use `exclude_email_sequence_enrollment`. It does not retry emails of other enrollments.\n\n**Side effects:** THIS CAN MAKE AN EMAIL LEAVE: the failed email is put back in the send queue after the answer and sent by the background workers, subject to the schedule window and the limits. A `retried` entry with the person who acted is added to the activity.\n\n**Permissions:** Requires the `automations.work` capability. Only the sender of the enrollment (the owner of the sequence's mailbox) or a user with the `automations.manage` capability can act on it; anyone else gets 403. A manager acts without access to the mailbox or to the contact.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "enrollmentUuid",
            "in": "path",
            "description": "UUID of the enrollment. Get it from `list_email_sequence_enrollments`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "retry enrollment",
            "retry failed sequence email",
            "resend failed email",
            "fix technical error in sequence"
          ],
          "es": [
            "reintentar inscripción",
            "reintentar el email fallido de la secuencia",
            "reenviar email fallido",
            "error técnico en la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The user is neither the sender of the enrollment nor holds `automations.manage`, or the token lacks the `automations.work` capability. Use the credentials of the sender or of a manager."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "economic_entitlement_unavailable",
            "meaning": "The account does not have the CRM Pro plan, or it is not on the new Customer App, and email sequences can only be changed with it. Reads keep working. Nothing was changed; an administrator has to upgrade the plan."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 404,
            "code": "enrollment_not_found",
            "meaning": "The sequence or the enrollment does not exist, or the enrollment belongs to another sequence. Find it with `list_email_sequence_enrollments`."
          },
          {
            "status": 409,
            "code": "enrollment_state_conflict",
            "meaning": "The enrollment is not in `technical-error`, or its email is not retryable, or it already finished. Read its `status` in `list_email_sequence_enrollments`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/statistics": {
      "get": {
        "operationId": "get_email_sequence_statistics",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceStatistics resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceStatistics.jsonld-email_sequence_statistics.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceStatistics-email_sequence_statistics.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`timezone` is not a valid IANA time zone.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the statistics of an email sequence",
        "description": "Reads the numbers of a sequence: how its enrollments ended, how many emails were sent and how many replies each email got, and a daily series of sends and replies for the last 30 days.\n\n**When to use:** To answer how a sequence is performing: reply rate, emails sent, where people reply.\n\n**When not to use:** It has no opens or clicks (they are not tracked in sequence emails). For who is in the sequence and what happened to each person use `list_email_sequence_enrollments` and `list_email_sequence_activity`. For a campaign use its own report.\n\n**Filters:** `timezone` sets the time zone whose days group `daily` (UTC when omitted). The series always has 30 entries, ending today in that zone.\n\n**Permissions:** Requires the `automations.read` capability. It contains only counts, no data of any recipient, so it does not need `contacts.read`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "timezone",
            "in": "query",
            "description": "IANA time zone whose days group the daily series. Default UTC.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Europe/Madrid"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sequence statistics",
            "sequence stats",
            "reply rate",
            "sequence performance",
            "sequence report",
            "how is the sequence doing"
          ],
          "es": [
            "estadísticas de la secuencia",
            "métricas de la secuencia",
            "tasa de respuesta",
            "rendimiento de la secuencia",
            "informe de la secuencia",
            "cómo va la secuencia"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`timezone` is not a valid IANA time zone."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/validation": {
      "get": {
        "operationId": "get_email_sequence_validation",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceValidation resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceValidation.jsonld-email_sequence_validation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceValidation-email_sequence_validation.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Check if an email sequence can be published",
        "description": "Lists the problems of the SAVED draft that would stop it from being published, with exactly the rules of the publication (and the sender check for the user who asks). An empty list means it can be published.\n\n**When to use:** After `update_email_sequence_draft` and before `publish_email_sequence`, to fix every problem in one go instead of one rejected publication at a time.\n\n**When not to use:** It reads the saved draft, not what you are about to send: save first. It does not publish anything; to publish use `publish_email_sequence`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "validate sequence",
            "check sequence",
            "can I publish the sequence",
            "sequence problems",
            "sequence errors before publishing"
          ],
          "es": [
            "validar secuencia",
            "revisar secuencia",
            "puedo publicar la secuencia",
            "problemas de la secuencia",
            "errores antes de publicar"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_email_sequences`."
          }
        ]
      }
    },
    "/email_sequences/{uuid}/versions/{revision}": {
      "get": {
        "operationId": "get_email_sequence_version",
        "tags": [
          "Email sequences"
        ],
        "responses": {
          "200": {
            "description": "EmailSequenceVersion resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceVersion.jsonld-email_sequence_version.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSequenceVersion-email_sequence_version.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`sequence_not_found`: The sequence does not exist in this account, or that `revision` was never published. Read `versions` in `get_email_sequence`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a published version of an email sequence",
        "description": "Reads the frozen content of one published version of a sequence: its steps, schedule, sender and exit rules exactly as they were published.\n\n**When to use:** To see what contacts enrolled in that version actually receive (the `revision` of an enrollment says which), or to compare with the draft.\n\n**When not to use:** To read the draft you are editing use `get_email_sequence`. To list the revisions that exist read `versions` there.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email sequence. Get it from `list_email_sequences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          {
            "name": "revision",
            "in": "path",
            "description": "Revision number of the version, starting at 1. See `versions` in `get_email_sequence`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": 2
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sequence version",
            "published version",
            "what did the sequence send",
            "frozen sequence",
            "sequence revision"
          ],
          "es": [
            "versión de la secuencia",
            "versión publicada",
            "qué envía la secuencia",
            "revisión de la secuencia",
            "contenido publicado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "sequence_not_found",
            "meaning": "The sequence does not exist in this account, or that `revision` was never published. Read `versions` in `get_email_sequence`."
          }
        ]
      }
    },
    "/email_access_grantees": {
      "get": {
        "operationId": "list_email_access_grantees",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "EmailAccessGrantee collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailAccessGrantee.jsonld-email_access_grantee.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailAccessGrantee-email_access_grantee.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List who emails can be shared with",
        "description": "Lists the active members with a CRM seat and the teams of the account to whom the owner of a mailbox can give access to their emails, members first. Only name, email, photo and size of the team are returned, never anything from the emails.\n\n**When to use:** To get the UUIDs to send in `users` and `teams` of `set_email_access_grants`.\n\n**When not to use:** It is not the list of people who already have access: use `get_email_access_grants`. It is not a directory of users for assigning work: assignees of tasks come from `list_task_assignees`.\n\n**Filters:** No filters and no pagination: everything comes in one response.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. The list is only filled for users who own a connected mailbox with Email active; for anyone else it is empty.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "share with",
            "people to share emails with",
            "teams",
            "grantees",
            "who can i share with"
          ],
          "es": [
            "compartir con",
            "personas con las que compartir",
            "equipos",
            "con quién compartir correos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/email_mailboxes": {
      "get": {
        "operationId": "list_email_mailboxes",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "EmailMailbox collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmailMailbox.jsonld-email_mailbox.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailMailbox-email_mailbox.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the readable mailboxes",
        "description": "Lists the connected Gmail mailboxes whose emails the user can read: the user's own and the ones whose owners shared them with the account, sorted by address.\n\n**When to use:** To get the UUID of a mailbox to use as the `mailbox` filter of `list_emails`, or to tell the user which inboxes feed the emails they see.\n\n**When not to use:** It does not list who is connected nor manage connections: connecting, disconnecting and sharing a whole mailbox are done by its owner in Email and calendar settings of the app. To change who can read a single email, use `set_email_access_grants`.\n\n**Filters:** No filters and no pagination: all readable mailboxes come in one response.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Any user with a CRM seat who can read contacts and companies (or opportunities) gets the list; it only contains mailboxes the user can read, never the rest.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "mailboxes",
            "connected inboxes",
            "gmail accounts",
            "email accounts connected",
            "which mailbox"
          ],
          "es": [
            "buzones",
            "buzones conectados",
            "cuentas de gmail",
            "bandejas de entrada",
            "qué buzón"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/emails": {
      "get": {
        "operationId": "list_emails",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "Email collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Email.jsonld-email.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Email-email.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.\n\n`crm_email_invalid_filters`: `search` is longer than 200 characters or not valid UTF-8, `occurred_from` or `occurred_to` is not a `YYYY-MM-DD` date (or `occurred_to` is before `occurred_from`), `direction` is not `incoming` or `outgoing`, or `mailbox` is not a UUID.\n\n`crm_email_invalid_cursor`: `cursor[gt]` is malformed, was issued for another record, another user or other filters. Start again from the first page, or follow `hydra:next` unchanged.\n\n`itemsPerPage` is outside 1 to 100, or a record parameter is longer than 36 characters. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the emails of a record",
        "description": "Lists the emails synchronized from connected Gmail mailboxes that belong to one contact, company or opportunity, newest first. Each email carries only what the user is allowed to see of it: participants and date, plus subject, snippet and attachment count when the user has full access. Bodies are not included; open one with `get_email`.\n\n**When to use:** To see the email history with a person or company before a call or follow-up, or to find the email where something was agreed.\n\n**When not to use:** You must name the record: there is no list of every email of the account. To read the body and attachments of one email, use `get_email`. To see which mailboxes can be filtered, use `list_email_mailboxes`. For everything that happened on the record (emails, notes, calls, stage changes), not just emails, use `list_activities`.\n\n**Side effects:** Read-only for your data, with one background effect: emails of the page whose content is still `index_only` are queued to be downloaded from Gmail (their `content_state` becomes `hydrating`). Nothing is sent to anyone. If the user has no connected mailbox, or none that is readable, the list is simply empty with `hydra:totalItems` 0.\n\n**Filters:** Exactly one of `contact`, `company` or `opportunity` is required, with the UUID of the record. Which emails belong to a record: for a contact, those whose sender or recipient is one of its email addresses (main or alias, exact match); for a company, those with a participant outside the account on one of its domains (public, disposable and prohibited domains never identify a company); for an opportunity, those with a participant that is exactly one of its contacts' addresses, only while the opportunity was open (from its creation to its close and again from a reopening). `search` looks only in what the user may see. `occurred_from` and `occurred_to` are UTC days, both inclusive. `direction` and `mailbox` narrow by direction and by holding mailbox. The order is fixed (newest first); there is no `order` parameter.\nPagination: pages by `itemsPerPage` (default 30, maximum 100) and an opaque `cursor[gt]`: call again with the `cursor[gt]` of the `hydra:next` link, with the same record and filters, and keep following `hydra:next` until a page comes back empty. `hydra:totalItems` is the number of emails of the whole result for this user, counted on the first page and carried inside the cursor, so it does not change between pages.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Reading the emails of an opportunity needs the `crm.opportunities.read` capability instead (it is always granted together with `crm.contacts_companies.read`) and read access to the pipeline of the opportunity. Only emails held by a mailbox the user owns, or one whose owner shared it with the user, can be seen at all, and each email shows only what the sharing level of that mailbox allows. Being the owner or assignee of a record gives no extra access to its emails.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: the emails of that record. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: the emails of that record. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of a opportunity: the emails of that record. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for, up to 200 characters. It searches only what the user may see of each email: participants and subject, plus body and attachment names for emails with `full_access`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "annual plan"
          },
          {
            "name": "occurred_from",
            "in": "query",
            "description": "First day to include (UTC, inclusive), as `YYYY-MM-DD`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-10-01"
          },
          {
            "name": "occurred_to",
            "in": "query",
            "description": "Last day to include (UTC, inclusive), as `YYYY-MM-DD`. Not before `occurred_from`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-10-31"
          },
          {
            "name": "direction",
            "in": "query",
            "description": "Only received (`incoming`) or only sent (`outgoing`) emails.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/EmailDirection"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "incoming"
          },
          {
            "name": "mailbox",
            "in": "query",
            "description": "UUID of a mailbox, from `list_email_mailboxes`: only emails held by it. A mailbox the user cannot read yields no emails, not an error.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Emails per page. Default 30, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same record and the same filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxfQ"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "emails",
            "email history",
            "emails with a contact",
            "emails of a company",
            "emails of a deal",
            "conversation",
            "gmail messages",
            "correspondence",
            "emails of a record",
            "email thread"
          ],
          "es": [
            "correos",
            "emails de un contacto",
            "historial de correos",
            "correos de la empresa",
            "correos del negocio",
            "conversación",
            "mensajes de gmail",
            "qué le escribimos",
            "hilo de correos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          },
          {
            "status": 422,
            "code": "crm_email_invalid_filters",
            "meaning": "`search` is longer than 200 characters or not valid UTF-8, `occurred_from` or `occurred_to` is not a `YYYY-MM-DD` date (or `occurred_to` is before `occurred_from`), `direction` is not `incoming` or `outgoing`, or `mailbox` is not a UUID."
          },
          {
            "status": 422,
            "code": "crm_email_invalid_cursor",
            "meaning": "`cursor[gt]` is malformed, was issued for another record, another user or other filters. Start again from the first page, or follow `hydra:next` unchanged."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`itemsPerPage` is outside 1 to 100, or a record parameter is longer than 36 characters. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/emails/{emailUuid}/attachments/{uuid}/content": {
      "get": {
        "operationId": "get_email_attachment_content",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "The bytes of the attachment, as an attachment. `Content-Type` is the type the sender declared when it is safe, otherwise `application/octet-stream`.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The email is not part of that record for this user, the user has no `full_access` to it, or the attachment is not part of the email. Check the UUIDs with `get_email`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_email_attachment_unavailable`: No mailbox the user can use retrieves it from Google any more (the message was deleted or access was lost). The email stays; the file cannot be recovered.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "`crm_email_attachment_throttled`: Too many downloads at once or too fast. Wait the seconds given in the `Retry-After` header and repeat; nothing was requested from Google.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "When to retry: seconds to wait for the error of this operation listed with a code; for the limit of the API key, a moment as `Y-m-d H:i:s` in the server time zone.",
                "schema": {
                  "type": "string",
                  "example": "30"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window of the API key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_email_attachment_rate_limited`: Google is limiting reads from this mailbox. Repeat after the seconds given in `Retry-After` (about a minute).\n\n`crm_email_attachment_provider_unavailable`: Google is not responding. Repeat after the seconds given in `Retry-After` (about a minute).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Download an email attachment",
        "description": "Downloads the bytes of one attachment of a synchronized email, read from Google at that moment. The response is the raw file, always as an attachment, not JSON.\n\n**When to use:** To get a file the sender attached to an email, after finding its `uuid` in the `attachments` of `get_email`.\n\n**When not to use:** Embedded images of the body are not downloaded here: use `get_email_inline_images`. Files stored in the CRM (not in Gmail) are other operations. Attachments are not kept by Easymailing: if Google no longer has the message, the download fails.\n\n**Side effects:** Calls the Google API inside the request and streams the answer as it arrives; nothing is stored. It spends Gmail quota of the mailbox owner. Each person can have 2 downloads at once and each mailbox 4, with a per-minute rate (60 per person, 150 per mailbox); above it the answer is a 429 before Google is called. The response carries `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` and a sandboxing `Content-Security-Policy`; the `Content-Type` is the one the sender declared only when it is a safe type, otherwise `application/octet-stream`, and `Content-Length` is the declared size when Google gave it. A download that Google cuts in the middle ends shorter than `Content-Length`, so check the length before trusting the file.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Reading the emails of an opportunity needs the `crm.opportunities.read` capability instead (it is always granted together with `crm.contacts_companies.read`) and read access to the pipeline of the opportunity. It also needs `full_access` to the email through at least one readable mailbox. Only emails held by a mailbox the user owns, or one whose owner shared it with the user, can be seen at all, and each email shows only what the sharing level of that mailbox allows. Being the owner or assignee of a record gives no extra access to its emails.",
        "parameters": [
          {
            "name": "emailUuid",
            "in": "path",
            "description": "UUID of the email. Get it from `list_emails` or `get_email`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the attachment. Get it from `attachments[].uuid` in `get_email`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d4e3f0a6-74c9-4b31-a028-9fbc4e6d3157"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "download attachment",
            "email attachment",
            "get attached file",
            "pdf from email",
            "attachment content"
          ],
          "es": [
            "descargar adjunto",
            "adjunto del correo",
            "archivo adjunto",
            "pdf del email",
            "contenido del adjunto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The email is not part of that record for this user, the user has no `full_access` to it, or the attachment is not part of the email. Check the UUIDs with `get_email`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          },
          {
            "status": 409,
            "code": "crm_email_attachment_unavailable",
            "meaning": "No mailbox the user can use retrieves it from Google any more (the message was deleted or access was lost). The email stays; the file cannot be recovered."
          },
          {
            "status": 429,
            "code": "crm_email_attachment_throttled",
            "meaning": "Too many downloads at once or too fast. Wait the seconds given in the `Retry-After` header and repeat; nothing was requested from Google."
          },
          {
            "status": 503,
            "code": "crm_email_attachment_rate_limited",
            "meaning": "Google is limiting reads from this mailbox. Repeat after the seconds given in `Retry-After` (about a minute)."
          },
          {
            "status": 503,
            "code": "crm_email_attachment_provider_unavailable",
            "meaning": "Google is not responding. Repeat after the seconds given in `Retry-After` (about a minute)."
          }
        ]
      }
    },
    "/emails/{uuid}": {
      "get": {
        "operationId": "get_email",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "Email resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Email.jsonld-email.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Email-email.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an email with its body",
        "description": "Gets one synchronized email as the user may see it: participants, date, subject and, with full access, the cleaned HTML and plain-text body and the list of attachments.\n\n**When to use:** To read what an email says, after finding it with `list_emails`, or to know which attachments it has before downloading one.\n\n**When not to use:** To find emails, use `list_emails`. To download an attachment, use `get_email_attachment_content`. To show the images embedded in `body_html`, use `get_email_inline_images`. This operation only reads; it cannot write, reply to or forward an email.\n\n**Side effects:** Read-only. If the content of the email is still `index_only`, it is queued to be downloaded from Gmail and `content_state` is `hydrating` until the background job finishes: read it again after a moment.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Reading the emails of an opportunity needs the `crm.opportunities.read` capability instead (it is always granted together with `crm.contacts_companies.read`) and read access to the pipeline of the opportunity. Only emails held by a mailbox the user owns, or one whose owner shared it with the user, can be seen at all, and each email shows only what the sharing level of that mailbox allows. Being the owner or assignee of a record gives no extra access to its emails. Body, snippet and attachments need `full_access` to the email; below that they come as `null`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email. Get it from `list_emails`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "read email",
            "open email",
            "email body",
            "email content",
            "email attachments",
            "message text"
          ],
          "es": [
            "leer correo",
            "abrir email",
            "cuerpo del correo",
            "contenido del email",
            "adjuntos del correo",
            "texto del mensaje"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          }
        ]
      }
    },
    "/emails/{uuid}/access_grants": {
      "get": {
        "operationId": "get_email_access_grants",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "EmailAccessGrants resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAccessGrants.jsonld-email_access_grants.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAccessGrants-email_access_grants.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get who an email is shared with",
        "description": "Shows the people and teams the owner of the mailbox has given full read access to, either to this one email or to all the emails of the record it was reached through, and the addresses or domains of the record not yet covered by that second grant.\n\n**When to use:** Before changing the sharing with `set_email_access_grants`, or to answer who else can read this email.\n\n**When not to use:** It does not show who can read the mailbox as a whole or who can send from it. To change the sharing, use `set_email_access_grants`. To pick people or teams to share with, use `list_email_access_grantees`. Only the owner of a mailbox that holds the email can see or change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Only the owner of a mailbox that holds the email can see or change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist. Reading the emails of an opportunity needs the `crm.opportunities.read` capability instead (it is always granted together with `crm.contacts_companies.read`) and read access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email. Get it from `list_emails`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email sharing",
            "who can read this email",
            "email access",
            "shared emails",
            "email permissions",
            "who can see this email"
          ],
          "es": [
            "compartir correo",
            "quién puede leer este correo",
            "acceso al email",
            "correos compartidos",
            "permisos del correo",
            "quién ve el correo",
            "quién puede ver este correo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          }
        ]
      },
      "put": {
        "operationId": "set_email_access_grants",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "EmailAccessGrants resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAccessGrants.jsonld-email_access_grants.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAccessGrants-email_access_grants.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_email_sharing_unconfirmed`: The owner has not yet chosen what teammates see of their emails. They must do it once in Email and calendar settings of the app; it cannot be done through the API.\n\n`integration_connection_retiring`: The mailbox is being disconnected. Nothing was changed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.\n\n`crm_email_grantee_invalid`: Someone in `users` or `teams` is not an active member with a CRM seat, is the owner, or a team does not exist. Pick them with `list_email_access_grantees`.\n\n`integration_request_invalid`: The mailbox has no active Email capability (`reason: email_inactive`). Nothing was changed.\n\n`scope` is not `message` or `record`, `users` or `teams` is missing, null, has more than 200 items or an item that is not a UUID. Read `violations[].propertyPath`; both lists are required so that a typo cannot empty a grant.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nAnother change of this mailbox holds its lock (deadlock or lock timeout). Nothing was changed; repeat the same request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Set who can read an email",
        "description": "Replaces, for one email or for all the emails of a record in the owner's mailbox, the complete list of members and teams who get full read access (body, attachments, participants). Whoever is not in the lists loses the access this grant gave them.\n\n**When to use:** When the owner of a mailbox wants a colleague or a team to read a specific conversation, or the whole email history of a contact, company or opportunity, for example to hand a customer over.\n\n**When not to use:** To share a whole mailbox, or to change what the rest of the account sees of it, the owner uses Email and calendar settings in the app: that is not available through the API. A grant never shows more than the owner sees: the blocklist, protected list and hidden recipients still apply. To only see the current sharing, use `get_email_access_grants`. Only the owner of a mailbox that holds the email can see or change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist.\n\n**Side effects:** The people and teams in the lists can read the email (or the emails of the record, now and, for `scope` `record`, those that arrive later with the same addresses or domains) from that moment, with full read access, and lose it when they are left out. Nobody is notified. The change is recorded in the sharing audit of the mailbox with counts only, under the person who made the call; the current code does not record the \"via Maia\" mark for it. It does not touch who can send from the mailbox. `scope` `message` applies to this email in every mailbox of the owner that holds it; `scope` `record` applies to the record the request was made through (its addresses or domains as they are today, plus the ones not yet covered when `include_new` is true).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the owner of a mailbox that holds the email can change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist. A user who can only read the CRM can see the sharing with `get_email_access_grants` but not change it. For the emails of an opportunity the user also needs read access to the pipeline of the opportunity. Recipients must be active members with a CRM seat, or teams of the account.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email. Get it from `list_emails`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          }
        ],
        "requestBody": {
          "description": "The updated EmailAccessGrants resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailAccessGrants.EmailAccessGrantsInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailAccessGrants.EmailAccessGrantsInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "share email",
            "give access to an email",
            "share conversation",
            "share emails of a contact",
            "hand over emails"
          ],
          "es": [
            "compartir correo",
            "dar acceso a un email",
            "compartir conversación",
            "compartir correos de un contacto",
            "pasar los correos a un compañero"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          },
          {
            "status": 409,
            "code": "crm_email_sharing_unconfirmed",
            "meaning": "The owner has not yet chosen what teammates see of their emails. They must do it once in Email and calendar settings of the app; it cannot be done through the API."
          },
          {
            "status": 409,
            "code": "integration_connection_retiring",
            "meaning": "The mailbox is being disconnected. Nothing was changed."
          },
          {
            "status": 422,
            "code": "crm_email_grantee_invalid",
            "meaning": "Someone in `users` or `teams` is not an active member with a CRM seat, is the owner, or a team does not exist. Pick them with `list_email_access_grantees`."
          },
          {
            "status": 422,
            "code": "integration_request_invalid",
            "meaning": "The mailbox has no active Email capability (`reason: email_inactive`). Nothing was changed."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`scope` is not `message` or `record`, `users` or `teams` is missing, null, has more than 200 items or an item that is not a UUID. Read `violations[].propertyPath`; both lists are required so that a typo cannot empty a grant."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "Another change of this mailbox holds its lock (deadlock or lock timeout). Nothing was changed; repeat the same request."
          }
        ]
      }
    },
    "/emails/{uuid}/inline_images": {
      "get": {
        "operationId": "get_email_inline_images",
        "tags": [
          "Emails"
        ],
        "responses": {
          "200": {
            "description": "EmailInlineImages resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailInlineImages.jsonld-email_inline_images.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailInlineImages-email_inline_images.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_email_record_required`: None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "`crm_email_attachment_throttled`: Too many reads at once or too fast. Wait the seconds given in the `Retry-After` header and repeat; nothing was requested from Google.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "When to retry: seconds to wait for the error of this operation listed with a code; for the limit of the API key, a moment as `Y-m-d H:i:s` in the server time zone.",
                "schema": {
                  "type": "string",
                  "example": "30"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window of the API key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the images embedded in an email",
        "description": "Returns the images embedded in the body of an email (logos, signatures, pictures pasted in the text) as `data:` URIs, fetched from Google at that moment. The body marks each one with `data-em-inline` and the UUID of its attachment, so the images can be put back in place.\n\n**When to use:** To render an email faithfully, after `get_email`, when `body_html` has `data-em-inline` markers or the attachments list has items with `embedded: true`.\n\n**When not to use:** For files the sender attached (PDFs, documents), use `get_email_attachment_content`. This is not needed to read the text of the email: `get_email` already gives it.\n\n**Side effects:** Calls the Google API inside the request, once per image, with the credentials of the mailbox, and stores nothing. It spends Gmail quota of the mailbox owner. Limits per call: 40 images, 5 MB each, 15 MB in total and 20 seconds; anything beyond them, anything that is not really a PNG, GIF, JPEG or WebP, and anything Google no longer has is returned in `omitted`. Also limited to 60 Google calls per minute per person and 150 per mailbox, and 2 at once per person and 4 per mailbox.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Reading the emails of an opportunity needs the `crm.opportunities.read` capability instead (it is always granted together with `crm.contacts_companies.read`) and read access to the pipeline of the opportunity. It also needs `full_access` to the email; with a lower level the answer is a 404. Only emails held by a mailbox the user owns, or one whose owner shared it with the user, can be seen at all, and each email shows only what the sharing level of that mailbox allows. Being the owner or assignee of a record gives no extra access to its emails.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the email. Get it from `list_emails`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of `contact`, `company` and `opportunity`; an email that is not part of that record is a 404.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "inline images",
            "embedded images",
            "email pictures",
            "email logo",
            "render email images"
          ],
          "es": [
            "imágenes del correo",
            "imágenes incrustadas",
            "imágenes en línea",
            "logo del email",
            "ver imágenes del correo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions, or (for an opportunity) has no read access to its pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The contact, company or opportunity does not exist in this account, the user cannot see it, or the email is not part of it for this user. The answer is the same in every case on purpose. Find the record with `list_contacts` or `list_companies`, and the email with `list_emails`."
          },
          {
            "status": 422,
            "code": "crm_email_record_required",
            "meaning": "None, or more than one, of `contact`, `company` and `opportunity` was sent. Send exactly one, with the UUID of the record whose emails you are reading."
          },
          {
            "status": 429,
            "code": "crm_email_attachment_throttled",
            "meaning": "Too many reads at once or too fast. Wait the seconds given in the `Retry-After` header and repeat; nothing was requested from Google."
          }
        ]
      }
    },
    "/files": {
      "get": {
        "operationId": "list_files",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "File collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/File.jsonld-file.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/File-file.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The record does not exist in this account, or the user cannot see it. Find its UUID with `list_contacts`, `list_companies` or the opportunities list.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_file_context_required`: None of `contact`, `company` and `opportunity` was sent. Send exactly one.\n\n`crm_file_context_ambiguous`: More than one of `contact`, `company` and `opportunity` was sent. Send exactly one.\n\n`crm_file_invalid_uuid`: The record filter is not a valid UUID.\n\n`crm_file_created_by_invalid`: `created_by` is neither `unattributed` nor a UUID.\n\n`crm_file_search_too_long`: `search` is longer than 100 characters after trimming. Shorten it.\n\n`crm_file_invalid_cursor`: `cursor[gt]` is malformed or was issued for other filters. Start again without a cursor.\n\n`itemsPerPage` is outside 1 to 100, or a parameter has the wrong type. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the files of a record",
        "description": "Lists the files attached to one contact, company or opportunity, newest first, with name, type, size and who uploaded them.\n\n**When to use:** To see which documents are kept on a record (contracts, proposals, images) before downloading one, renaming it or deciding whether another upload is needed.\n\n**When not to use:** You must name the record: there is no list of all the files of the account. To read one file whose UUID you know, use `get_file`. To know how much storage the account has left, use `get_file_storage_usage`. For text written about a record, use `list_notes`.\n\n**Filters:** Exactly one of `contact`, `company` or `opportunity` is required, with the UUID of the record; an empty value counts as not sent. A UUID that does not exist, or that the user cannot see, gives `404`.\n- `created_by`: only files uploaded by that person or system, by the `created_by.uuid` of another file; `unattributed` returns the files nobody is attributed with.\n- `search`: files whose `display_name` contains the text, ignoring case; `%`, `_` and `!` are searched literally. Up to 100 characters after trimming; blank means no search.\nOnly `available` files are listed: a file whose content has not been stored yet, or was refused, does not appear. The order is fixed (newest first); there is no `order` parameter.\nPagination: files are paged with `itemsPerPage` (default 30, maximum 100) and an opaque `cursor[gt]`: to read the next page, call again with the same filters and the `cursor[gt]` of the `hydra:next` link of the previous response. The response gives the number of files that match the filters in `hydra:totalItems`; keep following `hydra:next` until a page comes back empty.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.read` capability and `read` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: its files. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: its files. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: its files. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "created_by",
            "in": "query",
            "description": "Only files uploaded by this person or system: the `created_by.uuid` of another file, or `unattributed` for files nobody is attributed with.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Text the file name must contain, ignoring case. Up to 100 characters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "proposal"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Files per page. Default 30, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxfQ"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "files",
            "attachments",
            "documents",
            "files of a contact",
            "contact documents",
            "company files",
            "opportunity attachments",
            "uploaded files"
          ],
          "es": [
            "archivos",
            "adjuntos",
            "documentos",
            "archivos de un contacto",
            "documentos de la empresa",
            "ficheros",
            "archivos de la oportunidad",
            "archivos subidos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The record does not exist in this account, or the user cannot see it. Find its UUID with `list_contacts`, `list_companies` or the opportunities list."
          },
          {
            "status": 422,
            "code": "crm_file_context_required",
            "meaning": "None of `contact`, `company` and `opportunity` was sent. Send exactly one."
          },
          {
            "status": 422,
            "code": "crm_file_context_ambiguous",
            "meaning": "More than one of `contact`, `company` and `opportunity` was sent. Send exactly one."
          },
          {
            "status": 422,
            "code": "crm_file_invalid_uuid",
            "meaning": "The record filter is not a valid UUID."
          },
          {
            "status": 422,
            "code": "crm_file_created_by_invalid",
            "meaning": "`created_by` is neither `unattributed` nor a UUID."
          },
          {
            "status": 422,
            "code": "crm_file_search_too_long",
            "meaning": "`search` is longer than 100 characters after trimming. Shorten it."
          },
          {
            "status": 422,
            "code": "crm_file_invalid_cursor",
            "meaning": "`cursor[gt]` is malformed or was issued for other filters. Start again without a cursor."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`itemsPerPage` is outside 1 to 100, or a parameter has the wrong type. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_file",
        "tags": [
          "Files"
        ],
        "responses": {
          "201": {
            "description": "File resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/File.jsonld-file.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File-file.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The record does not exist in this account, or the user cannot see it. Find its UUID with `list_contacts`, `list_companies` or the opportunities list.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_idempotency_conflict`: The `Idempotency-Key` already identifies a different declaration (other record, name or size), or one whose file ended `failed` or `rejected` and can no longer receive content. Send a new UUID. Repeating the same declaration with the same key is safe: it returns the file it already created.\n\n`crm_file_quota_exceeded`: The storage of the account has no room for `size_bytes`. Delete files with `delete_file`, or ask an account admin to raise the CRM plan. See `get_file_storage_usage`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_file_idempotency_key_invalid`: The `Idempotency-Key` header is not a UUID v4. `{K}` and `urn:uuid:K` forms are accepted and canonicalised; anything else is refused.\n\n`crm_file_name_invalid`: `filename` is empty after cleaning, longer than 255 characters, or contains `/` or `\\`. Send only the name, without a path. Invisible and control characters are removed from the name.\n\n`crm_file_format_unsupported`: The extension of `filename` is not allowed. Allowed: csv, tsv, txt, rtf, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, gif, jpg, jpeg, png, webp, svg, tif, tiff, zip, rar and tar.\n\n`crm_file_size_invalid`: `size_bytes` is not between 1 and 20,971,520 (20 MiB).\n\n`record` is missing or is not the IRI of a contact, company or opportunity, or `Idempotency-Key` is missing. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_file_quota_busy`: The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Start a file upload",
        "description": "First of the two steps to attach a file to a contact, company or opportunity: declares the file (record, name and exact size) and reserves its space in the storage of the account. The file only exists for the record once its bytes are sent with `set_file_content`.\n\n**When to use:** When a person wants to attach a document or image to a record. Flow: 1) call `create_file` with a fresh UUID in the `Idempotency-Key` header; 2) within 30 minutes send the raw bytes, exactly `size_bytes` long, to `set_file_content` with the `uuid` of the response; 3) the file becomes `available` and appears in `list_files`. The file name must end in one of these extensions: csv, tsv, txt, rtf, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, gif, jpg, jpeg, png, webp, svg, tif, tiff, zip, rar and tar; at most 20 MiB.\n\n**When not to use:** To change the name or description of a file that already exists, use `update_file`. To write text about a record, use `create_note`. The API cannot attach files that are in Google Drive or at a URL; only bytes sent by the caller.\n\n**Side effects:** Reserves `size_bytes` of the storage of the whole account for 30 minutes, which can make another upload fail with `crm_file_quota_exceeded` meanwhile; the reservation is returned when the upload completes, is cancelled with `delete_file`, or expires (expired reservations are cleaned up by an hourly job). Nothing is visible on the record yet: the activity entry and the listing appear only when the content is stored. Nothing is sent to anyone and no webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.work` capability and `work` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A new UUID v4 for each file you want to attach. Repeating the call with the same key and the same declaration returns the file already created instead of reserving space twice, while that file is `uploading`, `analyzing` or `available`. The key space is global to the account. A key whose file ended `failed` or `rejected` is spent: use a new one.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "f2b9c7d0-41e8-4a35-9d6c-7e0a3b8c5d12"
          }
        ],
        "requestBody": {
          "description": "The new File resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/File.FileCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/File.FileCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "upload file",
            "attach file",
            "add attachment",
            "attach document to contact",
            "start upload",
            "declare file"
          ],
          "es": [
            "subir archivo",
            "adjuntar archivo",
            "añadir adjunto",
            "adjuntar documento a un contacto",
            "iniciar subida",
            "declarar archivo"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The record does not exist in this account, or the user cannot see it. Find its UUID with `list_contacts`, `list_companies` or the opportunities list."
          },
          {
            "status": 409,
            "code": "crm_file_idempotency_conflict",
            "meaning": "The `Idempotency-Key` already identifies a different declaration (other record, name or size), or one whose file ended `failed` or `rejected` and can no longer receive content. Send a new UUID. Repeating the same declaration with the same key is safe: it returns the file it already created."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The storage of the account has no room for `size_bytes`. Delete files with `delete_file`, or ask an account admin to raise the CRM plan. See `get_file_storage_usage`."
          },
          {
            "status": 422,
            "code": "crm_file_idempotency_key_invalid",
            "meaning": "The `Idempotency-Key` header is not a UUID v4. `{K}` and `urn:uuid:K` forms are accepted and canonicalised; anything else is refused."
          },
          {
            "status": 422,
            "code": "crm_file_name_invalid",
            "meaning": "`filename` is empty after cleaning, longer than 255 characters, or contains `/` or `\\`. Send only the name, without a path. Invisible and control characters are removed from the name."
          },
          {
            "status": 422,
            "code": "crm_file_format_unsupported",
            "meaning": "The extension of `filename` is not allowed. Allowed: csv, tsv, txt, rtf, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, gif, jpg, jpeg, png, webp, svg, tif, tiff, zip, rar and tar."
          },
          {
            "status": 422,
            "code": "crm_file_size_invalid",
            "meaning": "`size_bytes` is not between 1 and 20,971,520 (20 MiB)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`record` is missing or is not the IRI of a contact, company or opportunity, or `Idempotency-Key` is missing. Read `violations[].propertyPath`."
          },
          {
            "status": 503,
            "code": "crm_file_quota_busy",
            "meaning": "The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header."
          }
        ]
      }
    },
    "/files/storage_usage": {
      "get": {
        "operationId": "get_file_storage_usage",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "FileStorageUsage resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/FileStorageUsage.jsonld-file_storage_usage.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileStorageUsage-file_storage_usage.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the file storage usage",
        "description": "Returns how much CRM file storage the account has used and how much its plan allows.\n\n**When to use:** Before uploading a large file, or when `create_file` answers `crm_file_quota_exceeded`, to tell the user how much space is left.\n\n**When not to use:** To see which files take the space, use `list_files` on each record. Storage used by email attachments or by Marketing images is not counted here: only files attached to CRM records.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "storage usage",
            "storage quota",
            "space left",
            "file storage limit",
            "how much storage"
          ],
          "es": [
            "uso de almacenamiento",
            "cuota de almacenamiento",
            "espacio disponible",
            "límite de archivos",
            "cuánto espacio queda"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/files/{uuid}": {
      "get": {
        "operationId": "get_file",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "File resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/File.jsonld-file.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File-file.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The file does not exist in this account, is not available (for example the upload was never completed), or the record it is attached to is not visible to the user. Find its UUID with `list_files`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a file",
        "description": "Returns the details of one file attached to a record: name, description, type, size, uploader and version. It does not return the content.\n\n**When to use:** To read the current `version` before renaming or deleting a file, or to check a file whose UUID you already know.\n\n**When not to use:** To download the bytes, use `get_file_content`. To find a file by name or by record, use `list_files`. A file that was just declared with `create_file` is not readable here until its content is stored with `set_file_content`.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.read` capability and `read` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the file. Get it from `list_files` (or from `create_file` while uploading).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "file details",
            "get attachment",
            "file info",
            "file version",
            "document details"
          ],
          "es": [
            "detalle del archivo",
            "ver adjunto",
            "información del archivo",
            "versión del archivo",
            "detalle del documento"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The file does not exist in this account, is not available (for example the upload was never completed), or the record it is attached to is not visible to the user. Find its UUID with `list_files`."
          }
        ]
      },
      "put": {
        "operationId": "update_file",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "File resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/File.jsonld-file.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File-file.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_version_conflict`: `expected_version` is not the current version: the file changed since you read it. Nothing was saved. The extension `current_version` gives the current one; read the file again with `get_file` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_file_name_invalid`: `display_name` is not a string, is empty after cleaning, is longer than 255 characters, or contains `/` or `\\`.\n\n`crm_file_extension_locked`: The extension of `display_name` differs from the one of `original_name` (only upper or lower case may change). Keep the same extension.\n\n`crm_file_description_invalid`: `description` is not a string or is longer than 2,000 characters.\n\n`crm_file_expected_version_invalid`: `expected_version` is not a positive integer.\n\n`crm_file_invalid_uuid`: The path identifier is not a valid UUID.\n\n`expected_version` is missing. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Rename or describe a file",
        "description": "Changes the name shown for a file and/or its description. Fields you leave out keep their value; `description: null` clears it. The bytes, the type and the record never change.\n\n**When to use:** To give a file a clearer name or add context (\"version signed by the client\"). Read `version` first with `get_file` or `list_files` and send it as `expected_version`.\n\n**When not to use:** To replace the content, delete the file with `delete_file` and upload a new one with `create_file`. To move the file to another record, upload it again there. The extension cannot be changed: `Proposal.pdf` can become `Proposal v2.pdf`, never `Proposal.docx`.\n\n**Side effects:** Only the file changes. No activity entry is added to the record, nothing is sent and no webhook fires. Sending the same name and description changes nothing and keeps the version.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.work` capability and `work` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the file. Get it from `list_files` (or from `create_file` while uploading).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          }
        ],
        "requestBody": {
          "description": "The updated File resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/File.FileUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/File.FileUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename file",
            "edit attachment",
            "change file name",
            "file description",
            "update document",
            "describe file"
          ],
          "es": [
            "renombrar archivo",
            "editar adjunto",
            "cambiar nombre del archivo",
            "descripción del archivo",
            "actualizar documento",
            "describir archivo",
            "poner descripción al archivo"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call."
          },
          {
            "status": 409,
            "code": "crm_file_version_conflict",
            "meaning": "`expected_version` is not the current version: the file changed since you read it. Nothing was saved. The extension `current_version` gives the current one; read the file again with `get_file` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_file_name_invalid",
            "meaning": "`display_name` is not a string, is empty after cleaning, is longer than 255 characters, or contains `/` or `\\`."
          },
          {
            "status": 422,
            "code": "crm_file_extension_locked",
            "meaning": "The extension of `display_name` differs from the one of `original_name` (only upper or lower case may change). Keep the same extension."
          },
          {
            "status": 422,
            "code": "crm_file_description_invalid",
            "meaning": "`description` is not a string or is longer than 2,000 characters."
          },
          {
            "status": 422,
            "code": "crm_file_expected_version_invalid",
            "meaning": "`expected_version` is not a positive integer."
          },
          {
            "status": 422,
            "code": "crm_file_invalid_uuid",
            "meaning": "The path identifier is not a valid UUID."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`expected_version` is missing. Read `violations[].propertyPath`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_file",
        "tags": [
          "Files"
        ],
        "responses": {
          "204": {
            "description": "File resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_version_conflict`: `expected_version` is not the current version: the file changed since you read it. Nothing was deleted. Read it again with `get_file` and decide whether to repeat.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_file_expected_version_required`: The file is `available` and `expected_version` was not sent. It is only optional to cancel an upload in progress.\n\n`crm_file_expected_version_invalid`: `expected_version` is present but is not a positive integer.\n\n`crm_file_invalid_uuid`: The path identifier is not a valid UUID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_file_quota_busy`: The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a file",
        "description": "Permanently deletes an available file from its record and frees its storage. There is no trash and no undo. On a file whose upload is still in progress (`uploading`), it cancels the upload instead.\n\n**When to use:** Only when the user explicitly asks to delete this file, for example one attached to the wrong record, or to replace it by a new version. To abandon an upload started with `create_file` that will not be completed, call it without `expected_version`.\n\n**When not to use:** To rename it, use `update_file`. Deleting a contact, company or opportunity already removes its files; do not delete them one by one for that.\n\n**Side effects:** A `file.removed` entry appears in the activity of the record, done by the person who owns the token (marked «via Maia» when Maia made the request). The space is returned to the account at once and the stored bytes are removed in the background. Cancelling an upload adds no activity entry and returns its reserved space. Nothing is sent to anyone and no webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.work` capability and `work` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the file. Get it from `list_files` (or from `create_file` while uploading).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          {
            "name": "expected_version",
            "in": "query",
            "description": "Version of the file you read (`version`). Required to delete an available file: if it has changed since, nothing is deleted and you get `crm_file_version_conflict`. Leave it out only to cancel an upload still in progress.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete file",
            "remove attachment",
            "cancel upload",
            "discard document"
          ],
          "es": [
            "borrar archivo",
            "eliminar adjunto",
            "cancelar subida",
            "quitar documento"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call."
          },
          {
            "status": 409,
            "code": "crm_file_version_conflict",
            "meaning": "`expected_version` is not the current version: the file changed since you read it. Nothing was deleted. Read it again with `get_file` and decide whether to repeat."
          },
          {
            "status": 422,
            "code": "crm_file_expected_version_required",
            "meaning": "The file is `available` and `expected_version` was not sent. It is only optional to cancel an upload in progress."
          },
          {
            "status": 422,
            "code": "crm_file_expected_version_invalid",
            "meaning": "`expected_version` is present but is not a positive integer."
          },
          {
            "status": 422,
            "code": "crm_file_invalid_uuid",
            "meaning": "The path identifier is not a valid UUID."
          },
          {
            "status": 503,
            "code": "crm_file_quota_busy",
            "meaning": "The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header."
          }
        ]
      }
    },
    "/files/{uuid}/content": {
      "get": {
        "operationId": "get_file_content",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "The bytes of the file, as an attachment. `Content-Type` is the `mime_type` of the file.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The file does not exist in this account, is not available, or the record it is attached to is not visible to the user. It is also the answer in the rare case that the stored object is missing although the file is listed (logged on our side as an incident). Find the UUID with `list_files`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Download a file",
        "description": "Downloads the bytes of one file attached to a record. The response body is the file itself, not JSON.\n\n**When to use:** When the content is needed: to read a document, forward it or save it. The `Content-Type` of the response is the `mime_type` of the file, `Content-Length` is its size, and `Content-Disposition` carries its `display_name`.\n\n**When not to use:** To know only its name, size or version, use `get_file`: it is cheaper and returns JSON. The file is always delivered as an attachment (never inline) and the call does not count as activity on the record.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.read` capability and `read` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the file. Get it from `list_files` (or from `create_file` while uploading).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "download file",
            "get attachment content",
            "read document",
            "fetch file bytes",
            "save attachment"
          ],
          "es": [
            "descargar archivo",
            "obtener contenido del adjunto",
            "leer documento",
            "bajar archivo",
            "guardar adjunto"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The file does not exist in this account, is not available, or the record it is attached to is not visible to the user. It is also the answer in the rare case that the stored object is missing although the file is listed (logged on our side as an incident). Find the UUID with `list_files`."
          }
        ]
      },
      "put": {
        "operationId": "set_file_content",
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "File resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/File.jsonld-file.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/File-file.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_file_idempotency_conflict`: The file is already `available` and these bytes are different from the ones it holds. Content cannot be replaced.\n\n`crm_file_quota_exceeded`: The storage limit of the account dropped below what the reservation needed between `create_file` and this call. Free space with `delete_file` and start again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than the 20 MiB the edge proxy accepts. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "`crm_file_content_media_type_unsupported`: The `Content-Type` header is not `application/octet-stream`. Nothing was read.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_file_not_uploadable`: The file no longer accepts content: its upload already failed, was cancelled or was refused. Start again with `create_file` and a new `Idempotency-Key`.\n\n`crm_file_reservation_expired`: More than 30 minutes passed since `create_file`. Start again with `create_file` and a new `Idempotency-Key`.\n\n`crm_file_size_mismatch`: The body does not have exactly the `size_bytes` declared. The upload is closed as `failed`: start again with `create_file`.\n\n`crm_file_size_invalid`: The body is larger than 20 MiB. The upload is closed as `failed`: start again with a smaller file.\n\n`crm_file_content_mismatch`: The bytes are not of the type the file name claims (for example a program named `.pdf`). The upload is closed as `failed`: start again with the right file.\n\n`crm_file_scan_rejected`: The content was refused by the content check. The upload is closed as `rejected`.\n\n`crm_file_scan_failed`: The content check could not be completed, so the file was not accepted. The upload is closed as `failed`: start again.\n\n`crm_file_invalid_uuid`: The path identifier is not a valid UUID.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`crm_file_storage_unavailable`: The file store did not answer. Nothing was stored and the file is still `uploading` with its space reserved: send the same request again after the seconds in `Retry-After`, while the 30 minutes last.\n\n`crm_file_quota_busy`: The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Send the content of a file",
        "description": "Second step of an upload: stores the bytes of a file declared with `create_file` and makes it available on its record. The request body is the raw file, not JSON.\n\n**When to use:** Right after `create_file`, with its `uuid`, within 30 minutes. Send `Content-Type: application/octet-stream` and exactly `size_bytes` bytes as the body. The response is the file already `available`. If the response is lost, send the same request again: the same bytes give the same file without storing it twice.\n\n**When not to use:** To replace the content of a file that is already available: it cannot be done; delete it with `delete_file` and upload the new one. To rename it, use `update_file`. There is no multipart or base64 form: the body is the binary itself.\n\n**Side effects:** The file becomes `available` and its size is counted in the storage used by the account. A `file.uploaded` entry appears in the activity of the record, done by the person who owns the token (marked «via Maia» when Maia made the request). The content is checked to be what its extension says (a `.pdf` must really be a PDF); if it is not, or its size differs from `size_bytes`, the file is closed as `failed`, its reserved space is returned and a new `create_file` is needed. Nothing is sent to anyone, nothing is written to Google and no webhook fires. The call is synchronous: when it returns, the file is stored.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the `crm.opportunities.work` capability and `work` access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the file. Get it from `list_files` (or from `create_file` while uploading).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Always `application/octet-stream`. Any other value is refused with 415 before the body is read.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "application/octet-stream"
              ]
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "application/octet-stream"
          }
        ],
        "requestBody": {
          "description": "The raw bytes of the file, exactly `size_bytes` of them.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "upload content",
            "send file bytes",
            "finish upload",
            "put file",
            "binary upload",
            "complete upload"
          ],
          "es": [
            "subir contenido",
            "enviar bytes del archivo",
            "terminar la subida",
            "subida binaria",
            "completar subida"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The file does not exist in this account, or the record it is attached to is not reachable by the user. This is also the answer when the file is not in the right state for this call."
          },
          {
            "status": 409,
            "code": "crm_file_idempotency_conflict",
            "meaning": "The file is already `available` and these bytes are different from the ones it holds. Content cannot be replaced."
          },
          {
            "status": 409,
            "code": "crm_file_quota_exceeded",
            "meaning": "The storage limit of the account dropped below what the reservation needed between `create_file` and this call. Free space with `delete_file` and start again."
          },
          {
            "status": 413,
            "code": null,
            "meaning": "The body is larger than the 20 MiB the edge proxy accepts. This answer comes from the proxy, is not `application/problem+json` and has no `code`. Send at most 20 MiB."
          },
          {
            "status": 415,
            "code": "crm_file_content_media_type_unsupported",
            "meaning": "The `Content-Type` header is not `application/octet-stream`. Nothing was read."
          },
          {
            "status": 422,
            "code": "crm_file_not_uploadable",
            "meaning": "The file no longer accepts content: its upload already failed, was cancelled or was refused. Start again with `create_file` and a new `Idempotency-Key`."
          },
          {
            "status": 422,
            "code": "crm_file_reservation_expired",
            "meaning": "More than 30 minutes passed since `create_file`. Start again with `create_file` and a new `Idempotency-Key`."
          },
          {
            "status": 422,
            "code": "crm_file_size_mismatch",
            "meaning": "The body does not have exactly the `size_bytes` declared. The upload is closed as `failed`: start again with `create_file`."
          },
          {
            "status": 422,
            "code": "crm_file_size_invalid",
            "meaning": "The body is larger than 20 MiB. The upload is closed as `failed`: start again with a smaller file."
          },
          {
            "status": 422,
            "code": "crm_file_content_mismatch",
            "meaning": "The bytes are not of the type the file name claims (for example a program named `.pdf`). The upload is closed as `failed`: start again with the right file."
          },
          {
            "status": 422,
            "code": "crm_file_scan_rejected",
            "meaning": "The content was refused by the content check. The upload is closed as `rejected`."
          },
          {
            "status": 422,
            "code": "crm_file_scan_failed",
            "meaning": "The content check could not be completed, so the file was not accepted. The upload is closed as `failed`: start again."
          },
          {
            "status": 422,
            "code": "crm_file_invalid_uuid",
            "meaning": "The path identifier is not a valid UUID."
          },
          {
            "status": 503,
            "code": "crm_file_storage_unavailable",
            "meaning": "The file store did not answer. Nothing was stored and the file is still `uploading` with its space reserved: send the same request again after the seconds in `Retry-After`, while the 30 minutes last."
          },
          {
            "status": 503,
            "code": "crm_file_quota_busy",
            "meaning": "The storage counters of the account are held by another upload or deletion. Nothing was changed; retry the same request after the number of seconds in the `Retry-After` header."
          }
        ]
      }
    },
    "/audiences/{audienceUuid}/groups": {
      "get": {
        "operationId": "list_audience_groups",
        "tags": [
          "Groups"
        ],
        "responses": {
          "200": {
            "description": "Group collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Group.jsonld-group.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Group-group.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List groups",
        "description": "Lists the groups of one audience, newest first, each with its colour, whether it is public and how many members it has.\n\n**When to use:** To find the group the user means (to read its UUID) or to see how an audience is organised by hand.\n\n**When not to use:** For groups that are filters computed automatically, use segments: `list_audience_segments`. To see who is in a group, use `list_audience_members` with the `groups` filter.\n\n**Filters:** `title`: partial match on the title. Sorting: `order[field]=asc|desc` with `createdAt`, `updatedAt` or `title`; default `createdAt` descending.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "title",
            "in": "query",
            "description": "Part of the group title. Returns the groups whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "VIP"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "UUID of an audience. Redundant here, because the audience is already in the path.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "tags",
            "labels",
            "categories of subscribers",
            "manual lists"
          ],
          "es": [
            "etiquetas",
            "grupos",
            "categorías de suscriptores",
            "listas manuales"
          ]
        }
      },
      "post": {
        "operationId": "create_audience_group",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.jsonld-group.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group-group.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a group",
        "description": "Creates an empty group in an audience. Groups are labels you assign to members to target campaigns and automations.\n\n**When to use:** When the user wants a new label to organise subscribers of one audience, for example interests or customer types.\n\n**When not to use:** To filter members by a rule that updates by itself, create a segment with `create_audience_segment`. To put members in the new group, use `member_add_from_group` or the bulk group operations.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to create the group in. If the account has several audiences, confirm with the user which one. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new Group resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Group.jsonld-group.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Group-group.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new tag",
            "new label",
            "create category",
            "new subscriber group"
          ],
          "es": [
            "crear etiqueta",
            "nuevo grupo",
            "crear categoría",
            "nueva etiqueta"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}": {
      "get": {
        "operationId": "get_audience_group",
        "tags": [
          "Groups"
        ],
        "responses": {
          "200": {
            "description": "Group resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.jsonld-group.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group-group.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a group",
        "description": "Returns one group with its title, description, colour, public flag and member count.\n\n**When to use:** To read a group you already know by UUID, for example to check how many members it has.\n\n**When not to use:** To find a group by name, use `list_audience_groups` with the `title` filter.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "group details",
            "tag details",
            "size of group"
          ],
          "es": [
            "detalle del grupo",
            "ver etiqueta",
            "cuántos hay en el grupo"
          ]
        }
      },
      "put": {
        "operationId": "update_audience_group",
        "tags": [
          "Groups"
        ],
        "responses": {
          "200": {
            "description": "Group resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.jsonld-group.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group-group.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Read `violations[].propertyPath` and `violations[].message`, fix those fields and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a group",
        "description": "Changes the title, description, colour or public flag of a group. Fields you leave out keep their value. It does not change who is in the group.\n\n**When to use:** To rename or recolour a group.\n\n**When not to use:** To add or remove members, use `member_add_from_group`, `member_remove_from_group` or the bulk group operations.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "requestBody": {
          "description": "The updated Group resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Group.jsonld-group.write.update_audience_group"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Group-group.write.update_audience_group"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename group",
            "edit tag",
            "change group colour"
          ],
          "es": [
            "renombrar grupo",
            "editar etiqueta",
            "cambiar color del grupo"
          ]
        }
      },
      "delete": {
        "operationId": "delete_audience_group",
        "tags": [
          "Groups"
        ],
        "responses": {
          "204": {
            "description": "Group resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a group",
        "description": "Permanently deletes a group. Its members stay in the audience, only without that group, and the group disappears from the campaigns, subscription forms and shops that used it.\n\n**When to use:** Only when the user explicitly wants the group itself to disappear.\n\n**When not to use:** To empty the group but keep it, use `async_task_group_clear`. To take one member out of it, use `member_remove_from_group`.\n\n**Side effects:** The group is removed from every member, from the campaigns that were aimed at it (they lose that recipient group), from the subscription forms that added people to it and from the shops that tagged new customers with it. The members are not told: no `member_removed_from_group` webhook, no activity entry and no group automation fires.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove tag",
            "delete label",
            "drop group"
          ],
          "es": [
            "borrar etiqueta",
            "eliminar grupo",
            "quitar grupo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}/actions/add_from_conditions": {
      "post": {
        "operationId": "async_task_group_add_from_conditions",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "A required field is missing or invalid in the JSON body, or a referenced item belongs to a different audience. The message names the field; fix it and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Add members matching conditions to a group",
        "description": "Starts a background job that adds to the group the members of the audience that match your conditions. Members already in the group should be skipped (see side effects). It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To fill a group from a one-off rule, for example everyone in Spain who opened a campaign, without creating a saved segment.\n\n**When not to use:** To add one member, use `member_add_from_group`. To reuse a saved segment, use `async_task_segment_add_to_group`. To remove members, use `async_task_group_remove_from_conditions`.\n\n**Side effects:** Starts an async task. For each member added it records an entry in the member's activity and fires the automations triggered by joining a group; the group's member count is refreshed. It does not fire the `member_added_to_group` webhook. A member who is already in this group but also in another group is selected again: their activity entry and group automations can run a second time, and they are counted in `result_meta.added`. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "operator_match",
                  "conditions"
                ],
                "properties": {
                  "operator_match": {
                    "type": "string",
                    "enum": [
                      "all",
                      "any"
                    ],
                    "description": "How the conditions combine: `all` means every condition must match, `any` means at least one. The key is camelCase.",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "description": "Between 1 and 5 conditions. Same format as the conditions of a segment.",
                    "items": {
                      "type": "object",
                      "required": [
                        "field",
                        "operator",
                        "value"
                      ],
                      "properties": {
                        "field": {
                          "type": "string",
                          "format": "iri-reference",
                          "description": "IRI of the condition field (`/audiences/{audienceUuid}/condition_fields/{uuid}`). Get it from `list_audience_condition_fields`.",
                          "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Comparison operator. Use one of the `operators` listed by the condition field.",
                          "example": "in"
                        },
                        "value": {
                          "description": "Value to compare with. Its type depends on the condition field: text, integer, decimal, boolean, date string or array.",
                          "example": [
                            "ES"
                          ]
                        }
                      }
                    },
                    "example": [
                      {
                        "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                        "operator": "in",
                        "value": [
                          "ES"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "bulk tag",
            "mass add to group",
            "add many subscribers to group by rule",
            "tag by condition"
          ],
          "es": [
            "añadir en masa a un grupo",
            "etiquetar por condición",
            "meter en un grupo según criterios",
            "añadir muchos suscriptores a un grupo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}/actions/clear": {
      "post": {
        "operationId": "async_task_group_clear",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Clear all members from a group",
        "description": "Starts a background job that removes every member from the group. The group itself and the members stay. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To empty a group before refilling it, or when the group is no longer needed but should stay defined.\n\n**When not to use:** To delete the group, use `delete_audience_group`. To remove only some members, use `async_task_group_remove_from_conditions`, `async_task_group_remove_from_segment` or `member_remove_from_group`.\n\n**Side effects:** Starts an async task. Every member is taken out of the group: Members stay in the audience; only their link to the group is removed. For each member removed it records an entry in the member's activity and the group's member count is refreshed. It does not fire the `member_removed_from_group` webhook or the automations triggered by leaving a group. When it finishes, `result_meta.removed` holds the number of members taken out.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "empty group",
            "reset tag",
            "remove everyone from group"
          ],
          "es": [
            "vaciar grupo",
            "sacar a todos del grupo",
            "resetear etiqueta"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}/actions/export": {
      "post": {
        "operationId": "async_task_group_export",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Export group members",
        "description": "Starts a background job that exports the members of the group to an Excel file. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`. When it is completed, `result_file_url` is a temporary download link.\n\n**When to use:** When the user wants a spreadsheet of the people in a group.\n\n**When not to use:** To read a few members in the response, use `list_audience_members` with the `groups` filter. To export a segment, use `async_task_segment_export`.\n\n**Side effects:** Starts an async task and creates the file; nothing is sent to anyone. `result_meta.exported` holds the number of rows.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "download group",
            "export tag members to Excel",
            "spreadsheet of group"
          ],
          "es": [
            "exportar grupo",
            "descargar suscriptores del grupo",
            "excel del grupo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}/actions/remove_from_conditions": {
      "post": {
        "operationId": "async_task_group_remove_from_conditions",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "A required field is missing or invalid in the JSON body, or a referenced item belongs to a different audience. The message names the field; fix it and send the request again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group does not exist in this audience. Find its UUID with `list_audience_groups`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Remove members matching conditions from a group",
        "description": "Starts a background job that removes from the group every member that is in it and matches your conditions. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To take out of a group everyone who matches a one-off rule, for example members from a country or who have not opened a campaign.\n\n**When not to use:** To remove one member, use `member_remove_from_group`. To remove everyone, use `async_task_group_clear`. To remove the members of a saved segment, use `async_task_group_remove_from_segment`.\n\n**Side effects:** Starts an async task. Members stay in the audience; only their link to the group is removed. For each member removed it records an entry in the member's activity and the group's member count is refreshed. It does not fire the `member_removed_from_group` webhook or the automations triggered by leaving a group. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields. `result_meta.removed` holds the number of members taken out.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "operator_match",
                  "conditions"
                ],
                "properties": {
                  "operator_match": {
                    "type": "string",
                    "enum": [
                      "all",
                      "any"
                    ],
                    "description": "How the conditions combine: `all` means every condition must match, `any` means at least one. The key is camelCase.",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "description": "Between 1 and 5 conditions. Same format as the conditions of a segment.",
                    "items": {
                      "type": "object",
                      "required": [
                        "field",
                        "operator",
                        "value"
                      ],
                      "properties": {
                        "field": {
                          "type": "string",
                          "format": "iri-reference",
                          "description": "IRI of the condition field (`/audiences/{audienceUuid}/condition_fields/{uuid}`). Get it from `list_audience_condition_fields`.",
                          "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Comparison operator. Use one of the `operators` listed by the condition field.",
                          "example": "in"
                        },
                        "value": {
                          "description": "Value to compare with. Its type depends on the condition field: text, integer, decimal, boolean, date string or array.",
                          "example": [
                            "ES"
                          ]
                        }
                      }
                    },
                    "example": [
                      {
                        "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                        "operator": "in",
                        "value": [
                          "ES"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "bulk untag",
            "mass remove from group",
            "remove many subscribers from group by rule"
          ],
          "es": [
            "quitar en masa de un grupo",
            "sacar del grupo por condición",
            "desetiquetar por criterios"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/groups/{uuid}/actions/remove_from_segment": {
      "post": {
        "operationId": "async_task_group_remove_from_segment",
        "tags": [
          "Groups"
        ],
        "responses": {
          "201": {
            "description": "Group resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group.AsyncTaskResource"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "`segment_uuid` is missing, or the segment belongs to a different audience than the group. Send a segment of the same audience.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The group or segment does not exist in this audience. Check the group UUID with `list_audience_groups` and the segment UUID with `list_audience_segments`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Remove segment members from a group",
        "description": "Starts a background job that removes from the group every member that also matches the given segment. It runs in the background and returns an async task straight away, not the final result: read it with `get_async_task` using the task `uuid` and repeat until `status` is `completed` or `failed`.\n\n**When to use:** To take out of a group everyone who currently matches a saved segment.\n\n**When not to use:** For a one-off rule that is not a saved segment, use `async_task_group_remove_from_conditions`. To act from the segment side, use `async_task_segment_remove_from_group`.\n\n**Side effects:** Starts an async task. Members stay in the audience; only their link to the group is removed. For each member removed it records an entry in the member's activity and the group's member count is refreshed. It does not fire the `member_removed_from_group` webhook or the automations triggered by leaving a group. `result_meta.removed` holds the number of members taken out.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the group belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "segment_uuid"
                ],
                "properties": {
                  "segment_uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the segment whose members are removed from the group. It must belong to the same audience as the group. The key is camelCase. Get it from `list_audience_segments`.",
                    "example": "b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62"
                  }
                }
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "untag segment",
            "remove segment from group"
          ],
          "es": [
            "sacar un segmento del grupo",
            "quitar segmento de la etiqueta"
          ]
        }
      }
    },
    "/invoices": {
      "get": {
        "operationId": "list_invoices",
        "tags": [
          "Invoices"
        ],
        "responses": {
          "200": {
            "description": "Invoice collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Invoice.jsonld-invoice.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Invoice-invoice.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List account invoices",
        "description": "Returns the invoices of the account that can be downloaded, newest first, with number, date, amounts in cents, currency and the address of the PDF. All of them come in one page.\n\n**When to use:** To check what has been billed, or to find an invoice number or total.\n\n**When not to use:** To read one invoice use `get_invoice`; for the plan and its usage use `api_my_suscription_get`.\n\n**Permissions:** Requires the account role or higher, or the `account.billing.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "billing",
            "receipts",
            "payments history",
            "statements",
            "bills"
          ],
          "es": [
            "facturas",
            "historial de pagos",
            "recibos",
            "facturación"
          ]
        }
      }
    },
    "/invoices/{uuid}": {
      "get": {
        "operationId": "get_invoice",
        "tags": [
          "Invoices"
        ],
        "responses": {
          "200": {
            "description": "Invoice resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice.jsonld-invoice.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice-invoice.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The invoice does not exist, belongs to another account or cannot be downloaded. Check the identifier with `list_invoices`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an invoice",
        "description": "Returns one invoice with its number, date, amount, taxes and total in cents, currency and the address of the PDF. The PDF itself can be downloaded only from the Easymailing panel, signed in.\n\n**When to use:** To read the totals of an invoice you already know.\n\n**When not to use:** To find invoices use `list_invoices`.\n\n**Permissions:** Requires the account role or higher, or the `account.billing.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the invoice. Get it with `list_invoices`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "f0a7c3d2-5b19-4e68-9d41-7c8e2b6a1035"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "bill details",
            "receipt",
            "invoice total",
            "invoice pdf"
          ],
          "es": [
            "ver factura",
            "detalle de la factura",
            "importe de la factura",
            "pdf de la factura"
          ]
        }
      }
    },
    "/master_templates": {
      "get": {
        "operationId": "list_master_templates",
        "tags": [
          "Master templates"
        ],
        "responses": {
          "200": {
            "description": "MasterTemplate collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MasterTemplate.jsonld-master_template.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MasterTemplate-master_template.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List master templates",
        "description": "Returns the master templates of the account, which are base designs saved as master in the panel. Each one carries its HTML and, if it is a visual-editor design, its simple JSON.\n\n**When to use:** To see which base designs the account has before creating a new template from one of them.\n\n**When not to use:** For all templates of the account use `list_templates`; for the ready-made designs offered by Easymailing use `list_themes`.\n\n**Filters:** `title`: partial match on the title. Sort with `order[created_at]`, `order[updated_at]` or `order[title]` (`asc`/`desc`).\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only master templates whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Newsletter base"
          },
          {
            "name": "order[created_at]",
            "in": "query",
            "description": "Sort by creation date: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          },
          {
            "name": "order[updated_at]",
            "in": "query",
            "description": "Sort by last update: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          },
          {
            "name": "order[title]",
            "in": "query",
            "description": "Sort by title: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "asc"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "base designs",
            "reusable layouts",
            "starter templates",
            "master layouts"
          ],
          "es": [
            "plantillas maestras",
            "diseños base",
            "plantillas base",
            "maquetas base"
          ]
        }
      }
    },
    "/master_templates/{uuid}": {
      "get": {
        "operationId": "get_master_template",
        "tags": [
          "Master templates"
        ],
        "responses": {
          "200": {
            "description": "MasterTemplate resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MasterTemplate.jsonld-master_template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MasterTemplate-master_template.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The master template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a master template",
        "description": "Returns one master template with its HTML and, for visual-editor designs, its simple JSON.\n\n**When to use:** To inspect a base design before copying it with `create_template_from_master`.\n\n**When not to use:** To find master templates use `list_master_templates`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the master template. Get it with `list_master_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8a4f1d93-6b27-4c05-9e38-d1b7a5f20c46"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "base design details",
            "master layout",
            "read master"
          ],
          "es": [
            "ver plantilla maestra",
            "detalle del diseño base",
            "contenido de la plantilla maestra"
          ]
        }
      }
    },
    "/master_templates/{uuid}/actions/create_template": {
      "post": {
        "operationId": "create_template_from_master",
        "tags": [
          "Master templates"
        ],
        "responses": {
          "201": {
            "description": "MasterTemplate resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MasterTemplate.TemplateResource.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MasterTemplate.TemplateResource-template.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The master template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty or longer than 255 characters. Fix `title` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a template from a master",
        "description": "Copies a master template into a new regular template with the title you give. The copy is independent: changing it does not change the master.\n\n**When to use:** To start a new email from one of the account's base designs and then adapt it with `update_template`.\n\n**When not to use:** To start from a ready-made design offered by Easymailing use `create_template_from_theme`; to create one from your own HTML use `create_template`.\n\n**Side effects:** A thumbnail image of the new template is generated in the background.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the master template. Get it with `list_master_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8a4f1d93-6b27-4c05-9e38-d1b7a5f20c46"
          }
        ],
        "requestBody": {
          "description": "The new MasterTemplate resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/MasterTemplate.CreateTemplateFromMasterInput.jsonld-master_template.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MasterTemplate.CreateTemplateFromMasterInput-master_template.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "clone template",
            "duplicate master",
            "copy base design",
            "start from master"
          ],
          "es": [
            "crear plantilla desde maestra",
            "duplicar plantilla maestra",
            "copiar diseño base",
            "clonar plantilla"
          ]
        }
      }
    },
    "/meeting_calendars": {
      "get": {
        "operationId": "list_meeting_calendars",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "200": {
            "description": "MeetingCalendar collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MeetingCalendar.jsonld-meeting_calendar.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MeetingCalendar-meeting_calendar.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the calendars of the user",
        "description": "Lists the Google calendars Easymailing reads meetings from that the user can see: their own calendars, and the calendars of colleagues who shared theirs. It says which ones the user can write to.\n\n**When to use:** Before `create_meeting`, to get the `connection_uuid` and `calendar_id` of a calendar with `writable: true`. Also to understand where the meetings returned by `list_meetings` come from (`source`).\n\n**When not to use:** It does not connect, disconnect or choose calendars, and it does not change who can see them: that is done in the app. To list meetings, use `list_meetings`.\n\n**Filters:** The list is not paged and has no filters; it is short (one entry per calendar selected in each Google connection). Own calendars come with `owned: true`. If the list has no entry with `writable: true`, the user has no Google Calendar connected for scheduling and the meeting cannot be created through the API: ask them to connect it in the app (Email and calendar settings).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. Only calendars that are selected and active are listed, and a colleague's calendar only if they shared it with the user.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "calendars",
            "my calendars",
            "which calendar",
            "google calendar",
            "calendar to schedule in",
            "writable calendar",
            "calendars of the user"
          ],
          "es": [
            "calendarios",
            "mis calendarios",
            "qué calendario",
            "google calendar",
            "calendario donde programar",
            "calendario con permiso de escritura",
            "calendarios del usuario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/meeting_write_receipts/{uuid}": {
      "get": {
        "operationId": "get_meeting_write_receipt",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "200": {
            "description": "MeetingWriteReceipt resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt.jsonld-meeting_write_receipt.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt-meeting_write_receipt.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_write_receipt_not_found`: The receipt does not exist or belongs to another user. Use the `uuid` returned by the write.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get the result of a meeting write",
        "description": "Returns the receipt of a create, change or cancel of a meeting: whether Google applied it, and the meeting once it is in the CRM.\n\n**When to use:** After `create_meeting`, `update_meeting` or `cancel_meeting` answered with a `state` that is not final (`pending` or `uncertain`): poll it every few seconds until `state` is `confirmed`, `failed` or `conflict`. Easymailing resolves an `uncertain` receipt in the background in at most about an hour, after which it becomes `failed` with `not_confirmed`.\n\n**When not to use:** To read the meeting itself, use `get_meeting` (for a created meeting, the `meeting` IRI of a confirmed receipt). Do not repeat the write while the receipt is not final: you could invite the guests twice.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. A receipt can only be read by the user who made the write; for anybody else it does not exist.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the receipt, from the response of the write.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "a1f6d3b8-2c74-4e09-b5a1-8d3e7f204c59"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "meeting result",
            "was the meeting created",
            "calendar write status",
            "meeting receipt",
            "check meeting confirmation"
          ],
          "es": [
            "resultado de la reunión",
            "se creó la reunión",
            "estado de la escritura en el calendario",
            "recibo de la reunión",
            "comprobar confirmación de la reunión"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_write_receipt_not_found",
            "meaning": "The receipt does not exist or belongs to another user. Use the `uuid` returned by the write."
          }
        ]
      }
    },
    "/meetings": {
      "get": {
        "operationId": "list_meetings",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "200": {
            "description": "Meeting collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Meeting.jsonld-meeting.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Meeting-meeting.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_record_not_found`: The `contact`, `company` or `opportunity` does not exist in this account, or the user cannot see it. Find it with `list_contacts`, `list_companies` or `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_meeting_query_invalid`: The query is not valid; the extension `reason` says why: `record_required` (neither a record nor a range was sent), `record_ambiguous` (more than one of `contact`, `company` and `opportunity`), `range_incomplete` (only one of `from` and `to`), `range_with_record` (a range together with a record), `range_invalid` (a date without time zone, `to` not after `from`, or a range longer than 42 days), `limit` (`itemsPerPage` outside 1 to 20), `cursor` (a `cursor[gt]` that is malformed or was issued for other filters).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List meetings of a record or date range",
        "description": "Lists the meetings of connected Google calendars that the user can see, in one of two ways: the upcoming meetings related to one contact, company or opportunity, or the meetings of the user's own calendars within a date range. A meeting is an event synchronized from Google Calendar that Easymailing links to CRM records.\n\n**When to use:** To know what meetings are coming up with a person, company or deal (`contact`, `company` or `opportunity`), or what the user has on their calendar between two dates (`from` and `to`).\n\n**When not to use:** To read one meeting in full (description, guests, linked records, permissions), use `get_meeting`. To schedule a meeting, use `create_meeting`. It does not list past meetings of a record: those appear in the activity timeline of the record. It does not list tasks (`list_tasks`) or notes (`list_notes`). The calendars you can write to are in `list_meeting_calendars`.\n\n**Filters:** Send either exactly one of `contact`, `company` or `opportunity` (the record mode), or both `from` and `to` (the range mode), never both modes.\nRecord mode returns the `confirmed` meetings related to that record, a meeting being related through a guest, a company email domain or a link made by hand, that have not ended yet (an all-day meeting counts until its last day has passed). The record must exist and be visible to the user, otherwise `404`.\nRange mode returns the `confirmed` meetings of the user's own calendars that overlap `[from, to)`, whether or not they are related to any CRM record. `from` and `to` are ISO 8601 with the time zone or offset, `to` is after `from` and at most 42 days later. All-day meetings are matched by calendar day in the time zone of the user's profile.\nThe order is fixed: by start time, then by UUID. There is no `order` parameter and no text search.\nPagination: meetings are paged with `itemsPerPage` (default 10, maximum 20) and an opaque `cursor[gt]`: to read the next page, call again with the same filters and the `cursor[gt]` of the `hydra:next` link of the previous response. The response gives the total number of meetings in `hydra:totalItems`; keep following `hydra:next` until a page comes back empty. The data is what Easymailing last synchronized from Google, so an event created or changed in Google a moment ago may not show up yet.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. For an `opportunity` it requires instead the `crm.opportunities.read` capability and read access to its pipeline. The date range mode always requires `crm.contacts_companies.read`. A meeting is only visible if it sits in a calendar the user owns or in a calendar a colleague shared with them, and it never shows events that involve protected or blocked addresses of the connection.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: its upcoming meetings. Send exactly one of `contact`, `company` and `opportunity`, or use `from` and `to` instead.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: its upcoming meetings. Send exactly one of `contact`, `company` and `opportunity`, or use `from` and `to` instead.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: its upcoming meetings. Send exactly one of `contact`, `company` and `opportunity`, or use `from` and `to` instead.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the range (inclusive), ISO 8601 with time zone or offset. Range mode: send it with `to`; it cannot be combined with a record.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-02T00:00:00+01:00"
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the range (exclusive), ISO 8601 with time zone or offset; after `from` and at most 42 days later.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-09T00:00:00+01:00"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Meetings per page. Default 10, maximum 20.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "minimum": 1,
              "maximum": 20
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 10
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxfQ"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "meetings",
            "upcoming meetings",
            "meetings with a contact",
            "calendar events",
            "my agenda",
            "what meetings do I have",
            "next meeting with",
            "meetings by date range"
          ],
          "es": [
            "reuniones",
            "próximas reuniones",
            "reuniones con un contacto",
            "eventos del calendario",
            "mi agenda",
            "qué reuniones tengo",
            "próxima reunión con",
            "reuniones por rango de fechas",
            "reuniones de la semana"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_record_not_found",
            "meaning": "The `contact`, `company` or `opportunity` does not exist in this account, or the user cannot see it. Find it with `list_contacts`, `list_companies` or `list_opportunities`."
          },
          {
            "status": 422,
            "code": "crm_meeting_query_invalid",
            "meaning": "The query is not valid; the extension `reason` says why: `record_required` (neither a record nor a range was sent), `record_ambiguous` (more than one of `contact`, `company` and `opportunity`), `range_incomplete` (only one of `from` and `to`), `range_with_record` (a range together with a record), `range_invalid` (a date without time zone, `to` not after `from`, or a range longer than 42 days), `limit` (`itemsPerPage` outside 1 to 20), `cursor` (a `cursor[gt]` that is malformed or was issued for other filters)."
          }
        ]
      },
      "post": {
        "operationId": "create_meeting",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "202": {
            "description": "MeetingWriteReceipt resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt.jsonld-meeting_write_receipt.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt-meeting_write_receipt.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_meeting_record_not_found`: A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`.\n\n`crm_meeting_write_rejected`: The request was refused before reaching Google; the extension `reason` says why: `title_required`, `invalid_interval` (the end is not after the start, or a date is not a real date), `time_zone` (not an IANA name), `conference_url` (missing or not `https://` for an `external` video call), `contact_required` (`contacts` is empty), `attendee_invalid` (more than 50 guests or an invalid email), `attendee_protected` (a guest, or the organizer, is on the protected addresses list and cannot be invited), `recipient_blocked` (a guest is on the blocklist of the Google connection; remove them from the list or from the meeting), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed).\n\nA field is not valid: a date without time zone or offset, a `client_request_id` that is not a UUID, a missing `send_updates`, a `location` together with `conference` `external`, more than 100 records or 50 guests, a `title` longer than 300 characters. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Schedule a meeting in Google Calendar",
        "description": "Creates an event with a start and end time in one of the user's own Google calendars, invites the guests you list, and links the meeting to the contacts, companies and opportunities you name. The write to Google happens during the request; the meeting appears in the CRM once Google confirms it. The response is a receipt (`202`), not the meeting.\n\n**When to use:** To schedule a meeting with one or more contacts: a demo, a call, a follow-up. Take `connection_uuid` and `calendar_id` from `list_meeting_calendars` (an entry with `writable: true`).\n\n**When not to use:** To change an existing meeting, use `update_meeting`; to cancel it, `cancel_meeting`. To only link records to a meeting that already exists, use `replace_meeting_relations`. All-day events cannot be created, and a meeting cannot be created without a contact. To let people book a slot themselves, use a booking page instead. For something to do without a time slot, use `create_task`.\n\n**Side effects:** This reaches other people. Easymailing writes the event in the user's Google Calendar during the request (refreshing the Google access token if it expired), and Google, not Easymailing, sends the invitations: with `send_updates` `all` every address in `attendees` receives an email invitation from the connected Google account, which is the organizer; `external_only` limits that to guests who do not use Google Calendar; `none` sends no email (the guests are still on the event). With `conference` `google_meet` a Meet link is created and included in the invitation. Nobody is invited who is not in `attendees`. If Google does not answer clearly the receipt is `uncertain`: the event may already exist and the guests may already have been notified, and the confirmation continues in the background without writing again. Once confirmed, a `meeting.scheduled` entry appears in the activity of every related record, done by the person who owns the token (marked «via Maia» when Maia made the request), and guests who are not contacts yet may be created as contacts (and their companies) in the background, as the account's record creation settings dictate, with the owner of the Google connection as responsible. No automation or webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Linking an opportunity also needs `crm.opportunities.work` and `work` access to its pipeline. The calendar must belong to the user who owns the token, be selected, be writable and have Calendar active on its Google connection.",
        "parameters": [],
        "requestBody": {
          "description": "The new MeetingWriteReceipt resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "create meeting",
            "schedule a meeting",
            "book a call",
            "set up a demo",
            "invite to a meeting",
            "add event to calendar",
            "send calendar invite"
          ],
          "es": [
            "crear reunión",
            "programar una reunión",
            "agendar una llamada",
            "organizar una demo",
            "invitar a una reunión",
            "añadir evento al calendario",
            "enviar invitación de calendario"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "crm_meeting_record_not_found",
            "meaning": "A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`."
          },
          {
            "status": 422,
            "code": "crm_meeting_write_rejected",
            "meaning": "The request was refused before reaching Google; the extension `reason` says why: `title_required`, `invalid_interval` (the end is not after the start, or a date is not a real date), `time_zone` (not an IANA name), `conference_url` (missing or not `https://` for an `external` video call), `contact_required` (`contacts` is empty), `attendee_invalid` (more than 50 guests or an invalid email), `attendee_protected` (a guest, or the organizer, is on the protected addresses list and cannot be invited), `recipient_blocked` (a guest is on the blocklist of the Google connection; remove them from the list or from the meeting), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid: a date without time zone or offset, a `client_request_id` that is not a UUID, a missing `send_updates`, a `location` together with `conference` `external`, more than 100 records or 50 guests, a `title` longer than 300 characters. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/meetings/{uuid}": {
      "get": {
        "operationId": "get_meeting",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "200": {
            "description": "Meeting resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Meeting.jsonld-meeting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Meeting-meeting.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_not_found`: The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a meeting",
        "description": "Returns one meeting in full: title and time, description, video call, every guest with their answer, the contacts, companies and opportunities it is related to, the booking that created it if any, and what the user can do with it.\n\n**When to use:** Before changing a meeting, to read its `version`, its guests and `writable_sources`; or to answer questions about a meeting you found with `list_meetings`.\n\n**When not to use:** To find meetings by record or date, use `list_meetings`. To follow the result of a create, change or cancel, use `get_meeting_write_receipt` with the receipt it returned.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.read` capability. The meeting must be visible to the user: it must be in a calendar they own or in one a colleague shared with them.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the meeting. Get it from `list_meetings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "get meeting",
            "meeting details",
            "who is invited",
            "meeting guests",
            "meeting link",
            "show meeting"
          ],
          "es": [
            "ver reunión",
            "detalle de la reunión",
            "quién está invitado",
            "invitados de la reunión",
            "enlace de la reunión",
            "mostrar reunión"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_not_found",
            "meaning": "The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`."
          }
        ]
      },
      "put": {
        "operationId": "update_meeting",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "202": {
            "description": "MeetingWriteReceipt resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt.jsonld-meeting_write_receipt.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt-meeting_write_receipt.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_not_found`: The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_meeting_version_conflict`: `expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_meeting_record_not_found`: A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`.\n\n`crm_meeting_write_rejected`: The change was refused before reaching Google; the extension `reason` says why: `no_changes` (no editable field was sent, or they all equal the current values), `cancelled` (the meeting is cancelled), `all_day_not_supported`, `not_organizer` (only the organizer can change it), `title_required`, `invalid_interval` (`starts_at` and `ends_at` must be sent together, and the end must be after the start), `time_zone`, `conference_url` (an `external` video call needs an `https://` link, and `conference_url` needs `conference`), `last_external_attendee` (the meeting was not created from the CRM and would be left without anybody outside your team, which removes it from the CRM), `attendee_invalid` (more than 50 guests or an invalid email), `attendee_protected` (a guest, or the organizer, is on the protected addresses list and cannot be invited), `recipient_blocked` (a guest is on the blocklist of the Google connection; remove them from the list or from the meeting), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed).\n\nA field is not valid: a date without time zone or offset, `send_updates` missing or not one of the three values, a `location` together with `conference` `external`, more than 50 guests. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Edit or reschedule a meeting",
        "description": "Changes a meeting in Google Calendar: title, description, time, place, video call and guests. Send only the fields to change; omitted fields stay as they are. The write to Google happens during the request. The response is a receipt (`202`).\n\n**When to use:** To reschedule a meeting, rename it, change its place or video call, or add or remove guests. Read the meeting first with `get_meeting` (its `version`, `writable_sources`, guests and `can_edit`).\n\n**When not to use:** To cancel the meeting, use `cancel_meeting`. To change only which CRM records it is related to, use `replace_meeting_relations`, which does not touch Google and invites nobody. All-day, cancelled and other people's meetings cannot be edited. For a recurring meeting only the occurrence you read is changed, never the series.\n\n**Side effects:** This can reach other people. Easymailing patches the event in the user's Google Calendar during the request, and Google, not Easymailing, emails the guests according to `send_updates`: `all` tells every guest about the change, such as the new time, the new video call or being added or removed (people removed from `attendees` receive a cancellation, people added receive an invitation); `external_only` only guests who do not use Google Calendar; `none` nobody. Only what really differs is sent to Google; a request that changes nothing is refused with `no_changes` and sends nothing. If Google does not answer clearly the receipt is `uncertain` and the change may or may not be applied; Easymailing keeps checking in the background and does not write again. Once confirmed, a `meeting.rescheduled` entry appears in the activity of the related records when the time changed, done by the person who owns the token (marked «via Maia» when Maia made the request), and new outside guests may be created as contacts in the background according to the record creation settings.\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the organizer of the event can change it (the connected Google account that owns it), from a calendar of their own that is writable. `can_edit` in `get_meeting` tells you beforehand.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the meeting. Get it from `list_meetings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          }
        ],
        "requestBody": {
          "description": "The updated MeetingWriteReceipt resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "update meeting",
            "reschedule meeting",
            "move meeting",
            "change meeting time",
            "add guest to meeting",
            "remove guest from meeting",
            "edit meeting"
          ],
          "es": [
            "editar reunión",
            "reprogramar reunión",
            "mover reunión",
            "cambiar la hora de la reunión",
            "añadir invitado a la reunión",
            "quitar invitado de la reunión",
            "modificar reunión"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_not_found",
            "meaning": "The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`."
          },
          {
            "status": 409,
            "code": "crm_meeting_version_conflict",
            "meaning": "`expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_meeting_record_not_found",
            "meaning": "A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`."
          },
          {
            "status": 422,
            "code": "crm_meeting_write_rejected",
            "meaning": "The change was refused before reaching Google; the extension `reason` says why: `no_changes` (no editable field was sent, or they all equal the current values), `cancelled` (the meeting is cancelled), `all_day_not_supported`, `not_organizer` (only the organizer can change it), `title_required`, `invalid_interval` (`starts_at` and `ends_at` must be sent together, and the end must be after the start), `time_zone`, `conference_url` (an `external` video call needs an `https://` link, and `conference_url` needs `conference`), `last_external_attendee` (the meeting was not created from the CRM and would be left without anybody outside your team, which removes it from the CRM), `attendee_invalid` (more than 50 guests or an invalid email), `attendee_protected` (a guest, or the organizer, is on the protected addresses list and cannot be invited), `recipient_blocked` (a guest is on the blocklist of the Google connection; remove them from the list or from the meeting), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid: a date without time zone or offset, `send_updates` missing or not one of the three values, a `location` together with `conference` `external`, more than 50 guests. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/meetings/{uuid}/actions/cancel": {
      "put": {
        "operationId": "cancel_meeting",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "202": {
            "description": "MeetingWriteReceipt resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt.jsonld-meeting_write_receipt.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingWriteReceipt-meeting_write_receipt.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_not_found`: The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_meeting_version_conflict`: `expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_meeting_write_rejected`: The cancellation was refused before reaching Google; the extension `reason` says why: `cancelled` (already cancelled), `not_organizer` (only the organizer can cancel it), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed).\n\nA field is not valid: `send_updates` missing or not one of the three values, or `client_request_id` not a UUID. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Cancel a meeting",
        "description": "Cancels the meeting in Google Calendar. The meeting stays in the CRM history with status `cancelled`; it is not deleted and cannot be reopened through the API. The write to Google happens during the request. The response is a receipt (`202`).\n\n**When to use:** When the meeting will not take place. Read it first with `get_meeting` to check `can_cancel`, its `version` and `writable_sources`.\n\n**When not to use:** To move the meeting to another time, use `update_meeting`: a cancelled meeting cannot be brought back. To only unlink CRM records, use `replace_meeting_relations`. For a recurring meeting only the occurrence you read is cancelled, never the series.\n\n**Side effects:** This reaches other people and cannot be undone. Easymailing cancels the event in the user's Google Calendar during the request, and Google, not Easymailing, emails the cancellation to the guests according to `send_updates`: `all` every guest, `external_only` only guests who do not use Google Calendar, `none` nobody (the event is still cancelled in Google). If Google does not answer clearly the receipt is `uncertain` and Easymailing keeps checking in the background. Once confirmed, a `meeting.cancelled` entry appears in the activity of the related records, done by the person who owns the token (marked «via Maia» when Maia made the request).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. Only the organizer of the event can cancel it, from a calendar of their own that is writable. All-day meetings can be cancelled although they cannot be edited.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the meeting. Get it from `list_meetings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          }
        ],
        "requestBody": {
          "description": "The updated MeetingWriteReceipt resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingCancelInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeetingWriteReceipt.MeetingCancelInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "cancel meeting",
            "call off a meeting",
            "delete meeting",
            "cancel the call",
            "cancel calendar event"
          ],
          "es": [
            "cancelar reunión",
            "anular una reunión",
            "eliminar reunión",
            "cancelar la llamada",
            "cancelar evento del calendario"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_not_found",
            "meaning": "The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`."
          },
          {
            "status": 409,
            "code": "crm_meeting_version_conflict",
            "meaning": "`expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_meeting_write_rejected",
            "meaning": "The cancellation was refused before reaching Google; the extension `reason` says why: `cancelled` (already cancelled), `not_organizer` (only the organizer can cancel it), `reason` is the extension that tells you what to fix: `calendar_unavailable` (the pair `connection_uuid` / `calendar_id` is not a calendar of the user's own that is available for scheduling: no Google Calendar connected, the calendar is not selected, or the connection is being removed; connect it in the app or take the pair from `list_meeting_calendars`), `calendar_not_writable` (the calendar is read-only), `client_request_reused` (the `client_request_id` was already used with different data; generate a new one for a new request, or resend the exact same body to retry), `invalid_value` (a field has an invalid value, for example `null` where a value is needed)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid: `send_updates` missing or not one of the three values, or `client_request_id` not a UUID. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/meetings/{uuid}/relations": {
      "put": {
        "operationId": "replace_meeting_relations",
        "tags": [
          "Meetings"
        ],
        "responses": {
          "200": {
            "description": "Meeting resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Meeting.jsonld-meeting.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Meeting-meeting.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`crm_meeting_not_found`: The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_meeting_version_conflict`: `expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_meeting_record_not_found`: A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`.\n\n`crm_meeting_write_rejected`: The change was refused; the extension `reason` says why: `series_not_supported` (`scope` `series` on a meeting that is not part of a series), `relation_from_participant` (you tried to unlink a contact who is a guest, or a company related through a guest's email domain).\n\nA field is not valid: `scope` not `occurrence` or `series`, a list missing, an IRI that is not `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`, more than 100 per list. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Replace the records linked to a meeting",
        "description": "Sets the contacts, companies and opportunities a meeting is linked to, for this meeting or for its whole recurring series. You send the complete final lists and the difference is applied. It does not touch Google Calendar and invites nobody. The response is the updated meeting.\n\n**When to use:** To attach a meeting to a company or opportunity, or to unlink a record that does not belong to it. Read the meeting first with `get_meeting`: the lists you send replace the current ones, so start from `contacts`, `companies` and `opportunities` as returned.\n\n**When not to use:** To invite or remove people, use `update_meeting` with `attendees`. A contact who is a guest stays linked while they are a guest; remove them from the guests first, wait for the receipt to be `confirmed`, then unlink them. To change the time or title, use `update_meeting`.\n\n**Side effects:** No email is sent to anyone and Google is not called. Linking a record to the meeting adds a `meeting.scheduled` entry to the activity of that record, done by the person who owns the token (marked «via Maia» when Maia made the request), once. Every change raises the `version` of the meeting (and of the series with `scope` `series`).\n\n**Permissions:** Requires a CRM seat and the `crm.contacts_companies.write` capability. It does not require being the organizer or owning the calendar. Linking or unlinking an opportunity also needs the `crm.opportunities.work` capability and `work` access to its pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the meeting. Get it from `list_meetings`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          }
        ],
        "requestBody": {
          "description": "The updated Meeting resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Meeting.MeetingRelationsInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Meeting.MeetingRelationsInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "link meeting to company",
            "attach meeting to deal",
            "meeting related records",
            "unlink contact from meeting",
            "change meeting relations"
          ],
          "es": [
            "vincular reunión a empresa",
            "asociar reunión a una oportunidad",
            "registros relacionados de la reunión",
            "desvincular contacto de la reunión",
            "cambiar relaciones de la reunión"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "crm_meeting_not_found",
            "meaning": "The meeting does not exist in this account, is not available any more, or is not visible to the user (it is not in a calendar the user owns or that was shared with them). Find it with `list_meetings`."
          },
          {
            "status": 409,
            "code": "crm_meeting_version_conflict",
            "meaning": "`expected_version` is not the current version of the meeting, or Easymailing is still reading the event from Google and asked you to retry. Nothing was saved. The extension `current_version` gives the current version (when known); read the meeting again with `get_meeting` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_meeting_record_not_found",
            "meaning": "A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist in this account, or the user cannot see or work it (an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline). Nothing was saved. Find the records with `list_contacts`, `list_companies` or `list_opportunities`."
          },
          {
            "status": 422,
            "code": "crm_meeting_write_rejected",
            "meaning": "The change was refused; the extension `reason` says why: `series_not_supported` (`scope` `series` on a meeting that is not part of a series), `relation_from_participant` (you tried to unlink a contact who is a guest, or a company related through a guest's email domain)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A field is not valid: `scope` not `occurrence` or `series`, a list missing, an IRI that is not `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`, more than 100 per list. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/audiences/{audienceUuid}/members": {
      "get": {
        "operationId": "list_audience_members",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Member.jsonld-member.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Member-member.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List members",
        "description": "Lists the members of one audience, most recently updated first, with their status, groups, custom field values and engagement stats. A member is one person's subscription to this audience. Each member carries its `contact`, the IRI of the person.\n\n**When to use:** To browse or export the people of an audience, or to find members by status, source, group or form. To look a person up by email in this audience, filter with `email`.\n\n**When not to use:** To find out in which audiences a person is, whatever the audience, use `search_member`. To read one member whose UUID you know, use `get_audience_member`. To list the people of the account whatever their audiences, with their company, tags and attributes, use `list_contacts`.\n\n**Filters:**\nAll filters are optional and combine with AND.\n- `email`: partial match on the email address.\n- `phone`: exact match, E.164.\n- `status` / `sms_status`: exact subscription status of the email / SMS channel.\n- `source` and `email_opt_in_source`: how the member entered the audience (both filter the same column).\n- `sms_opt_in_source`: how the member opted in to SMS.\n- `groups`: comma-separated group UUIDs; only members in all of them.\n- `suscription_form`: members who signed up through that form.\nSorting: `order[field]=asc|desc` with `createdAt`, `updatedAt`, `status`, `source`, `contact.email`, `uniqueOpens`, `uniqueClicks`, `deliveredEmails`, `orders`, `revenue` or `rating`. Default: `updatedAt` descending.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.read` and `marketing.audiences.read` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "email",
            "in": "query",
            "description": "Part of an email address. Returns the members whose email contains this text (partial match).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana@example.com"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Email subscription status. Exact value: `suscriber.status.confirmed`, `suscriber.status.unconfirmed` (waiting for confirmation), `suscriber.status.unsuscribed` (the person unsubscribed) or `suscriber.status.unsuscribed.admin` (unsubscribed by an administrative action or by the system, for example after bounces). The API spells it `unsuscribed`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "suscriber.status.confirmed"
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Phone number in E.164 format. Exact match.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "+34612345678"
          },
          {
            "name": "sms_status",
            "in": "query",
            "description": "SMS subscription status. Exact value: `suscriber.status.confirmed`, `suscriber.status.unconfirmed` (waiting for confirmation), `suscriber.status.unsuscribed` (the person unsubscribed) or `suscriber.status.unsuscribed.admin` (unsubscribed by an administrative action or by the system, for example after bounces). The API spells it `unsuscribed`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "suscriber.status.confirmed"
          },
          {
            "name": "email_opt_in_source",
            "in": "query",
            "description": "How the member entered the audience, exact value: `suscriber.source.manual`, `suscriber.source.api`, `suscriber.source.webform` or `suscriber.source.imported`. It filters the same column as `source`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "suscriber.source.api"
          },
          {
            "name": "sms_opt_in_source",
            "in": "query",
            "description": "How the member opted in to SMS, exact stored value (for example `suscriber.source.api`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "suscriber.source.api"
          },
          {
            "name": "source",
            "in": "query",
            "description": "How the member entered the audience, exact value: `suscriber.source.manual`, `suscriber.source.api`, `suscriber.source.webform` or `suscriber.source.imported`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "suscriber.source.webform"
          },
          {
            "name": "groups",
            "in": "query",
            "description": "UUIDs of groups, separated by commas. Only members who belong to all of the listed groups are returned.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd,f8412e0b-4250-4db0-abee-ac7136379f3a"
          },
          {
            "name": "suscription_form",
            "in": "query",
            "description": "UUID of a subscription form. Only members who signed up through that form are returned.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3c7e9b12-84d0-4a6f-b1e5-0d9a2f6c8e47"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subscribers",
            "contacts of a list",
            "recipients",
            "people in a list",
            "find subscriber by email in list"
          ],
          "es": [
            "suscriptores",
            "contactos de la lista",
            "destinatarios",
            "personas de una lista",
            "buscar suscriptor por email"
          ]
        }
      },
      "post": {
        "operationId": "create_audience_member",
        "tags": [
          "Members"
        ],
        "responses": {
          "201": {
            "description": "Member resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist in this account. Look up the right `audienceUuid` with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: neither `email` nor `phone` was sent; the email or phone is invalid; the phone belongs to a different contact than the email; the account has reached its subscriber limit; or the audience has no default sender and reply-to but an email must be sent (set them with `update_audience`, or disable the emails with the query flags). Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create or update a member",
        "description": "Adds a person to an audience and requests their email subscription, or merges the data you send into the member if that person is already in the audience. People are matched across the whole account by email, then by phone, so the same person is one contact with one member per audience. The response includes the `contact` IRI of the person.\n\n**When to use:** To subscribe a new person or re-send a sign-up from a form, store or integration. It is safe to call again for the same email. Members are also created by `create_store_customer` (shop buyers) and by the public subscription forms.\n\n**When not to use:** To create a person without subscribing them to any audience, use `create_contact`. To subscribe a contact you already have by UUID, use `subscribe_contact_to_audience`. To change data of a member you already have by UUID, use `update_audience_member`. To subscribe an existing member again use `member_subscribe`; to unsubscribe one use `member_unsubscribe`. To see in which audiences an email already is, use `search_member`. To register a shop buyer together with their customer record, use `create_store_customer`.\n\n**Side effects:** What the person receives depends on their state. A new person (or one still unconfirmed) in a double opt-in audience gets a confirmation email and stays `suscriber.status.unconfirmed` until they confirm, unless `disable_double_opt_in=true`. In a single opt-in audience, or with `disable_double_opt_in=true`, they become `suscriber.status.confirmed` at once: the `member_subscribed` webhook fires, automations triggered by a subscription start, and the welcome email is sent if the audience has one (unless `disable_welcome_email=true`). An email on the audience's suppression list always gets a confirmation email instead. Someone who unsubscribed on their own (`suscriber.status.unsuscribed`) is not subscribed again: they get a confirmation email and stay unsubscribed until they confirm, even with `disable_double_opt_in=true`. Someone whose status is `suscriber.status.unsuscribed.admin` (unsubscribed through the API, by an administrator or by the cleaning rules) can be subscribed again normally: in a single opt-in audience, or with `disable_double_opt_in=true`, this call confirms them again at once unless their address is on the suppression list. Do not use it to bring back a person who asked to leave. An already confirmed member only gets their data updated. Confirmation emails are not repeated within 15 minutes. If a phone is sent, the SMS subscription follows the audience's SMS opt-in (a confirmation SMS in double opt-in, unless `disable_sms_double_opt_in=true`). Groups assigned fire the `member_added_to_group` webhook and group automations once the member is confirmed.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience to add the person to. If the account has several audiences, confirm with the user which one before calling. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "disable_double_opt_in",
            "in": "query",
            "description": "If true, a person who is not yet subscribed becomes confirmed at once, without the confirmation email of a double opt-in audience. It does not apply to someone who unsubscribed on their own: they always get the confirmation email. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "disable_welcome_email",
            "in": "query",
            "description": "If true, the welcome email of the audience is not sent when the member becomes confirmed. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "disable_sms_double_opt_in",
            "in": "query",
            "description": "If true and a phone number is sent, the member is subscribed to SMS at once, without the confirmation SMS of a double opt-in audience. Default false.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          }
        ],
        "requestBody": {
          "description": "The new Member resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Member.jsonld-member.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Member-member.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subscribe",
            "add subscriber",
            "add contact to list",
            "sign up",
            "upsert",
            "register email"
          ],
          "es": [
            "suscribir",
            "añadir suscriptor",
            "añadir contacto a la lista",
            "dar de alta",
            "alta de email",
            "apuntar a la lista"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{memberUuid}/activities": {
      "get": {
        "operationId": "list_member_activities",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "MemberActivity collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MemberActivity.jsonld-member_activity.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MemberActivity-member_activity.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Check both UUIDs: the member must belong to the audience in the path.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List member activities",
        "description": "Lists what has happened to one member, newest first: emails sent, opens and clicks, bounces, subscription changes, group changes, automations and orders. Each item has a `type`, a `data` object that depends on the type and a `created_at` date. Accounts already on the new Customer App get an empty list, because their activity is not stored in this history.\n\n**When to use:** To see the history of one subscriber before deciding what to do with them, or to check whether they opened or clicked a campaign.\n\n**When not to use:** To read the member's current status, groups and totals, use `get_audience_member`.\n\n**Filters:** `type`: return only activities of one type. Items are always sorted newest first.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.read` and `marketing.audiences.read` capabilities.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Return only activities of this type.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "email_sent",
                "open_campaign",
                "click_campaign",
                "bounce",
                "suscribe",
                "unsuscribe",
                "complaint",
                "add_to_group",
                "remove_from_group",
                "start_automation",
                "complete_automation",
                "exit_automation",
                "new_customer",
                "new_order",
                "form_completed"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "open_campaign"
          },
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "memberUuid",
            "in": "path",
            "description": "UUID of the member (the person's subscription to this audience). Get it from `list_audience_members`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "history",
            "timeline",
            "engagement history",
            "opens and clicks of subscriber",
            "subscriber activity history",
            "subscriber activity"
          ],
          "es": [
            "historial",
            "actividad del suscriptor",
            "línea de tiempo",
            "aperturas y clics del contacto",
            "historial de actividad del suscriptor"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{uuid}": {
      "get": {
        "operationId": "get_audience_member",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Find its UUID with `list_audience_members` or `search_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a member",
        "description": "Returns one member: the person's contact data, email and SMS subscription status, source and dates, groups, custom field values, GDPR consent, subscription form and engagement stats. The `contact` property is the IRI of the person behind the member.\n\n**When to use:** To read the current state of a subscriber you already identified, for example before changing their subscription or groups.\n\n**When not to use:** To find a member by email, use `search_member` (all audiences) or `list_audience_members` with the `email` filter (one audience). For what happened to them over time, use `list_member_activities`. For the person's own data, company, tags and attributes, use `get_contact` with the `contact` IRI; for all the audiences the person is in, use `list_contact_audience_memberships`.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.read` and `marketing.audiences.read` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subscriber details",
            "member details",
            "subscription status",
            "read member"
          ],
          "es": [
            "detalle del suscriptor",
            "ficha del suscriptor",
            "estado de la suscripción",
            "ver suscriptor"
          ]
        }
      },
      "put": {
        "operationId": "update_audience_member",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Find its UUID with `list_audience_members` or `search_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: the new email or phone already belongs to another contact in the account, or the email is invalid. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a member",
        "description": "Changes the contact data, groups, custom field values or consent of an existing member. Fields you leave out keep their value. WARNING: changing the `email` or the `phone` to a different value resets the subscription of that channel for the whole person, in EVERY audience they belong to, not only this one: their email `status` (or `sms_status`) becomes empty, so they stop being a confirmed recipient everywhere until each of their members is subscribed again. Any other field leaves the subscription status as it is.\n\n**When to use:** To correct or complete the data of a member identified by UUID: name, location, custom fields or groups. Change the email or phone only when the user explicitly asks for it, after telling them that the person will have to be subscribed again in all their audiences.\n\n**When not to use:** To subscribe or unsubscribe someone, use `member_subscribe` or `member_unsubscribe`. To add or remove one group without resending the whole list, use `member_add_from_group` or `member_remove_from_group`. To add a new person, use `create_audience_member`. There is no way to change the email and keep the person subscribed: afterwards the person has to be subscribed again with `member_subscribe`. The name, email, phone and location edited here belong to the person's contact and are shared by all their audiences; the same data can also be changed with `update_contact`, which additionally handles company, owner, tags and attributes.\n\n**Side effects:** If `email` or `phone` really changes (a different address, ignoring case, or a different number): in every audience of the person, the email `status` (for `email`) or `sms_status` (for `phone`) is set to empty, and the consent recorded for that channel is invalidated. No confirmation message is sent to the new address or number, so the person is not subscribed again until you call `member_subscribe` on each audience (it may not be able to do it, see that operation). Groups the member enters or leaves because of the new `groups` list fire the `member_added_to_group` and `member_removed_from_group` webhooks and the group automations.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "requestBody": {
          "description": "The updated Member resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Member.jsonld-member.write.update_audience_member"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Member-member.write.update_audience_member"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit subscriber",
            "change subscriber data",
            "modify subscriber",
            "update custom fields of subscriber",
            "change subscriber email"
          ],
          "es": [
            "editar suscriptor",
            "modificar suscriptor",
            "cambiar datos del suscriptor",
            "actualizar campos personalizados",
            "cambiar el email de un suscriptor"
          ]
        }
      },
      "delete": {
        "operationId": "delete_audience_member",
        "tags": [
          "Members"
        ],
        "responses": {
          "204": {
            "description": "Member resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Find its UUID with `list_audience_members` or `search_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a member",
        "description": "Permanently deletes the member's subscription to this audience, together with the ecommerce customer records linked to it. The person stays as a contact in the account and in their other audiences.\n\n**When to use:** Only when the user explicitly asks to remove a person from this audience for good.\n\n**When not to use:** To stop sending to someone but keep their record and history, use `member_unsubscribe`. To remove them from one group only, use `member_remove_from_group`. To delete the person from the account altogether, use `delete_contact`; deleting a member never deletes the contact. If you have the contact UUID instead of the member UUID, `delete_contact_audience_membership` does the same.\n\n**Side effects:** The membership and its history in this audience (groups, custom field values, activity) are deleted and cannot be recovered through the API; the ecommerce customer records linked to it are deleted too. No webhook fires and no automation is notified. The person stays as a contact and in their other audiences.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.delete` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove subscriber",
            "erase member",
            "delete member from audience"
          ],
          "es": [
            "eliminar suscriptor",
            "borrar suscriptor de la lista",
            "quitar de la lista"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{uuid}/actions/add_to_group/{groupUuid}": {
      "put": {
        "operationId": "member_add_from_group",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member or group does not exist in this audience. Check the member and group UUIDs and that both belong to the audience in the path.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The member is already in the group. Nothing was changed; no action needed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Add a member to a group",
        "description": "Puts one member in one group of the same audience, keeping the member's other groups. The request has no body.\n\n**When to use:** To tag a single subscriber with a group, for example after a purchase or a form answer.\n\n**When not to use:** To replace all the groups of a member at once, use `update_audience_member`. To add many members matching a rule, use `async_task_group_add_from_conditions` or `async_task_segment_add_to_group`.\n\n**Side effects:** Fires the `member_added_to_group` webhook and any automation triggered by joining a group, and records an entry in the member's activity. It works whatever the subscription status of the member is.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "groupUuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "assign group",
            "put member in group",
            "add member to group",
            "group subscriber"
          ],
          "es": [
            "asignar grupo",
            "meter en un grupo",
            "añadir a grupo",
            "agrupar suscriptor"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{uuid}/actions/remove_from_group/{groupUuid}": {
      "put": {
        "operationId": "member_remove_from_group",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member or group does not exist in this audience. Check the member and group UUIDs and that both belong to the audience in the path.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The member is not in the group. Nothing was changed; no action needed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Remove a member from a group",
        "description": "Takes one member out of one group, keeping their other groups. The member stays in the audience. The request has no body.\n\n**When to use:** To untag a single subscriber from a group.\n\n**When not to use:** To replace all the groups of a member, use `update_audience_member`. To empty a whole group, use `async_task_group_clear`. To remove the person from the audience, use `delete_audience_member`.\n\n**Side effects:** Fires the `member_removed_from_group` webhook and any automation triggered by leaving a group, and records an entry in the member's activity.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "groupUuid",
            "in": "path",
            "description": "UUID of the group. Get it from `list_audience_groups`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unassign group",
            "take member out of group",
            "remove member from group"
          ],
          "es": [
            "sacar de un grupo",
            "desasignar grupo",
            "quitar de grupo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{uuid}/actions/subscribe": {
      "put": {
        "operationId": "member_subscribe",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "You selected a single channel and it is already confirmed. Nothing changed; no action needed. If you select both channels and both are already confirmed, the answer is 200 with no change instead.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Find its UUID with `list_audience_members` or `search_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed: `channels` accepts only `email` and `sms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Subscribe a member again",
        "description": "Asks to subscribe again the email channel, the SMS channel or both of a member who already exists in the audience. It is a request, not a guarantee: the channel is confirmed at once only in some cases (see side effects); otherwise the person gets a confirmation message and the status does not change until they confirm.\n\n**When to use:** When a person who never confirmed, or who was unsubscribed through `member_unsubscribe` or after changing their email or phone, asks to receive messages again and you have their member UUID. Check the `status` and `sms_status` in the response: they tell what really happened.\n\n**When not to use:** To add someone who is not in the audience yet, use `create_audience_member`. To unsubscribe, use `member_unsubscribe`. Never use it to override a person who unsubscribed themselves: in that case it only sends them a confirmation email. If you have the contact UUID instead of the member UUID, `subscribe_contact_to_audience` does the same.\n\n**Side effects:** Email channel. In a double opt-in audience the person always gets a confirmation email and the status changes only when they confirm. In a single opt-in audience the email is confirmed at once, except when the person unsubscribed themselves (`suscriber.status.unsuscribed`) or the address is on the audience's suppression list: then they get a confirmation email and stay as they were until they confirm. Confirmation emails are not repeated within 15 minutes. SMS channel: in an audience with SMS double opt-in the status becomes `suscriber.status.unconfirmed` and a confirmation SMS is sent; otherwise it is confirmed at once. When a channel is confirmed at once, the `member_subscribed` or `member_sms_subscribed` webhook fires, the automations triggered by a subscription start and, for email, the audience's welcome email is sent if it has one. A channel the person has no email or phone for is ignored. A channel whose consent was recorded by the new Customer App (this includes a channel invalidated by changing the email or phone) is left as it is and the call still answers 200: always read `status` and `sms_status` in the response. The `disable_double_opt_in` and `disable_welcome_email` flags of member creation do not apply here.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "requestBody": {
          "description": "The updated Member resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Member.jsonld-member.action.member_subscribe"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Member-member.action.member_subscribe"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "resubscribe",
            "reactivate subscriber",
            "opt in again",
            "resume emails",
            "request confirmation again"
          ],
          "es": [
            "volver a suscribir",
            "reactivar suscriptor",
            "resuscribir",
            "reactivar contacto",
            "pedir confirmación otra vez"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/members/{uuid}/actions/unsubscribe": {
      "put": {
        "operationId": "member_unsubscribe",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Member.jsonld-member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member-member.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "None of the selected channels is currently confirmed, or the person has no email or phone for them, so there is nothing to unsubscribe. Check the member with `get_audience_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The member does not exist in this audience. Find its UUID with `list_audience_members` or `search_member`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed: `channels` accepts only `email` and `sms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Unsubscribe a member",
        "description": "Unsubscribes the confirmed email channel, SMS channel or both of one member of this audience. The member keeps their record, groups and history, but stops receiving campaigns and automations from this audience. Only channels that are currently confirmed change.\n\n**When to use:** When a person asks to stop receiving messages, or when the user wants to stop sending to one person without deleting them.\n\n**When not to use:** To delete the person from the audience, use `delete_audience_member`. To subscribe them again, use `member_subscribe`. For many members of a segment there is `async_task_segment_unsubscribe`, but it is NOT the bulk version of this operation: it changes the status directly, without webhook, without cancelling automations and without the other effects listed here. If you have the contact UUID instead of the member UUID, `unsubscribe_contact_from_audience` does the same.\n\n**Side effects:** Email: the status becomes `suscriber.status.unsuscribed.admin`, the unsubscription is recorded in the member's activity, the automations the member is in are cancelled (`member_automation_cancelled` webhook) and the `member_unsubscribed` webhook fires. SMS: the status becomes `suscriber.status.unsuscribed.admin` and the `member_sms_unsubscribed` webhook fires (automations are not cancelled for an SMS-only unsubscription). The address is not added to the audience's suppression list, so `create_audience_member` or `member_subscribe` can bring the person back in a single opt-in audience without a confirmation.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.write` and `marketing.audiences.write` capabilities.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the member belongs to. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the member, which is the person's subscription to this audience (not a person id). Get it from `list_audience_members` or `search_member`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          }
        ],
        "requestBody": {
          "description": "The updated Member resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Member.jsonld-member.action"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Member-member.action"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opt out",
            "stop emails",
            "remove from mailing",
            "cancel subscription of subscriber"
          ],
          "es": [
            "darse de baja",
            "dar de baja",
            "baja de suscriptor",
            "dejar de enviar emails",
            "cancelar suscripción del suscriptor"
          ]
        }
      }
    },
    "/members/search": {
      "get": {
        "operationId": "search_member",
        "tags": [
          "Members"
        ],
        "responses": {
          "200": {
            "description": "Member collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Member.jsonld-member.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Member-member.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Search members by email",
        "description": "Finds a person by email across all audiences and returns one member record for each audience they belong to. The result is not paginated.\n\n**When to use:** When you have an email and do not know the audience or the member UUID: to check whether the person is already subscribed, in which audiences and with which status.\n\n**When not to use:** To list or filter the members of one audience, use `list_audience_members`. To add the person, use `create_audience_member`. To find a person by name or phone, or to see their company and tags, use `list_contacts` with `search`; to list the audiences of a contact you already have, use `list_contact_audience_memberships`.\n\n**Filters:** Only `email` works (partial match). The other query parameters listed for this operation are accepted but ignored.\n\n**Permissions:** Requires the manager role or higher, or the `contacts.read` and `marketing.audiences.read` capabilities.",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "description": "Part of an email address. Returns every member of every audience whose contact email contains this text (partial match). Without it the result is empty.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana@example.com"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "sms_status",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "email_opt_in_source",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "sms_opt_in_source",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "source",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "groups",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "suscription_form",
            "in": "query",
            "description": "Ignored by this operation (it only uses `email`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "find subscriber",
            "lookup email",
            "is this email subscribed",
            "which lists is this email in"
          ],
          "es": [
            "buscar suscriptor",
            "buscar por email",
            "está suscrito este email",
            "en qué listas está este email"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/merge_tags": {
      "get": {
        "operationId": "list_audience_merge_tags",
        "tags": [
          "Merge tags"
        ],
        "responses": {
          "200": {
            "description": "MergeTag collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MergeTag.jsonld-merge_tag.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MergeTag-merge_tag.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the role or capability listed under Permissions. Use one that does; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List audience merge tags",
        "description": "Lists the placeholders you can put in an email sent to an audience: member data and the audience's custom fields, special links such as unsubscribe, and dynamic content blocks. Each entry has the exact `template_tag` to paste. The list is not paginated.\n\n**When to use:** When writing or editing email content that must be personalized or needs a mandatory link: read the list first so you use tags that exist for that audience.\n\n**When not to use:** To see the custom fields themselves, with their types and options, use `list_audience_custom_fields`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience whose tags you want. Get it from `list_audiences`. An unknown UUID returns an empty list, not an error.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "personalization",
            "placeholders",
            "template variables",
            "dynamic tags",
            "unsubscribe link tag"
          ],
          "es": [
            "personalización",
            "variables de plantilla",
            "etiquetas dinámicas",
            "enlace de baja",
            "campos de combinación"
          ]
        }
      }
    },
    "/notes": {
      "get": {
        "operationId": "list_notes",
        "tags": [
          "Notes"
        ],
        "responses": {
          "200": {
            "description": "Note collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Note.jsonld-note.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Note-note.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The contact, company or opportunity does not exist in this account, or the user cannot see it. Find it with `list_contacts`, `list_companies` or the opportunities list.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_note_context_required`: None of `contact`, `company` and `opportunity` was sent. Send exactly one.\n\n`crm_note_context_ambiguous`: More than one of `contact`, `company` and `opportunity` was sent. Send exactly one.\n\n`crm_note_invalid_uuid`: The record filter is not a valid UUID.\n\n`itemsPerPage` is outside 1 to 50, a `cursor[gt]` or `cursor[lt]` that is malformed or was issued for another record, or both cursors in the same request. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the notes of a record",
        "description": "Lists the notes written on one contact, company or opportunity, newest first, with their text, author and dates.\n\n**When to use:** To read what has been written down about a record: previous calls, agreements, context before a meeting or a follow-up.\n\n**When not to use:** You must name the record: there is no list of all the notes of the account. To read one note whose UUID you know, use `get_note`. For things that have to be done, with a due date and a person responsible, use `list_tasks`.\n\n**Filters:** Exactly one of `contact`, `company` or `opportunity` is required, with the UUID of the record. A UUID that does not exist, or that the user cannot see, gives `404`. The order is fixed (newest first); there is no `order` parameter and no text search.\nPagination: notes are paged with `itemsPerPage` (default 30, maximum 50) and an opaque `cursor[gt]`: to read the next page, call again with the same record and the `cursor[gt]` of the `hydra:next` link of the previous response. The response gives the total number of notes of the record in `hydra:totalItems`; keep following `hydra:next` until a page comes back empty. `hydra:previous` takes you back: it carries the `cursor[lt]` of the first note of the page and returns the page just before it; use it the same way, with the same record.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.read` capability. The note is only visible to users who can see the record it belongs to: `crm.contacts_companies.read` for a contact or company, `crm.opportunities.read` plus access to the pipeline for an opportunity.",
        "parameters": [
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: its notes. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: its notes. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: its notes. Send exactly one of `contact`, `company` and `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Notes per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same record.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxfQ"
          },
          {
            "name": "cursor[lt]",
            "in": "query",
            "description": "Opaque cursor of the previous page, taken from the `hydra:previous` link of the response. Use it only with the same record. Do not send it together with `cursor[gt]`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxfQ"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "notes",
            "notes of a contact",
            "contact notes",
            "company notes",
            "what do we know about",
            "meeting notes",
            "call notes"
          ],
          "es": [
            "notas",
            "notas de un contacto",
            "notas de la empresa",
            "qué sabemos de",
            "notas de reunión",
            "notas de llamada",
            "apuntes"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The contact, company or opportunity does not exist in this account, or the user cannot see it. Find it with `list_contacts`, `list_companies` or the opportunities list."
          },
          {
            "status": 422,
            "code": "crm_note_context_required",
            "meaning": "None of `contact`, `company` and `opportunity` was sent. Send exactly one."
          },
          {
            "status": 422,
            "code": "crm_note_context_ambiguous",
            "meaning": "More than one of `contact`, `company` and `opportunity` was sent. Send exactly one."
          },
          {
            "status": 422,
            "code": "crm_note_invalid_uuid",
            "meaning": "The record filter is not a valid UUID."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`itemsPerPage` is outside 1 to 50, a `cursor[gt]` or `cursor[lt]` that is malformed or was issued for another record, or both cursors in the same request. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_note",
        "tags": [
          "Notes"
        ],
        "responses": {
          "201": {
            "description": "Note resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Note.jsonld-note.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Note-note.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The record in `record` does not exist in this account, or the user cannot see it. Nothing was saved.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_note_context_required`: `record` is missing or is not the IRI of a contact, company or opportunity.\n\n`crm_note_invalid_uuid`: The UUID inside `record` is not valid.\n\n`crm_note_body_empty`: `body_html` is missing, empty, or has no visible content after cleaning. Send some text.\n\n`crm_note_body_too_long`: `body_html` exceeds 10,000 visible characters or 60,000 bytes. Shorten it or split it into two notes.\n\n`crm_note_title_invalid`: `title` is not valid: it is longer than 200 characters.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a note",
        "description": "Writes a note on one contact, company or opportunity: free text with an optional title.\n\n**When to use:** To keep information on a record: what was said in a call or meeting, an agreement, a preference, context for whoever talks to the person next.\n\n**When not to use:** For something that has to be done, with a due date or a person responsible, use `create_task`. To change an existing note, use `update_note`. A note cannot be attached to two records: write it on the most relevant one. To store data fields of the record (job title, budget, lead source), use `update_contact` or `update_company`.\n\n**Side effects:** A `note.created` entry appears in the activity of the record, done by the person who owns the token (marked «via Maia» when Maia made the request). The note is authored by that person, who can edit and delete it later. Nothing is sent to anyone and no automation or webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see the record the note belongs to (`crm.contacts_companies.read` for a contact or company, `crm.opportunities.read` plus access to the pipeline for an opportunity).",
        "parameters": [],
        "requestBody": {
          "description": "The new Note resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Note.NoteCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Note.NoteCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create note",
            "add note",
            "write a note on a contact",
            "log a call",
            "save meeting notes",
            "note about a company"
          ],
          "es": [
            "crear nota",
            "añadir nota",
            "apuntar una nota en un contacto",
            "registrar una llamada",
            "guardar notas de la reunión",
            "nota sobre una empresa"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The record in `record` does not exist in this account, or the user cannot see it. Nothing was saved."
          },
          {
            "status": 422,
            "code": "crm_note_context_required",
            "meaning": "`record` is missing or is not the IRI of a contact, company or opportunity."
          },
          {
            "status": 422,
            "code": "crm_note_invalid_uuid",
            "meaning": "The UUID inside `record` is not valid."
          },
          {
            "status": 422,
            "code": "crm_note_body_empty",
            "meaning": "`body_html` is missing, empty, or has no visible content after cleaning. Send some text."
          },
          {
            "status": 422,
            "code": "crm_note_body_too_long",
            "meaning": "`body_html` exceeds 10,000 visible characters or 60,000 bytes. Shorten it or split it into two notes."
          },
          {
            "status": 422,
            "code": "crm_note_title_invalid",
            "meaning": "`title` is not valid: it is longer than 200 characters."
          }
        ]
      }
    },
    "/notes/{uuid}": {
      "get": {
        "operationId": "get_note",
        "tags": [
          "Notes"
        ],
        "responses": {
          "200": {
            "description": "Note resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Note.jsonld-note.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Note-note.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_note`: The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a note",
        "description": "Returns one note with its full text, the record it belongs to, author, dates and current `version`.\n\n**When to use:** To read the current text of a note you already identified, for example before editing it.\n\n**When not to use:** To find the notes of a record, use `list_notes`. To read tasks, use `list_tasks` or `get_task`.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.read` capability. The note is only visible to users who can see the record it belongs to: `crm.contacts_companies.read` for a contact or company, `crm.opportunities.read` plus access to the pipeline for an opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the note. Get it from `list_notes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "note details",
            "read note",
            "view note",
            "note text"
          ],
          "es": [
            "detalle de la nota",
            "leer nota",
            "ver nota",
            "texto de la nota"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_note",
            "meaning": "The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`."
          }
        ]
      },
      "put": {
        "operationId": "update_note",
        "tags": [
          "Notes"
        ],
        "responses": {
          "200": {
            "description": "Note resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Note.jsonld-note.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Note-note.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`crm_note_forbidden`: The user is neither the author of the note nor an account admin with a token that reaches account administration. Ask one of them to make the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_note`: The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_note_version_conflict`: You sent `expected_version` and the note has changed since you read it. Nothing was saved. The extension `current_version` gives the current version; read the note again with `get_note` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_note_body_empty`: `body_html` is missing, empty, or has no visible content after cleaning. Send some text.\n\n`crm_note_body_too_long`: `body_html` exceeds 10,000 visible characters or 60,000 bytes. Shorten it or split it into two notes.\n\n`crm_note_title_invalid`: `title` is not valid: it is longer than 200 characters.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a note",
        "description": "Changes the title or the text of a note. Fields you leave out keep their value; `title: null` removes the title. The record the note belongs to cannot be changed.\n\n**When to use:** To correct or complete a note. Only the author of the note or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope) can do it; notes written through the API belong to the person who owns the token, so that person can edit them later.\n\n**When not to use:** To move a note to another record, create a new one with `create_note` and delete this one with `delete_note`. For work with a deadline, use `create_task`.\n\n**Side effects:** Saving a text that really differs adds a `note.edited` entry to the activity of the record, done by the person who owns the token (marked «via Maia» when Maia made the request); several quick edits by the same person merge into one entry. Saving the same title and text changes nothing. Nothing is sent and no automation or webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see the record the note belongs to (`crm.contacts_companies.read` for a contact or company, `crm.opportunities.read` plus access to the pipeline for an opportunity). Only the author of the note or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope) can do it; notes written through the API belong to the person who owns the token, so that person can edit them later.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the note. Get it from `list_notes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          }
        ],
        "requestBody": {
          "description": "The updated Note resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Note.NoteUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Note.NoteUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit note",
            "update note",
            "correct a note",
            "change note text",
            "rename note"
          ],
          "es": [
            "editar nota",
            "modificar nota",
            "corregir una nota",
            "cambiar el texto de la nota",
            "cambiar título de la nota"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_note",
            "meaning": "The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`."
          },
          {
            "status": 403,
            "code": "crm_note_forbidden",
            "meaning": "The user is neither the author of the note nor an account admin with a token that reaches account administration. Ask one of them to make the change."
          },
          {
            "status": 409,
            "code": "crm_note_version_conflict",
            "meaning": "You sent `expected_version` and the note has changed since you read it. Nothing was saved. The extension `current_version` gives the current version; read the note again with `get_note` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_note_body_empty",
            "meaning": "`body_html` is missing, empty, or has no visible content after cleaning. Send some text."
          },
          {
            "status": 422,
            "code": "crm_note_body_too_long",
            "meaning": "`body_html` exceeds 10,000 visible characters or 60,000 bytes. Shorten it or split it into two notes."
          },
          {
            "status": 422,
            "code": "crm_note_title_invalid",
            "meaning": "`title` is not valid: it is longer than 200 characters."
          }
        ]
      },
      "delete": {
        "operationId": "delete_note",
        "tags": [
          "Notes"
        ],
        "responses": {
          "204": {
            "description": "Note resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`crm_note_forbidden`: The user is neither the author of the note nor an account admin with a token that reaches account administration. Ask one of them to delete it.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_note`: The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_note_version_conflict`: You sent `expected_version` and the note has changed since you read it. Nothing was saved. The extension `current_version` gives the current version; read the note again with `get_note` and decide whether to repeat the change.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_note_expected_version_invalid`: `expected_version` is not a positive integer. Send the current version of the note or leave it out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a note",
        "description": "Permanently deletes a note. There is no archive and no undo.\n\n**When to use:** Only when the user explicitly asks to delete this note, for example one written on the wrong record.\n\n**When not to use:** To correct the text, use `update_note`. To write the note again on the right record, use `create_note` first.\n\n**Side effects:** A `note.deleted` entry appears in the activity of the record, with the title but not the text; the earlier entries of the note stay. Nothing is sent and no webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see the record the note belongs to (`crm.contacts_companies.read` for a contact or company, `crm.opportunities.read` plus access to the pipeline for an opportunity). Only the author of the note or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope) can do it; notes written through the API belong to the person who owns the token, so that person can edit them later.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the note. Get it from `list_notes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          },
          {
            "name": "expected_version",
            "in": "query",
            "description": "Version of the note you read (`version`). Optional: if you send it and the note has changed since, nothing is saved and you get `crm_note_version_conflict`; if you leave it out, the change is applied over the current text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete note",
            "remove note",
            "discard note"
          ],
          "es": [
            "borrar nota",
            "eliminar nota",
            "quitar nota"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_note",
            "meaning": "The note does not exist in this account, or the record it belongs to is not visible to the user. Find its UUID with `list_notes`."
          },
          {
            "status": 403,
            "code": "crm_note_forbidden",
            "meaning": "The user is neither the author of the note nor an account admin with a token that reaches account administration. Ask one of them to delete it."
          },
          {
            "status": 409,
            "code": "crm_note_version_conflict",
            "meaning": "You sent `expected_version` and the note has changed since you read it. Nothing was saved. The extension `current_version` gives the current version; read the note again with `get_note` and decide whether to repeat the change."
          },
          {
            "status": 422,
            "code": "crm_note_expected_version_invalid",
            "meaning": "`expected_version` is not a positive integer. Send the current version of the note or leave it out."
          }
        ]
      }
    },
    "/opportunities": {
      "get": {
        "operationId": "list_opportunities",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Opportunity-opportunity.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value, `page`, `itemsPerPage` or an `order` field is not valid. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List opportunities",
        "description": "Lists the opportunities (deals) of the account that sit in pipelines the user can read, most recently changed first, with their pipeline, stage, status, amount, probability, forecast, company, contacts and owner.\n\n**When to use:** To browse the sales pipeline, to find the deals of a company, contact or owner, or the open, won or lost ones, before reading, editing or moving them.\n\n**When not to use:** To read one opportunity whose UUID you know, use `get_opportunity`; the list leaves out the description, attributes and loss note. To see the stages and loss reasons of a pipeline, use `get_pipeline`. To find people or organizations, use `list_contacts` or `list_companies`.\n\n**Filters:** All filters are optional and combine with AND.\n- `search`: part of the title, case-insensitive.\n- `pipeline`: UUID of a pipeline the user can read; any other UUID gives a validation error.\n- `stage`: UUID of a stage.\n- `status`: `open` (including those without stage), `won` or `lost`.\n- `owner`: email of the owner user.\n- `company`: UUID of the company.\n- `contact`: UUID of a linked contact.\nSorting: `order[field]=asc|desc` with `title`, `value`, `probability`, `expected_close_date`, `closed_at`, `created_at`, `updated_at`, `company`, `owner` or `stage`. Default: `updated_at` descending (up to 4 `order` fields).\nPagination: `page` and `itemsPerPage`, like the rest of the API; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. Only opportunities of pipelines the user has `read` access to are returned.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Items per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "search",
            "in": "query",
            "description": "Part of the title (partial match, case-insensitive).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "annual plan"
          },
          {
            "name": "pipeline",
            "in": "query",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "stage",
            "in": "query",
            "description": "UUID of the stage. Get it from `get_pipeline`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Commercial situation: `open`, `won` or `lost`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/OpportunityStatus"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "open"
          },
          {
            "name": "owner",
            "in": "query",
            "description": "Email of the owner user.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "email"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "laura@acme.com"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of the company. Get it from `list_companies`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact linked to the opportunity. Get it from `list_contacts`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          {
            "name": "order[updated_at]",
            "in": "query",
            "description": "Sort by last change: `asc` or `desc`. The same pattern works for `title`, `value`, `probability`, `expected_close_date`, `closed_at`, `created_at`, `company`, `owner` and `stage`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opportunities",
            "deals",
            "sales pipeline",
            "open deals",
            "won deals",
            "lost deals",
            "deals of a company",
            "my opportunities",
            "forecast"
          ],
          "es": [
            "oportunidades",
            "negocios",
            "embudo de ventas",
            "oportunidades abiertas",
            "oportunidades ganadas",
            "oportunidades perdidas",
            "oportunidades de una empresa",
            "mis oportunidades",
            "previsión de ventas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value, `page`, `itemsPerPage` or an `order` field is not valid. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "201": {
            "description": "Opportunity resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.\n\n`opportunity_custom_probability_not_allowed`: A custom `probability` needs an open stage in a pipeline with `allow_custom_probability`. Leave `probability` out or send `null`.\n\n`opportunity_primary_contact_required`: The opportunity has contacts, so `primary_contact` cannot be `null`. Send the IRI of one of its contacts, or remove all the contacts first.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\nThe loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons.\n\n`opportunity_field_read_only`: The body has a property that cannot be set when creating.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create an opportunity",
        "description": "Creates an opportunity (a deal) in a pipeline, optionally in a given stage and with amount, expected close date, company, contacts, owner and attribute values. Everything is saved together or not at all. It is recorded as created through the API.\n\n**When to use:** To register a new deal for a company or contact, for example after a qualifying conversation.\n\n**When not to use:** To change a deal that already exists, use `update_opportunity`; to move it between stages, `move_opportunity_stage`. Check first with `list_opportunities` (filters `company` and `contact`) that the deal does not exist, because nothing prevents duplicates. To add a person or an organization, use `create_contact` or `create_company`.\n\n**Side effects:** The opportunity appears in the CRM with an `opportunity.created` entry in its activity, attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call. Its `record_source` is `api`. If you send `owner`, that user gets the assignment notification (in-app and, by default, email) unless they are the caller. Nothing is sent to contacts and no webhook fires (CRM webhook events do not exist yet). Automations of the new engine that listen to this creation, or to the values it sets, can start: it counts as an «API» change (or a manual one when Maia made the call). Retrying a request that succeeded creates a second opportunity.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline where it is created.",
        "parameters": [],
        "requestBody": {
          "description": "The new Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create opportunity",
            "new deal",
            "add opportunity",
            "open a deal",
            "register opportunity"
          ],
          "es": [
            "crear oportunidad",
            "nuevo negocio",
            "añadir oportunidad",
            "abrir un negocio",
            "registrar oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_custom_probability_not_allowed",
            "meaning": "A custom `probability` needs an open stage in a pipeline with `allow_custom_probability`. Leave `probability` out or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_primary_contact_required",
            "meaning": "The opportunity has contacts, so `primary_contact` cannot be `null`. Send the IRI of one of its contacts, or remove all the contacts first."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons."
          },
          {
            "status": 422,
            "code": "opportunity_field_read_only",
            "meaning": "The body has a property that cannot be set when creating."
          }
        ]
      }
    },
    "/opportunities/{uuid}": {
      "get": {
        "operationId": "get_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an opportunity",
        "description": "Returns one opportunity with everything the CRM knows about the deal: stage and status, amount and forecast, probability, expected close date, company, contacts, owner, attribute values and, when it is closed, when and why.\n\n**When to use:** To read the current state of a deal before changing, moving, winning or losing it, or to answer a question about it.\n\n**When not to use:** To browse or search deals, use `list_opportunities`. To see the stages of its pipeline and what they require, use `get_pipeline`. Tasks, notes, files and the activity of the opportunity have their own operations.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. It also needs `read` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "get opportunity",
            "deal details",
            "opportunity by id",
            "show deal",
            "deal status"
          ],
          "es": [
            "ver oportunidad",
            "detalle de la oportunidad",
            "consultar negocio",
            "estado de la oportunidad",
            "datos del negocio"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          }
        ]
      },
      "put": {
        "operationId": "update_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.\n\n`opportunity_custom_probability_not_allowed`: A custom `probability` needs an open stage in a pipeline with `allow_custom_probability`. Leave `probability` out or send `null`.\n\n`opportunity_primary_contact_required`: The opportunity has contacts, so `primary_contact` cannot be `null`. Send the IRI of one of its contacts, or remove all the contacts first.\n\n`opportunity_field_read_only`: The body has a property that cannot be changed here (for example `pipeline` or `stage`). Use the move operations.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update an opportunity",
        "description": "Changes the data of an existing opportunity: title, description, amount, probability override, expected close date, company, contacts, owner and attribute values. Properties you leave out keep their value; `null` clears an optional one. It does not change the stage or the pipeline.\n\n**When to use:** To correct or complete a deal, change its amount or expected date, link a company or contacts, assign an owner or set attributes.\n\n**When not to use:** To change the stage use `move_opportunity_stage`; to close it, `win_opportunity` or `lose_opportunity`; to reopen it, `reopen_opportunity`; to change its pipeline, `move_opportunity_pipeline`. If the destination stage requires fields, send them in that move, not here. To add a deal, use `create_opportunity`.\n\n**Side effects:** All properties of the request are applied together: if one is rejected, nothing is saved. Each field that really changes adds an `opportunity.fields_changed` entry to the activity (field, previous and new value), attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call; saving the same value leaves no entry. Changing `value` of a won or lost deal revalues its closing snapshot. If it sets a new owner who is not the caller, that user gets the assignment notification (in-app and, by default, email); the previous owner's pending notification is closed. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update opportunity",
            "edit deal",
            "change deal amount",
            "assign opportunity owner",
            "set expected close date",
            "link company to deal"
          ],
          "es": [
            "actualizar oportunidad",
            "editar negocio",
            "cambiar importe",
            "asignar responsable de la oportunidad",
            "fecha prevista de cierre",
            "vincular empresa a la oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_custom_probability_not_allowed",
            "meaning": "A custom `probability` needs an open stage in a pipeline with `allow_custom_probability`. Leave `probability` out or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_primary_contact_required",
            "meaning": "The opportunity has contacts, so `primary_contact` cannot be `null`. Send the IRI of one of its contacts, or remove all the contacts first."
          },
          {
            "status": 422,
            "code": "opportunity_field_read_only",
            "meaning": "The body has a property that cannot be changed here (for example `pipeline` or `stage`). Use the move operations."
          }
        ]
      },
      "delete": {
        "operationId": "delete_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "204": {
            "description": "Opportunity resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\nA file upload or a database lock was in progress; nothing was deleted. Retry in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete an opportunity",
        "description": "Permanently deletes an opportunity. There is no trash and no undo.\n\n**When to use:** Only when the user explicitly asks to delete this deal for good, for example a duplicate or a test record.\n\n**When not to use:** If the deal was lost or is no longer worth pursuing, close it with `lose_opportunity` so it stays in the reports. To fix a wrong title, amount or owner, use `update_opportunity`.\n\n**Side effects:** Deleted with the opportunity: its activity, its notes, its files (a Google Drive reference never deletes the original in Drive) and its attribute values; the links to its company and contacts. Company and contacts stay. Tasks stay and lose the association with the opportunity; synced emails and meetings stay and lose the link to it. The owner's pending assignment notification is closed. No webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete opportunity",
            "remove deal",
            "erase opportunity",
            "drop deal"
          ],
          "es": [
            "borrar oportunidad",
            "eliminar negocio",
            "quitar oportunidad",
            "suprimir oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 503,
            "code": null,
            "meaning": "A file upload or a database lock was in progress; nothing was deleted. Retry in a few seconds."
          }
        ]
      }
    },
    "/opportunities/{uuid}/actions/lose": {
      "put": {
        "operationId": "lose_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\nThe loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons.\n\n`opportunity_loss_reason_unavailable`: The loss reason is archived or belongs to another pipeline. Choose an active reason of the pipeline.\n\n`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Mark an opportunity as lost",
        "description": "Closes an opportunity as lost: it moves to the lost stage of its pipeline, its probability becomes 0 and it records the closing date and, if given, the reason and a note.\n\n**When to use:** When the user says the deal fell through, the customer chose someone else or it was discarded.\n\n**When not to use:** To close it as won, use `win_opportunity`. To remove a record that should not exist, use `delete_opportunity`. To keep working it, use `move_opportunity_stage` or `reopen_opportunity`.\n\n**Side effects:** Same record as `move_opportunity_stage`: an `opportunity.stage_changed` entry with kind `lost` and the reason name and note, attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call. If it was won, it changes the outcome and keeps the first closing date. The reason and note are kept in the closing history even if the reason is archived later. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityLoseInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityLoseInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "lose opportunity",
            "close lost",
            "deal lost",
            "mark as lost",
            "loss reason"
          ],
          "es": [
            "perder oportunidad",
            "negocio perdido",
            "cerrar como perdida",
            "marcar como perdida",
            "motivo de pérdida"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons."
          },
          {
            "status": 422,
            "code": "opportunity_loss_reason_unavailable",
            "meaning": "The loss reason is archived or belongs to another pipeline. Choose an active reason of the pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          }
        ]
      }
    },
    "/opportunities/{uuid}/actions/move_pipeline": {
      "put": {
        "operationId": "move_opportunity_pipeline",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_pipeline_unchanged`: The destination is the pipeline the opportunity is already in. Use `move_opportunity_stage` to change the stage.\n\n`opportunity_currency_conversion_required`: The destination does not accept the currency of the opportunity. Send `value` with the amount in an accepted currency (see `preview_opportunity_pipeline_move`).\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\nThe loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_field_read_only`: `value` was sent but the amount does not need conversion. Leave it out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Move an opportunity to another pipeline",
        "description": "Moves an opportunity to another pipeline and puts it in one of that pipeline's stages. Amount, company, contacts, tasks, notes, files and activity go with it; a custom probability is dropped and the destination stage defines it.\n\n**When to use:** To pass a deal to a different sales process, for example from New business to Renewals.\n\n**When not to use:** To move it between stages of the same pipeline, use `move_opportunity_stage`. Before moving a deal with an amount, run `preview_opportunity_pipeline_move` to know whether the currency needs to be confirmed.\n\n**Side effects:** Adds an `opportunity.pipeline_changed` entry (from and to pipeline and stage, and amount if it changed), attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call; it is not recorded as a stage change. Moving a closed deal to an open stage reopens it, and to a won or lost stage keeps it closed. The closing snapshot is revalued with the reference currency of the destination. If it sets a new owner who is not the caller, that user gets the assignment notification (in-app and, by default, email); the previous owner's pending notification is closed. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity and to the destination one.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityPipelineMoveInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityPipelineMoveInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "move opportunity to another pipeline",
            "change pipeline",
            "transfer deal",
            "switch sales process"
          ],
          "es": [
            "mover oportunidad a otro pipeline",
            "cambiar de embudo",
            "transferir negocio",
            "cambiar de proceso de venta"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_pipeline_unchanged",
            "meaning": "The destination is the pipeline the opportunity is already in. Use `move_opportunity_stage` to change the stage."
          },
          {
            "status": 422,
            "code": "opportunity_currency_conversion_required",
            "meaning": "The destination does not accept the currency of the opportunity. Send `value` with the amount in an accepted currency (see `preview_opportunity_pipeline_move`)."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_field_read_only",
            "meaning": "`value` was sent but the amount does not need conversion. Leave it out."
          }
        ]
      }
    },
    "/opportunities/{uuid}/actions/move_stage": {
      "put": {
        "operationId": "move_opportunity_stage",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\n`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\nThe loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Move an opportunity to a stage",
        "description": "Moves an opportunity to another stage of its pipeline. The move follows the stage type: entering a won or lost stage closes the deal, entering an open stage from a closed one reopens it.\n\n**When to use:** To advance or move back a deal in its pipeline, for example from Qualified to Negotiation.\n\n**When not to use:** To close a deal as won or lost, `win_opportunity` and `lose_opportunity` find the stage for you. To reopen a closed deal, use `reopen_opportunity`. To change the pipeline, use `move_opportunity_pipeline`. To change other data of the deal, use `update_opportunity`.\n\n**Side effects:** Adds an `opportunity.stage_changed` entry to the activity (from stage, to stage and kind: progressed, won, lost, reopened), attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call. The time in the previous stage is closed and a new stay starts. Entering a won stage sets probability 100, a lost stage 0, and the closing amount is valued at the closing date. Moving to the stage it is already in changes nothing. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityStageMoveInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityStageMoveInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "move opportunity",
            "change deal stage",
            "advance deal",
            "move to negotiation",
            "move card in kanban"
          ],
          "es": [
            "mover oportunidad de etapa",
            "cambiar etapa del negocio",
            "avanzar negocio",
            "pasar a negociación",
            "mover tarjeta del kanban"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The loss reason breaks the rule of the lost stage: it is required and missing, it is not allowed there, it belongs to another pipeline or it is archived. Read `get_pipeline` for `loss_reason_mode` and the active reasons."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          }
        ]
      }
    },
    "/opportunities/{uuid}/actions/reopen": {
      "put": {
        "operationId": "reopen_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_not_closed`: The opportunity is already open. Use `move_opportunity_stage` to change its stage.\n\n`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\n`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reopen a closed opportunity",
        "description": "Reopens a won or lost opportunity: it goes back to an open stage (by default the initial stage of the pipeline), the closing date and loss reason leave the current state and the probability is the one of the stage.\n\n**When to use:** When a closed deal comes back to life, for example the customer returns after a loss or a win was registered by mistake.\n\n**When not to use:** To move an open deal between open stages, use `move_opportunity_stage`. To close it again, use `win_opportunity` or `lose_opportunity`.\n\n**Side effects:** Adds an `opportunity.stage_changed` entry with kind `reopened`, attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call. The previous closing (date, amount snapshot and loss reason) stays in the history, a custom probability set before is not restored and a later close gets a new closing date. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityReopenInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityReopenInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reopen opportunity",
            "reopen deal",
            "undo won",
            "undo lost",
            "bring back deal"
          ],
          "es": [
            "reabrir oportunidad",
            "reabrir negocio",
            "deshacer ganada",
            "deshacer perdida",
            "recuperar negocio"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_not_closed",
            "meaning": "The opportunity is already open. Use `move_opportunity_stage` to change its stage."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          }
        ]
      }
    },
    "/opportunities/{uuid}/actions/win": {
      "put": {
        "operationId": "win_opportunity",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.jsonld-opportunity.list_opportunity.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity-opportunity.list_opportunity.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_stage_ambiguous`: The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`).\n\n`opportunity_entry_requirements_missing`: The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed.\n\n`opportunity_related_record_unavailable`: A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one.\n\n`opportunity_stage_pipeline_mismatch`: The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline.\n\n`opportunity_invalid_value`: A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`.\n\n`opportunity_owner_unavailable`: The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`.\n\n`opportunity_currency_unsupported`: The currency is not in the exchange-rate catalog of the platform. Use another currency.\n\n`opportunity_currency_not_allowed`: The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Mark an opportunity as won",
        "description": "Closes an opportunity as won: it moves to the won stage of its pipeline, its probability becomes 100 and the closing date and the value of the sale are recorded.\n\n**When to use:** When the user says the deal was closed successfully, signed or bought.\n\n**When not to use:** To close it as lost, use `lose_opportunity`. To put it in an open stage, use `move_opportunity_stage`. To undo a mistaken win and keep working the deal, use `reopen_opportunity`.\n\n**Side effects:** Same record as `move_opportunity_stage`: an `opportunity.stage_changed` entry with kind `won`, attributed to the person who owns the key or token, with the note «via Maia» when Maia made the call. If it was lost, it changes the outcome and keeps the first closing date. If it is already in that won stage, nothing changes. The closing amount is valued at the rate of the closing date; with no rate yet the value is marked `pending` and filled later. Nothing is sent and no webhook fires. Automations of the new engine that listen to this change can start: it counts as an «API» change (or a manual one when Maia made the call).\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          }
        ],
        "requestBody": {
          "description": "The updated Opportunity resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityWinInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opportunity.OpportunityWinInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "win opportunity",
            "close won",
            "deal won",
            "mark as won",
            "closed won"
          ],
          "es": [
            "ganar oportunidad",
            "negocio ganado",
            "cerrar como ganada",
            "marcar como ganada",
            "venta conseguida"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_stage_ambiguous",
            "meaning": "The pipeline has more than one stage of that type and `stage` was not sent, or the name you sent matches several stages. Send the UUID of the stage (`get_pipeline`)."
          },
          {
            "status": 422,
            "code": "opportunity_entry_requirements_missing",
            "meaning": "The destination stage requires fields the opportunity does not have yet. `violations` lists them; send them in the same request and try again. Nothing was changed."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "A pipeline, stage, company, contact, user or loss reason you referenced does not exist. Read `violations[].propertyPath` to see which one."
          },
          {
            "status": 422,
            "code": "opportunity_stage_pipeline_mismatch",
            "meaning": "The stage does not belong to the pipeline. Take the stage from `get_pipeline` of the right pipeline."
          },
          {
            "status": 422,
            "code": "opportunity_invalid_value",
            "meaning": "A value is not valid: blank title, a date that is not `YYYY-MM-DD`, an amount that is not a decimal string, a probability outside 0-99 or a list that is too long. See `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "opportunity_owner_unavailable",
            "meaning": "The owner is not an active user of the account with access to the pipeline of the opportunity. Pick another user or send `null`."
          },
          {
            "status": 422,
            "code": "opportunity_currency_unsupported",
            "meaning": "The currency is not in the exchange-rate catalog of the platform. Use another currency."
          },
          {
            "status": 422,
            "code": "opportunity_currency_not_allowed",
            "meaning": "The pipeline does not accept that currency (it allows only its reference currency unless `allow_multiple_currencies` is on). Use the right currency or change the pipeline."
          }
        ]
      }
    },
    "/opportunities/{uuid}/pipeline_move_preview": {
      "get": {
        "operationId": "preview_opportunity_pipeline_move",
        "tags": [
          "Opportunities"
        ],
        "responses": {
          "200": {
            "description": "Opportunity resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.OpportunityMovePreviewOutput.jsonld-opportunity_move_preview.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Opportunity.OpportunityMovePreviewOutput-opportunity_move_preview.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_opportunity`: The opportunity does not exist in this account. Find its UUID with `list_opportunities`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`opportunity_related_record_unavailable`: The destination pipeline does not exist, or `pipeline` is not a valid UUID. If the user has no access to it, the call fails with 403 `crm_permission_denied`.\n\n`opportunity_pipeline_unchanged`: The destination is the pipeline the opportunity is already in.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Preview moving an opportunity",
        "description": "Tells whether moving the opportunity to another pipeline needs its amount to be confirmed in another currency, and proposes the amount converted to the reference currency of the destination with the date of the rate used. It changes nothing.\n\n**When to use:** Before `move_opportunity_pipeline` for an opportunity that has an amount, to know if `value` must be sent and with which figure.\n\n**When not to use:** To move the deal, use `move_opportunity_pipeline`. For deals without amount, or when both pipelines accept the same currency, the preview is not needed.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.work` capability. It also needs `work` access to the pipeline of the opportunity and to the destination one.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity. Get it from `list_opportunities`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          {
            "name": "pipeline",
            "in": "query",
            "description": "UUID of the destination pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "preview pipeline move",
            "currency conversion move",
            "check deal move"
          ],
          "es": [
            "previsualizar cambio de pipeline",
            "conversión de moneda al mover",
            "comprobar mover negocio"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user has no access to the pipeline of the opportunity (`read` to see it, `work` to change it, `admin` to delete it). Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_opportunity",
            "meaning": "The opportunity does not exist in this account. Find its UUID with `list_opportunities`."
          },
          {
            "status": 422,
            "code": "opportunity_related_record_unavailable",
            "meaning": "The destination pipeline does not exist, or `pipeline` is not a valid UUID. If the user has no access to it, the call fails with 403 `crm_permission_denied`."
          },
          {
            "status": 422,
            "code": "opportunity_pipeline_unchanged",
            "meaning": "The destination is the pipeline the opportunity is already in."
          }
        ]
      }
    },
    "/opportunity_attributes": {
      "get": {
        "operationId": "list_opportunity_attributes",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "200": {
            "description": "OpportunityAttribute collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List opportunity attributes",
        "description": "Lists every custom attribute defined for opportunities in the account, active and archived, ordered by position: name, type, public code, options and whether it is archived. The list is complete, not paginated, and has no filters. The attributes are the same for all pipelines.\n\n**When to use:** Before reading or writing the `attributes` of an opportunity, to learn which attributes exist, their `public_code` (the key to use), their type and, for `enum` and `multi_enum`, the options a value can take. Also to check whether an attribute with the same name already exists before creating one.\n\n**When not to use:** To read the attributes of one opportunity, read the opportunity itself with `get_opportunity`; this operation lists definitions, not values. For the custom fields of companies or people, use `list_company_attributes` or `list_contact_attributes`.\n\n**Filters:** None. Archived attributes are included: check `status` on each item.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opportunity fields",
            "custom fields of opportunities",
            "deal fields",
            "deal properties",
            "what data can I store on a deal",
            "opportunity attribute definitions"
          ],
          "es": [
            "campos de oportunidad",
            "campos personalizados de oportunidades",
            "campos de negocio",
            "propiedades de la oportunidad",
            "qué datos puedo guardar en una oportunidad",
            "definiciones de atributos de oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      },
      "post": {
        "operationId": "create_opportunity_attribute",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "201": {
            "description": "OpportunityAttribute resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `duplicate_name` (an active opportunity attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: `type` is not one of the listed types (`birthday` exists only for contacts); `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create an opportunity attribute",
        "description": "Defines a new custom attribute for opportunities, placed after the existing ones. It is shared by all pipelines. Once created, it can be filled in on any opportunity through its `public_code`. Its visual presentation (languages, help text, display style) is left at the defaults and can be tuned in the app.\n\n**When to use:** When the account needs to store a new piece of data on deals that the opportunity does not already have, for example the lead source, the contract type or the competitor.\n\n**When not to use:** To change an existing attribute, use `update_opportunity_attribute`. To set a value on an opportunity, use `update_opportunity`: this operation only defines the field, it does not set any value. To make a pipeline stage require it, edit the pipeline in the app.\n\n**Side effects:** Records the creation in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires a CRM seat and the `crm.companies.attributes.manage` capability. It is the same capability that manages company attributes.",
        "parameters": [],
        "requestBody": {
          "description": "The new OpportunityAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new opportunity field",
            "new deal field",
            "new custom field definition",
            "new deal property",
            "add dropdown field to deals",
            "define a field for opportunities"
          ],
          "es": [
            "nuevo campo de oportunidad",
            "nuevo campo de negocio",
            "nueva definición de campo personalizado",
            "crear propiedad de oportunidad",
            "añadir desplegable a oportunidades",
            "definir un campo de oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `duplicate_name` (an active opportunity attribute already has that name: choose another or restore/update the existing one) or `duplicate_public_code` (that code is taken, even by an archived attribute: omit `public_code` to generate a free one)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: `type` is not one of the listed types (`birthday` exists only for contacts); `currency` is missing for `money` or sent for another type; `options` is empty for `enum`/`multi_enum` or sent for another type; two options have the same label; `public_code` has an invalid format. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/opportunity_attributes/{uuid}": {
      "get": {
        "operationId": "get_opportunity_attribute",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "200": {
            "description": "OpportunityAttribute resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get an opportunity attribute",
        "description": "Returns one opportunity attribute with its type, public code, status, version and options.\n\n**When to use:** When you know the UUID and need the current `version` before updating, archiving or restoring it, or the full list of its options.\n\n**When not to use:** To discover which attributes exist, use `list_opportunity_attributes`; it returns all of them in one call.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity attribute. Get it from `list_opportunity_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opportunity field",
            "deal property",
            "attribute options",
            "attribute version",
            "opportunity attribute definition",
            "custom field definition"
          ],
          "es": [
            "campo de oportunidad",
            "propiedad de negocio",
            "opciones del atributo",
            "versión del atributo",
            "definición de atributo de oportunidad",
            "definición de campo personalizado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`."
          }
        ]
      },
      "put": {
        "operationId": "update_opportunity_attribute",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "200": {
            "description": "OpportunityAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_opportunity_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update an opportunity attribute",
        "description": "Changes the name, the description or the options of an opportunity attribute. Fields left out stay as they are. Values already stored on opportunities are not touched; renaming an option or the attribute changes how they read, not what is stored.\n\n**When to use:** To rename an attribute, add, rename, recolor, reorder or archive options of an `enum` or `multi_enum`, or edit the description.\n\n**When not to use:** The `type`, the `public_code` and the `currency` cannot be changed: create a new attribute instead. To stop using the attribute altogether, use `archive_opportunity_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Stage requirements that use the attribute are not affected.\n\n**Permissions:** Requires a CRM seat and the `crm.companies.attributes.manage` capability. It is the same capability that manages company attributes.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity attribute. Get it from `list_opportunity_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          }
        ],
        "requestBody": {
          "description": "The updated OpportunityAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename opportunity field",
            "edit deal field",
            "add option to dropdown",
            "change options",
            "edit property",
            "update attribute definition"
          ],
          "es": [
            "renombrar campo de oportunidad",
            "editar campo de negocio",
            "añadir opción a un desplegable",
            "cambiar opciones",
            "editar propiedad",
            "actualizar definición de atributo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` tells why: `stale_version` (the attribute changed since you read it: read it again with `get_opportunity_attribute` and retry on the current `version`), `duplicate_name` (another active attribute already has that name) or `duplicate_integration_key` (the `integration_key` of a new option is taken)."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "Validation failed. Common causes: two active options share a label; an existing option is missing from `options`; `options` was sent for a type without options; a color is not `#RRGGBB`. Read `violations[].propertyPath` and `message`."
          }
        ]
      }
    },
    "/opportunity_attributes/{uuid}/actions/archive": {
      "put": {
        "operationId": "archive_opportunity_attribute",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "200": {
            "description": "OpportunityAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `archive_blocked` (a pipeline stage requires the attribute, or other items in the app use it; `impact` lists them: stop requiring it in those stages first, or ask the user to do it in the app) or `stale_version` (read it again with `get_opportunity_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive an opportunity attribute",
        "description": "Archives an opportunity attribute: it stops accepting new values, but the values already stored are kept and its public code stays reserved. It can be restored.\n\n**When to use:** When an attribute is no longer used but its history must be kept. This is the way to retire an attribute. Stages that require it must stop requiring it first.\n\n**When not to use:** To bring it back, use `restore_opportunity_attribute`. To remove only some options, use `update_opportunity_attribute` and archive those options.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Archiving is refused while a pipeline stage requires the attribute, or while other items in the app depend on it.\n\n**Permissions:** Requires a CRM seat and the `crm.companies.attributes.manage` capability. It is the same capability that manages company attributes.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity attribute. Get it from `list_opportunity_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          }
        ],
        "requestBody": {
          "description": "The updated OpportunityAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "hide opportunity field",
            "disable deal field",
            "retire attribute",
            "deactivate custom field",
            "archive attribute",
            "stop using a field"
          ],
          "es": [
            "ocultar campo de oportunidad",
            "desactivar campo de negocio",
            "retirar atributo",
            "dar de baja un campo personalizado",
            "archivar atributo",
            "dejar de usar un campo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `archive_blocked` (a pipeline stage requires the attribute, or other items in the app use it; `impact` lists them: stop requiring it in those stages first, or ask the user to do it in the app) or `stale_version` (read it again with `get_opportunity_attribute` and retry)."
          }
        ]
      }
    },
    "/opportunity_attributes/{uuid}/actions/restore": {
      "put": {
        "operationId": "restore_opportunity_attribute",
        "tags": [
          "Opportunity attributes"
        ],
        "responses": {
          "200": {
            "description": "OpportunityAttribute resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute.jsonld-opportunity_attribute.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityAttribute-opportunity_attribute.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`attribute_definition_conflict`: `conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_opportunity_attribute` and retry).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore an opportunity attribute",
        "description": "Restores an archived opportunity attribute: it accepts new values again and keeps the values it had.\n\n**When to use:** To bring back an attribute that was archived, instead of creating a new one with the same name.\n\n**When not to use:** To archive an attribute, use `archive_opportunity_attribute`. To rename it as well, restore it first and then use `update_opportunity_attribute`.\n\n**Side effects:** Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.\n\n**Permissions:** Requires a CRM seat and the `crm.companies.attributes.manage` capability. It is the same capability that manages company attributes.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the opportunity attribute. Get it from `list_opportunity_attributes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          }
        ],
        "requestBody": {
          "description": "The updated OpportunityAttribute resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpportunityAttribute.OpportunityAttributeVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unarchive opportunity field",
            "reactivate deal field",
            "bring back attribute",
            "undo archive",
            "restore attribute",
            "reinstate an archived field"
          ],
          "es": [
            "desarchivar campo de oportunidad",
            "reactivar campo de negocio",
            "recuperar atributo",
            "deshacer archivado",
            "restaurar atributo",
            "reponer un campo archivado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no opportunity attribute with that UUID in this account. Get the right one with `list_opportunity_attributes`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 409,
            "code": "attribute_definition_conflict",
            "meaning": "`conflict_reason` is `restore_name_conflict` (another active attribute took the name meanwhile: rename that one first) or `stale_version` (read it again with `get_opportunity_attribute` and retry)."
          }
        ]
      }
    },
    "/opportunity_filter_fields": {
      "get": {
        "operationId": "list_opportunity_filter_fields",
        "tags": [
          "Opportunity filters"
        ],
        "responses": {
          "200": {
            "description": "OpportunityFilterField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OpportunityFilterField.jsonld-opportunity_filter_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpportunityFilterField-opportunity_filter_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the fields to filter opportunities by",
        "description": "Lists every field the user can filter opportunities on in a workflow, with its operators, the shape of the value each operator expects and, for fixed lists, its options: title, value, probability, pipeline and stage, owner, company and contacts, dates, loss reason, record source, time in stage, the opportunity attributes, the record `id` and, only in searches, `status`.\n\n**When to use:** Before writing a filter on an opportunity in a workflow (`create_workflow`, `update_workflow`): the «Only if» of an opportunity trigger, a Condition with `matches` on an opportunity (also one inside another record), a wait until an opportunity matches filters, the «Exit when» of an opportunity workflow or an opportunity search. Write the filter as `{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\"}]}` with each field's `id`, an operator `id` and a value of the form its `value_shape` says.\n\n**When not to use:** To find opportunities, use `list_opportunities` with its query filters. To read the values stored for one opportunity, use `get_opportunity`. For filters on contacts or companies, use `list_contact_filter_fields` with `usable_in=automation` or `list_company_filter_fields`.\n\n**Values:** Every value is a string, also numbers (`\"1500.50\"`) and dates (`YYYY-MM-DD`, compared as a calendar day in the time zone of the user who publishes; a date and time field also takes an ISO 8601 instant); a boolean attribute takes the JSON booleans `true` or `false`. `range` (`between`) is a list of two values, `[\"10\", \"20\"]`; `set` (`isAnyOf`) a list; `none` (`isEmpty`, `isNotEmpty`) has no `value`. A field with a `reference_type` takes UUIDs of that record. In a search and in a Condition with `matches` a value can also be data of the workflow, `{\"ref\": \"<data>\"}`; in an «Only if», a wait or «Exit when», only fixed values.\n\n**Filters:** All matching fields come in one response, in menu order; there is no pagination.\n- `search`: fields whose `label` or `id` contains the text, ignoring case.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. A field the user cannot use (an archived attribute, or one their role cannot read) is not listed.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the field `label` or `id`, ignoring case.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "stage"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opportunity filter fields",
            "filter opportunities",
            "opportunity conditions",
            "workflow opportunity filter",
            "what can I filter opportunities by",
            "deal filter"
          ],
          "es": [
            "campos para filtrar oportunidades",
            "filtrar oportunidades",
            "condiciones de oportunidades",
            "filtro de oportunidad en un flujo",
            "por qué puedo filtrar oportunidades",
            "filtro de negocios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/opportunity_filter_fields/{fieldId}": {
      "get": {
        "operationId": "get_opportunity_filter_field",
        "tags": [
          "Opportunity filters"
        ],
        "responses": {
          "200": {
            "description": "OpportunityFilterField resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityFilterField.jsonld-opportunity_filter_field.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpportunityFilterField-opportunity_filter_field.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: There is no such field for this user: it does not exist, was archived, or the user cannot filter on it. Look it up with `list_opportunity_filter_fields`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a field to filter opportunities by",
        "description": "Returns one field of the opportunity filter catalog with its operators, value shapes, constraints, options and the record its values point to.\n\n**When to use:** To check which operators and values are valid for one field before writing a condition on an opportunity in a workflow, or after an `invalid_filter_operator` or `invalid_filter_value` issue.\n\n**When not to use:** To find a field when you do not know its `id`, use `list_opportunity_filter_fields` with `search`.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. A field the user cannot use (an archived attribute, or one their role cannot read) is not listed.",
        "parameters": [
          {
            "name": "fieldId",
            "in": "path",
            "description": "`id` of the field, from `list_opportunity_filter_fields`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "stageId"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "opportunity filter field operators",
            "opportunity field options"
          ],
          "es": [
            "operadores del campo de oportunidad",
            "opciones del campo de oportunidad"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "There is no such field for this user: it does not exist, was archived, or the user cannot filter on it. Look it up with `list_opportunity_filter_fields`."
          }
        ]
      }
    },
    "/stores/{storeResourceId}/orders": {
      "get": {
        "operationId": "list_store_orders",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "Order collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Order.jsonld-order.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Order-order.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List store orders",
        "description": "Returns the orders and carts of one store, most recently updated first, with their status, totals and items.\n\n**When to use:** To check which carts and orders a shop has sent, or to find one by its number or status.\n\n**When not to use:** To read one order use `get_store_order`.\n\n**Filters:** Sort with `order[created_at]`, `order[updated_at]`, `order[order_total]`, `order[status]` or `order[order_number]` (`asc`/`desc`).\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "purchases",
            "carts",
            "sales",
            "transactions"
          ],
          "es": [
            "pedidos",
            "carritos",
            "ventas",
            "compras de la tienda"
          ]
        }
      },
      "post": {
        "operationId": "create_store_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "201": {
            "description": "Order resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Order.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing, the `resource_id` is already used or has characters other than lowercase letters, digits, `-` and `_`, or the customer or a variant belongs to another store. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a cart",
        "description": "Creates an order in `cart` status for a customer: the shopper has started the checkout but not bought yet. No automation starts at this moment.\n\nA cart that is not updated for the time set in an abandoned-cart automation can start it. Move it forward with `process_order`, `pay_order`, `ship_order`, `cancel_order` or `refund_order`.\n\n**When to use:** When a shopper adds products or starts the checkout, so that a cart can be recovered if it is abandoned.\n\n**When not to use:** To load an order that already has its final status (for example from an old shop), use `import_order`; to change a cart use `update_store_order`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "requestBody": {
          "description": "The new Order resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Order.jsonld-order.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order-order.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new cart",
            "start checkout",
            "abandoned cart",
            "shopping cart"
          ],
          "es": [
            "crear carrito",
            "nuevo carrito",
            "carrito abandonado",
            "iniciar compra"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/import": {
      "post": {
        "operationId": "import_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "201": {
            "description": "Order resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Order.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing, the `resource_id` is already used, or the customer or a variant belongs to another store. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Import an order",
        "description": "Loads an order with the status it already has (`cart`, `new`, `paid`, `shipped`, `refunded` or `cancelled`), without going through the usual steps. It does not start Classic automations or credit campaign revenue; the statistics of the store are recalculated. In the new automations, an imported order or cart only enters if its own date (processed, payment, cancellation or the cart's own date) is within the last 24 hours and later than the automation's publication.\n\n**When to use:** To bring in the history of a shop (orders that already happened), for example when connecting it for the first time.\n\n**When not to use:** For a live order, create a cart with `create_store_order` and move it forward with the action operations, so automations and revenue tracking run.\n\n**Side effects:** The statistics of the store are recalculated in the background. No Classic automation is started; for the new automations, see the date rule above.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "requestBody": {
          "description": "The new Order resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Order.jsonld-order.import"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order-order.import"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "bulk load orders",
            "migrate orders",
            "historical orders",
            "sync order"
          ],
          "es": [
            "importar pedido",
            "cargar pedidos antiguos",
            "migrar pedidos",
            "histórico de pedidos"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}": {
      "get": {
        "operationId": "get_store_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "Order resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Order.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order-order.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an order",
        "description": "Returns one order or cart with its status, totals, items and tracking data.\n\n**When to use:** To check the state of an order you already know.\n\n**When not to use:** To find orders use `list_store_orders`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "order details",
            "cart details",
            "purchase details"
          ],
          "es": [
            "ver pedido",
            "detalle del pedido",
            "estado del pedido"
          ]
        }
      },
      "put": {
        "operationId": "update_store_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "Order resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Order.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is invalid, or the customer or a variant belongs to another store. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an order or cart",
        "description": "Changes the totals, items, customer or tracking data of an order or cart. The items you send replace the current ones. It does not change the status: use the action operations for that.\n\n**When to use:** When the shopper changes the cart (adds or removes products). A cart that is updated is counted as active again, so it is considered abandoned only after the abandoned-cart wait passes without further updates.\n\n**When not to use:** To change the status use `process_order`, `pay_order`, `ship_order`, `cancel_order` or `refund_order`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated Order resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Order.jsonld-order.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order-order.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit cart",
            "change order",
            "modify items",
            "add products to cart"
          ],
          "es": [
            "editar pedido",
            "modificar carrito",
            "cambiar productos del carrito",
            "actualizar pedido"
          ]
        }
      },
      "delete": {
        "operationId": "delete_store_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "204": {
            "description": "Order resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an order",
        "description": "Permanently deletes an order or cart and its items. Automations that were waiting on it are cancelled.\n\n**When to use:** When an order is removed from the shop, for example a test order.\n\n**When not to use:** To keep the order but mark it as not valid use `cancel_order` or `refund_order`.\n\n**Side effects:** The active automations waiting on this order are cancelled and the statistics of the store are recalculated.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove order",
            "erase cart",
            "discard purchase"
          ],
          "es": [
            "eliminar pedido",
            "borrar pedido",
            "quitar carrito"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}/actions/cancel_order": {
      "put": {
        "operationId": "cancel_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OrderResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Cancel an order",
        "description": "Sets the order to `cancelled` and stores the `cancelled_at` date you send (empty if you omit it).\n\n**When to use:** When the shopper or the shop cancels the order before delivery. Pair it with an automation with an order cancelled trigger to tell the customer.\n\n**When not to use:** If the money was returned after payment, use `refund_order`.\n\n**Side effects:** Starts the automations with an order cancelled trigger (`create_trigger_order_cancelled`) and adds an entry to the activity of the member. The API does not check the current status of the order: calling it on an order in another status is accepted and fires the order cancelled automations and the activity entry again. It does not stop the abandoned-cart or payment-reminder automations already waiting on the order.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated OrderResource resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource.jsonld-order.cancel_order"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource-order.cancel_order"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "void order",
            "call off",
            "order cancelled"
          ],
          "es": [
            "cancelar pedido",
            "anular pedido",
            "pedido cancelado"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}/actions/pay_order": {
      "put": {
        "operationId": "pay_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OrderResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Mark an order as paid",
        "description": "Sets the order to `paid` and records the revenue: it is added to the member who bought and, if a campaign code is known, to that campaign. It stops abandoned-cart and payment-reminder automations for this order. Call it once, for a cart or a new order.\n\n**When to use:** When the payment is confirmed. It is the step that counts revenue.\n\n**When not to use:** For orders loaded from the past, without revenue tracking, use `import_order`.\n\n**Side effects:** Starts the automations with an order paid trigger (`create_trigger_order_paid`), cancels the abandoned-cart and payment-reminder automations waiting on this order, adds the revenue to the member and updates the campaign and audience statistics. Adds an entry to the activity of the member. The API does not check the current status of the order: calling it on an order in another status is accepted and fires the order paid automations and the activity entry again.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated OrderResource resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource.jsonld-order.pay_order"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource-order.pay_order"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "payment received",
            "confirm payment",
            "charge succeeded",
            "revenue"
          ],
          "es": [
            "marcar como pagado",
            "pedido pagado",
            "confirmar pago",
            "cobro recibido"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}/actions/process_order": {
      "put": {
        "operationId": "process_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OrderResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The order is not a cart. Only carts can be processed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Process an order",
        "description": "Turns a cart into an order (status `new`): the shopper has placed it. It stops abandoned-cart automations for this order and starts the automations with an \"order processed\" trigger.\n\n**When to use:** When the shopper completes the checkout, before the payment is confirmed.\n\n**When not to use:** If the order is already paid use `pay_order`.\n\n**Side effects:** Starts the automations with an order processed trigger (`create_trigger_order_processed`) and cancels the abandoned-cart automations waiting on this order.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated OrderResource resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource.jsonld-order.process_order"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource-order.process_order"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "place order",
            "checkout completed",
            "convert cart",
            "confirm order"
          ],
          "es": [
            "procesar pedido",
            "confirmar pedido",
            "convertir carrito en pedido",
            "compra realizada"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}/actions/refund_order": {
      "put": {
        "operationId": "refund_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OrderResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Refund an order",
        "description": "Sets the order to `refunded`.\n\n**When to use:** When the money of a paid order is returned to the customer. Pair it with an automation with an order refunded trigger to tell the customer.\n\n**When not to use:** For an order cancelled before payment use `cancel_order`.\n\n**Side effects:** Starts the automations with an order refunded trigger (`create_trigger_order_refunded`) and adds an entry to the activity of the member. The API does not check the current status of the order: calling it on an order in another status is accepted and fires the order refunded automations and the activity entry again.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated OrderResource resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource.jsonld-order.refund_order"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource-order.refund_order"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "money back",
            "return payment",
            "reimburse",
            "chargeback"
          ],
          "es": [
            "reembolsar pedido",
            "devolución",
            "devolver el pago",
            "pedido reembolsado"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/orders/{resourceId}/actions/ship_order": {
      "put": {
        "operationId": "ship_order",
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OrderResource resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource.jsonld-order.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResource-order.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or order does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another request was changing the same order at that moment. Nothing was saved: read the order again and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Mark an order as shipped",
        "description": "Sets the order to `shipped` and stores the tracking data of the shipment.\n\n**When to use:** When the order leaves the warehouse. Pair it with an automation with an order shipped trigger to send the tracking email.\n\n**When not to use:** To record the payment use `pay_order`.\n\n**Side effects:** Starts the automations with an order shipped trigger (`create_trigger_order_shipped`) and adds an entry to the activity of the member. The API does not check the current status of the order: calling it on an order in another status is accepted and fires the order shipped automations and the activity entry again.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the order belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the order: the one you chose when you created it.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "order-5001"
          }
        ],
        "requestBody": {
          "description": "The updated OrderResource resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource.jsonld-order.ship_order"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderResource-order.ship_order"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "dispatch",
            "tracking",
            "delivery started",
            "sent"
          ],
          "es": [
            "marcar como enviado",
            "pedido enviado",
            "envío realizado",
            "seguimiento"
          ]
        }
      }
    },
    "/pipeline_templates": {
      "get": {
        "operationId": "list_pipeline_templates",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "PipelineTemplate collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PipelineTemplate.jsonld-pipeline_template.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PipelineTemplate-pipeline_template.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List pipeline templates",
        "description": "Returns the ready-made pipelines the account can start from (B2B sales, SaaS, real estate, insurance, events...), each with its stages, probabilities and loss reasons.\n\n**When to use:** Before `create_pipeline_from_template`, to choose the template that fits the sales process of the user.\n\n**When not to use:** To see the pipelines the account already has, use `list_pipelines`. To build a pipeline stage by stage, use `create_pipeline`.\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pipeline templates",
            "sales process templates",
            "ready-made pipelines",
            "pipeline examples"
          ],
          "es": [
            "plantillas de pipeline",
            "plantillas de proceso de ventas",
            "pipelines predefinidos",
            "ejemplos de embudo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/pipelines": {
      "get": {
        "operationId": "list_pipelines",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Pipeline-pipeline.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List pipelines",
        "description": "Lists the sales pipelines the user can read, in alphabetical order, with their reference currency, whether each is the default and the access the user has to it.\n\n**When to use:** To find the pipeline for an opportunity, or before reading its stages and loss reasons with `get_pipeline`.\n\n**When not to use:** To read the stages, requirements and loss reasons of one pipeline, use `get_pipeline`; the list leaves them out. To list the deals, use `list_opportunities`.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. Only pipelines the user has `read` access to are listed.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pipelines",
            "sales pipelines",
            "sales funnels",
            "deal pipelines",
            "sales processes"
          ],
          "es": [
            "pipelines",
            "embudos de venta",
            "procesos de venta",
            "pipelines de oportunidades",
            "listado de pipelines"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      },
      "post": {
        "operationId": "create_pipeline",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "201": {
            "description": "Pipeline resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`pipeline_name_conflict`: Another pipeline already has that name (compared ignoring case). Choose another name.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`.\n\n`pipeline_currency_unsupported`: The reference currency is not in the exchange-rate catalog. Use another currency.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a pipeline",
        "description": "Creates a pipeline with four default stages (Lead as initial stage, In progress, Won, Lost) that you can then rename and adjust. If the account has no default pipeline, this one becomes the default.\n\n**When to use:** To start a new sales process from scratch.\n\n**When not to use:** To start from a ready-made process, use `list_pipeline_templates` and `create_pipeline_from_template`. To change an existing pipeline, use `update_pipeline`, and for its stages `create_pipeline_stage` and `update_pipeline_stage`.\n\n**Side effects:** The pipeline is open to the whole account until someone restricts it in the app: this API cannot manage who has access to a pipeline. The default stage names are written in the language of the account. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create pipeline",
            "new sales pipeline",
            "new funnel",
            "add pipeline"
          ],
          "es": [
            "crear pipeline",
            "nuevo embudo de ventas",
            "nuevo proceso de venta",
            "añadir pipeline"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 409,
            "code": "pipeline_name_conflict",
            "meaning": "Another pipeline already has that name (compared ignoring case). Choose another name."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "pipeline_currency_unsupported",
            "meaning": "The reference currency is not in the exchange-rate catalog. Use another currency."
          }
        ]
      }
    },
    "/pipelines/actions/from_template": {
      "post": {
        "operationId": "create_pipeline_from_template",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "201": {
            "description": "Pipeline resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_template_unknown`: The template does not exist. Take `id` from `list_pipeline_templates`.\n\n`account_currency_required`: The account has no currency set, so the template cannot take it. Create the pipeline with `create_pipeline` and a `reference_currency`, or ask an account admin to set the currency of the account.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a pipeline from a template",
        "description": "Creates a pipeline from one of the ready-made templates, with its stages, probabilities and loss reasons. The reference currency is the currency of the account.\n\n**When to use:** When the sales process of the user matches a template, for example SaaS, real estate or insurance.\n\n**When not to use:** To build one from scratch, use `create_pipeline`. To see the available templates, use `list_pipeline_templates`.\n\n**Side effects:** The pipeline name is the template name in the language of the account; if it already exists, a number is added («SaaS and software (2)»). If the account has no default pipeline, this one becomes the default. The pipeline is open to the whole account; this API cannot manage who has access. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineFromTemplateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineFromTemplateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create pipeline from template",
            "use pipeline template",
            "start from template"
          ],
          "es": [
            "crear pipeline desde plantilla",
            "usar plantilla de pipeline",
            "empezar con plantilla"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": "pipeline_template_unknown",
            "meaning": "The template does not exist. Take `id` from `list_pipeline_templates`."
          },
          {
            "status": 422,
            "code": "account_currency_required",
            "meaning": "The account has no currency set, so the template cannot take it. Create the pipeline with `create_pipeline` and a `reference_currency`, or ask an account admin to set the currency of the account."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/loss_reasons": {
      "post": {
        "operationId": "create_pipeline_loss_reason",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "201": {
            "description": "Pipeline resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Add a loss reason to a pipeline",
        "description": "Adds a reason for losing deals to the pipeline, at the end of the list. Returns the whole pipeline.\n\n**When to use:** To offer a new reason, for example «Chose a competitor», when someone loses a deal in this pipeline.\n\n**When not to use:** To rename a reason, use `update_pipeline_loss_reason`; to stop offering one, `archive_pipeline_loss_reason`. Whether a reason is asked for is set per lost stage with `loss_reason_mode` in `update_pipeline_stage`.\n\n**Side effects:** The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The new Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "add loss reason",
            "new loss reason",
            "why deals are lost"
          ],
          "es": [
            "añadir motivo de pérdida",
            "nuevo motivo de pérdida",
            "por qué se pierden negocios"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/loss_reasons/{uuid}": {
      "put": {
        "operationId": "update_pipeline_loss_reason",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Rename a pipeline loss reason",
        "description": "Renames a loss reason of the pipeline. Returns the whole pipeline.\n\n**When to use:** To fix or reword a reason.\n\n**When not to use:** To stop offering a reason without losing the history, use `archive_pipeline_loss_reason`.\n\n**Side effects:** Deals already lost with this reason keep the name they were closed with. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the loss reason. Get it from `get_pipeline`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "rename loss reason",
            "edit loss reason"
          ],
          "es": [
            "renombrar motivo de pérdida",
            "editar motivo de pérdida"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/archive": {
      "put": {
        "operationId": "archive_pipeline_loss_reason",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Archive a pipeline loss reason",
        "description": "Archives a loss reason: it can no longer be chosen for new losses, but deals already lost with it keep it. Returns the whole pipeline.\n\n**When to use:** To retire a reason that is no longer valid without losing the history.\n\n**When not to use:** To delete or rename a reason, use `update_pipeline_loss_reason` (reasons are never deleted). To do the opposite, use `restore_pipeline_loss_reason`.\n\n**Side effects:** Closed deals keep the reason in their history. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the loss reason. Get it from `get_pipeline`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "archive loss reason",
            "retire loss reason"
          ],
          "es": [
            "archivar motivo de pérdida",
            "retirar motivo de pérdida"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/restore": {
      "put": {
        "operationId": "restore_pipeline_loss_reason",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Restore a pipeline loss reason",
        "description": "Makes an archived loss reason available again for new losses. Returns the whole pipeline.\n\n**When to use:** When a retired reason is needed again.\n\n**When not to use:** To delete or rename a reason, use `update_pipeline_loss_reason` (reasons are never deleted). To do the opposite, use `archive_pipeline_loss_reason`.\n\n**Side effects:** The reason goes back to the end of the active ones. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the loss reason. Get it from `get_pipeline`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "restore loss reason",
            "unarchive loss reason"
          ],
          "es": [
            "restaurar motivo de pérdida",
            "recuperar motivo de pérdida"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline or the loss reason does not exist, or the user has no access. Read the UUIDs with `get_pipeline`."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/stages": {
      "post": {
        "operationId": "create_pipeline_stage",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "201": {
            "description": "Pipeline resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`. A value is not valid or breaks a pipeline rule. The `code` of the error or of `violations[]` says which: `pipeline_stage_type_in_use` (type change with deals in the stage), `pipeline_initial_stage_must_be_open`, `pipeline_requires_open_stage` / `pipeline_requires_won_stage` / `pipeline_requires_lost_stage` (a pipeline keeps at least one of each type), `pipeline_stage_requirement_invalid` / `pipeline_stage_requirement_unavailable` (unknown field or inactive attribute) or `pipeline_stage_requirements_duplicate`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Add a stage to a pipeline",
        "description": "Adds a stage at the end of the pipeline, with its type, color, probability, entry requirements and loss reason rule. Returns the whole pipeline so you can see the stage with its UUID.\n\n**When to use:** To add a step to the sales process, for example a «Proposal sent» stage.\n\n**When not to use:** To change a stage that exists, use `update_pipeline_stage`; to place it elsewhere, `reorder_pipeline_stages`. To add a loss reason, use `create_pipeline_loss_reason`.\n\n**Side effects:** Existing deals in the stage are not re-checked against new entry requirements; the rules apply the next time a deal enters. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The new Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStageCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStageCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "add stage",
            "new pipeline stage",
            "add step to pipeline",
            "create deal stage"
          ],
          "es": [
            "añadir etapa",
            "nueva etapa del pipeline",
            "añadir fase al embudo",
            "crear etapa de negocio"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`. A value is not valid or breaks a pipeline rule. The `code` of the error or of `violations[]` says which: `pipeline_stage_type_in_use` (type change with deals in the stage), `pipeline_initial_stage_must_be_open`, `pipeline_requires_open_stage` / `pipeline_requires_won_stage` / `pipeline_requires_lost_stage` (a pipeline keeps at least one of each type), `pipeline_stage_requirement_invalid` / `pipeline_stage_requirement_unavailable` (unknown field or inactive attribute) or `pipeline_stage_requirements_duplicate`."
          }
        ]
      }
    },
    "/pipelines/{pipelineUuid}/stages/{uuid}": {
      "put": {
        "operationId": "update_pipeline_stage",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline or the stage does not exist, or the user has no access. Read the UUIDs with `get_pipeline`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`. A value is not valid or breaks a pipeline rule. The `code` of the error or of `violations[]` says which: `pipeline_stage_type_in_use` (type change with deals in the stage), `pipeline_initial_stage_must_be_open`, `pipeline_requires_open_stage` / `pipeline_requires_won_stage` / `pipeline_requires_lost_stage` (a pipeline keeps at least one of each type), `pipeline_stage_requirement_invalid` / `pipeline_stage_requirement_unavailable` (unknown field or inactive attribute) or `pipeline_stage_requirements_duplicate`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a pipeline stage",
        "description": "Changes the name, color, probability, time limit, entry requirements or loss reason rule of a stage. Properties you leave out keep their value. Returns the whole pipeline.\n\n**When to use:** To rename a stage, change its probability or require fields before a deal can enter it.\n\n**When not to use:** To change the order, use `reorder_pipeline_stages`; to make it the initial stage, `set_pipeline_initial_stage`; to remove it, `delete_pipeline_stage`.\n\n**Side effects:** Existing deals in the stage are not re-checked against new entry requirements; the rules apply the next time a deal enters. Changing the probability changes the forecast of the open deals in the stage. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the stage. Get it from `get_pipeline`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStageUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStageUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update stage",
            "rename stage",
            "change stage probability",
            "stage requirements",
            "required fields for stage"
          ],
          "es": [
            "actualizar etapa",
            "renombrar etapa",
            "cambiar probabilidad de la etapa",
            "requisitos de la etapa",
            "campos obligatorios de la etapa"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline or the stage does not exist, or the user has no access. Read the UUIDs with `get_pipeline`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`. A value is not valid or breaks a pipeline rule. The `code` of the error or of `violations[]` says which: `pipeline_stage_type_in_use` (type change with deals in the stage), `pipeline_initial_stage_must_be_open`, `pipeline_requires_open_stage` / `pipeline_requires_won_stage` / `pipeline_requires_lost_stage` (a pipeline keeps at least one of each type), `pipeline_stage_requirement_invalid` / `pipeline_stage_requirement_unavailable` (unknown field or inactive attribute) or `pipeline_stage_requirements_duplicate`."
          }
        ]
      },
      "delete": {
        "operationId": "delete_pipeline_stage",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "204": {
            "description": "Pipeline resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline or the stage does not exist, or the user has no access.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_terminal_stage_in_use`: A won or lost stage with deals cannot be deleted. Move its deals first.\n\n`pipeline_initial_stage_requires_replacement`: It is the initial stage. Set another open stage as initial first.\n\n`pipeline_requires_open_stage`: The pipeline would be left without an open, won or lost stage (`pipeline_requires_won_stage`, `pipeline_requires_lost_stage` in the same way).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a pipeline stage",
        "description": "Permanently deletes a stage. The open deals that were in it stay in the pipeline without stage.\n\n**When to use:** Only when the user explicitly asks to remove a step from the sales process.\n\n**When not to use:** To keep the stage but change it, use `update_pipeline_stage`. A won or lost stage with deals cannot be deleted: move them first with `move_opportunity_stage`. The initial stage cannot be deleted until another open stage is set with `set_pipeline_initial_stage`.\n\n**Side effects:** Open deals of the stage lose their stage (an `opportunity.stage_changed` entry is added to each one) and show in the «no stage» column. A pipeline keeps at least one open, one won and one lost stage. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "pipelineUuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the stage. Get it from `get_pipeline`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete stage",
            "remove pipeline stage",
            "drop deal stage"
          ],
          "es": [
            "borrar etapa",
            "eliminar etapa del pipeline",
            "quitar fase del embudo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline or the stage does not exist, or the user has no access."
          },
          {
            "status": 422,
            "code": "pipeline_terminal_stage_in_use",
            "meaning": "A won or lost stage with deals cannot be deleted. Move its deals first."
          },
          {
            "status": 422,
            "code": "pipeline_initial_stage_requires_replacement",
            "meaning": "It is the initial stage. Set another open stage as initial first."
          },
          {
            "status": 422,
            "code": "pipeline_requires_open_stage",
            "meaning": "The pipeline would be left without an open, won or lost stage (`pipeline_requires_won_stage`, `pipeline_requires_lost_stage` in the same way)."
          }
        ]
      }
    },
    "/pipelines/{uuid}": {
      "get": {
        "operationId": "get_pipeline",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a pipeline",
        "description": "Returns one pipeline with its settings, all its stages (type, probability, order, entry requirements and loss reason rule) and its loss reasons.\n\n**When to use:** To learn which stages exist and what a deal needs to enter each one, or which loss reasons are available, before moving, winning or losing a deal.\n\n**When not to use:** To list the pipelines, use `list_pipelines`. To list the deals of a pipeline, use `list_opportunities` with the `pipeline` filter.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. It also needs `read` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "get pipeline",
            "pipeline stages",
            "stages of a pipeline",
            "loss reasons",
            "deal stages"
          ],
          "es": [
            "ver pipeline",
            "etapas del pipeline",
            "etapas del embudo",
            "motivos de pérdida",
            "fases del negocio"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          }
        ]
      },
      "put": {
        "operationId": "update_pipeline",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`pipeline_name_conflict`: Another pipeline already has that name (compared ignoring case). Choose another name.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`.\n\n`pipeline_currency_in_use`: Deals use another currency, so the reference currency cannot change. Move or edit those deals first.\n\n`pipeline_custom_probability_in_use`: Deals have a custom probability, so it cannot be turned off. Remove those overrides first.\n\n`pipeline_currency_unsupported`: The reference currency is not in the exchange-rate catalog.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a pipeline",
        "description": "Changes the name, reference currency and the two switches of a pipeline (custom probability and several currencies). Properties you leave out keep their value. Stages and loss reasons are changed with their own operations.\n\n**When to use:** To rename a pipeline or to allow deals in several currencies.\n\n**When not to use:** To change a stage use `update_pipeline_stage`; to make this the default pipeline, `set_default_pipeline`. To change who can access the pipeline, use the app: this API does not manage access.\n\n**Side effects:** Changing `reference_currency` does not rewrite closed deals: their saved conversion stays but stops being reported, and closed deals are revalued at today's rate. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update pipeline",
            "rename pipeline",
            "change pipeline currency",
            "allow custom probability"
          ],
          "es": [
            "actualizar pipeline",
            "renombrar pipeline",
            "cambiar moneda del pipeline",
            "permitir probabilidad personalizada"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 409,
            "code": "pipeline_name_conflict",
            "meaning": "Another pipeline already has that name (compared ignoring case). Choose another name."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A value is not valid: blank or too long name, a color that is not `#RRGGBB`, a probability out of range, an unknown currency or a reference to an attribute that is not active. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "pipeline_currency_in_use",
            "meaning": "Deals use another currency, so the reference currency cannot change. Move or edit those deals first."
          },
          {
            "status": 422,
            "code": "pipeline_custom_probability_in_use",
            "meaning": "Deals have a custom probability, so it cannot be turned off. Remove those overrides first."
          },
          {
            "status": 422,
            "code": "pipeline_currency_unsupported",
            "meaning": "The reference currency is not in the exchange-rate catalog."
          }
        ]
      },
      "delete": {
        "operationId": "delete_pipeline",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "204": {
            "description": "Pipeline resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_has_opportunities`: The pipeline still has deals. Move or delete them first.\n\n`pipeline_replacement_default_required`: This is the default pipeline: send `replacement_default` with another pipeline.\n\n`pipeline_replacement_default_invalid`: `replacement_default` is not another existing pipeline, or it is not needed because this one is not the default.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a pipeline",
        "description": "Permanently deletes a pipeline with its stages and loss reasons. It must have no deals. If it is the default pipeline, you must name another one as the new default.\n\n**When to use:** Only when the user explicitly asks to remove a sales process that is no longer used.\n\n**When not to use:** A pipeline with deals cannot be deleted: move them with `move_opportunity_pipeline` or delete them first. To keep the pipeline but rename it, use `update_pipeline`.\n\n**Side effects:** The pipeline, its stages, loss reasons and access grants disappear. There is no undo. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          {
            "name": "replacement_default",
            "in": "query",
            "description": "UUID of the pipeline that becomes the default. Required only when you delete the default pipeline.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete pipeline",
            "remove pipeline",
            "drop sales pipeline"
          ],
          "es": [
            "borrar pipeline",
            "eliminar pipeline",
            "quitar embudo de ventas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": "pipeline_has_opportunities",
            "meaning": "The pipeline still has deals. Move or delete them first."
          },
          {
            "status": 422,
            "code": "pipeline_replacement_default_required",
            "meaning": "This is the default pipeline: send `replacement_default` with another pipeline."
          },
          {
            "status": 422,
            "code": "pipeline_replacement_default_invalid",
            "meaning": "`replacement_default` is not another existing pipeline, or it is not needed because this one is not the default."
          }
        ]
      }
    },
    "/pipelines/{uuid}/actions/make_default": {
      "put": {
        "operationId": "set_default_pipeline",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Make a pipeline the default",
        "description": "Makes this pipeline the default one of the account. The previous default stops being it.\n\n**When to use:** When the user wants a different pipeline to be the one that opens first and the one used when no other is chosen.\n\n**When not to use:** To create a pipeline, use `create_pipeline`. To rename it, use `update_pipeline`.\n\n**Side effects:** Only the flag `default` changes. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "default pipeline",
            "make pipeline default",
            "set main pipeline"
          ],
          "es": [
            "pipeline predeterminado",
            "hacer pipeline predeterminado",
            "pipeline principal"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          }
        ]
      }
    },
    "/pipelines/{uuid}/actions/reorder_loss_reasons": {
      "put": {
        "operationId": "reorder_pipeline_loss_reasons",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_loss_reason_reorder_incomplete`: The list must contain every active loss reason exactly once.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reorder the loss reasons of a pipeline",
        "description": "Sets the order in which the active loss reasons are offered. Send all the active ones, in the new order. Returns the pipeline.\n\n**When to use:** To put the most common reasons first.\n\n**When not to use:** To add or rename reasons, use `create_pipeline_loss_reason` or `update_pipeline_loss_reason`.\n\n**Side effects:** Only positions change. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonsOrderInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineLossReasonsOrderInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reorder loss reasons",
            "sort loss reasons"
          ],
          "es": [
            "reordenar motivos de pérdida",
            "ordenar motivos de pérdida"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": "pipeline_loss_reason_reorder_incomplete",
            "meaning": "The list must contain every active loss reason exactly once."
          }
        ]
      }
    },
    "/pipelines/{uuid}/actions/reorder_stages": {
      "put": {
        "operationId": "reorder_pipeline_stages",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_stage_reorder_incomplete`: The list must contain every stage of the pipeline exactly once.\n\n`pipeline_stage_not_found`: A UUID in `stages` is not a stage of this pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reorder the stages of a pipeline",
        "description": "Sets the order of the stages of a pipeline. Send all of them, in the new order. Returns the pipeline.\n\n**When to use:** To move a stage earlier or later in the sales process.\n\n**When not to use:** To create or change a stage, use `create_pipeline_stage` or `update_pipeline_stage`. To reorder loss reasons, use `reorder_pipeline_loss_reasons`.\n\n**Side effects:** Only the positions change; deals are not affected. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStagesOrderInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineStagesOrderInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reorder stages",
            "sort pipeline stages",
            "change stage order"
          ],
          "es": [
            "reordenar etapas",
            "ordenar etapas del pipeline",
            "cambiar el orden de las etapas"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": "pipeline_stage_reorder_incomplete",
            "meaning": "The list must contain every stage of the pipeline exactly once."
          },
          {
            "status": 422,
            "code": "pipeline_stage_not_found",
            "meaning": "A UUID in `stages` is not a stage of this pipeline."
          }
        ]
      }
    },
    "/pipelines/{uuid}/actions/set_initial_stage": {
      "put": {
        "operationId": "set_pipeline_initial_stage",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "Pipeline resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline.jsonld-pipeline.list_pipeline.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pipeline-pipeline.list_pipeline.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`pipeline_initial_stage_must_be_open`: The initial stage must be an open stage.\n\n`pipeline_stage_not_found`: `stage` is not a stage of this pipeline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Set the initial stage of a pipeline",
        "description": "Chooses which open stage is the initial one: the stage `reopen_opportunity` uses by default and the one the app preselects for new deals.\n\n**When to use:** When the entry point of the sales process changes, or before deleting the current initial stage.\n\n**When not to use:** Deals created without stage do not use it. To change order or rules of the stage, use `reorder_pipeline_stages` or `update_pipeline_stage`.\n\n**Side effects:** Existing deals do not move. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.pipelines.manage` capability. It also needs `admin` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "requestBody": {
          "description": "The updated Pipeline resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineInitialStageInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pipeline.PipelineInitialStageInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "initial stage",
            "first stage of pipeline",
            "default stage"
          ],
          "es": [
            "etapa inicial",
            "primera etapa del pipeline",
            "etapa por defecto"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions or the user lacks `admin` access to the pipeline. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          },
          {
            "status": 422,
            "code": "pipeline_initial_stage_must_be_open",
            "meaning": "The initial stage must be an open stage."
          },
          {
            "status": 422,
            "code": "pipeline_stage_not_found",
            "meaning": "`stage` is not a stage of this pipeline."
          }
        ]
      }
    },
    "/pipelines/{uuid}/summary": {
      "get": {
        "operationId": "get_pipeline_summary",
        "tags": [
          "Pipelines"
        ],
        "responses": {
          "200": {
            "description": "PipelineSummary resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineSummary.jsonld-pipeline_summary.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineSummary-pipeline_summary.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_pipeline`: The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Summarize the opportunities of a pipeline",
        "description": "Returns a summary of the deals of one pipeline, stage by stage: number of deals, amount converted to the reference currency of the pipeline, average amount and weighted forecast. It adds the totals, the open deals and the split of the open deals by expected close month.\n\n**When to use:** To answer \"how are my opportunities doing?\", to get the totals per stage or to see what is expected to close this month, in one call instead of paging through `list_opportunities` and adding up.\n\n**When not to use:** To read or edit the deals themselves, use `list_opportunities` or `get_opportunity`. The figures cover the whole pipeline and cannot be filtered by owner or by text: for the deals of one owner, use `list_opportunities` with `owner`.\n\n**Permissions:** Requires a CRM seat and the `crm.opportunities.read` capability. It also needs `read` access to the pipeline.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the pipeline. Get it from `list_pipelines`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pipeline summary",
            "sales funnel",
            "deals by stage",
            "forecast",
            "how are my opportunities"
          ],
          "es": [
            "resumen del embudo",
            "embudo de ventas",
            "oportunidades por etapa",
            "previsión",
            "cómo van mis oportunidades"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_pipeline",
            "meaning": "The pipeline does not exist, or the user has no access to it. Find the UUID with `list_pipelines`."
          }
        ]
      }
    },
    "/my_suscription": {
      "get": {
        "operationId": "api_my_suscription_get",
        "tags": [
          "Plan & usage"
        ],
        "responses": {
          "200": {
            "description": "MySuscription resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/MySuscription.jsonld-my_suscription.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MySuscription-my_suscription.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "404": {
            "description": "The account has no subscription, so there is no plan to report. Contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get plan and usage",
        "description": "Returns the plan (tier) and expiry date of the account, its limits (subscribers, audiences, automations, triggers, landing pages) and what has been used so far, including credits, AI cost and SMS credits. A limit of `-1` means unlimited. When the call is made on behalf of a user, it also returns that user's name, email, role and time zone.\n\n**When to use:** To know whether the account is within its plan before creating something that counts against a limit, or to check that a key or token works and which account it belongs to.\n\n**When not to use:** For invoices use `list_invoices`.\n\n**Permissions:** No specific permission.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "subscription",
            "tier",
            "quota",
            "limits",
            "credits",
            "billing plan",
            "whoami"
          ],
          "es": [
            "mi suscripción",
            "plan contratado",
            "consumo",
            "límites del plan",
            "créditos",
            "suscriptores usados",
            "comprobar conexión"
          ]
        }
      }
    },
    "/data_managers": {
      "get": {
        "operationId": "list_data_managers",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "DataManager collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DataManager.jsonld-data_manager.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataManager-data_manager.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List data managers",
        "description": "Returns the data managers of the account: the people or companies named as responsible for personal data in the legal texts of audiences and forms.\n\n**When to use:** To see which data managers exist before assigning one to an audience's GDPR settings.\n\n**When not to use:** For the reasons for which data is collected use `list_treatment_purposes`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "gdpr",
            "data controller",
            "responsible for processing",
            "privacy contact"
          ],
          "es": [
            "responsable del tratamiento",
            "rgpd",
            "delegado de datos",
            "responsables de datos"
          ]
        }
      },
      "post": {
        "operationId": "create_data_manager",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "201": {
            "description": "DataManager resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager.jsonld-data_manager.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager-data_manager.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a data manager",
        "description": "Adds a person or company as responsible for personal data, with a contact email.\n\n**When to use:** When an audience needs a data manager in its privacy settings and none matches.\n\n**When not to use:** To change an existing one use `update_data_manager`.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new DataManager resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/DataManager.jsonld-data_manager.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataManager-data_manager.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new data controller",
            "add gdpr responsible",
            "privacy officer"
          ],
          "es": [
            "crear responsable del tratamiento",
            "nuevo responsable de datos",
            "añadir responsable rgpd"
          ]
        }
      }
    },
    "/data_managers/{uuid}": {
      "get": {
        "operationId": "get_data_manager",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "DataManager resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager.jsonld-data_manager.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager-data_manager.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The data manager does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a data manager",
        "description": "Returns one data manager.\n\n**When to use:** To read the name and contact email of a data manager you already know.\n\n**When not to use:** To find data managers use `list_data_managers`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the data manager. Get it with `list_data_managers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "a6c3e812-4f09-4d57-b1a8-35e7d9c2f640"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "data controller details",
            "gdpr contact"
          ],
          "es": [
            "ver responsable del tratamiento",
            "detalle del responsable"
          ]
        }
      },
      "put": {
        "operationId": "update_data_manager",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "DataManager resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager.jsonld-data_manager.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataManager-data_manager.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The data manager does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a data manager",
        "description": "Changes the name or contact email of a data manager.\n\n**When to use:** When the company name or the privacy contact changes.\n\n**When not to use:** To add a new one use `create_data_manager`.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the data manager. Get it with `list_data_managers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "a6c3e812-4f09-4d57-b1a8-35e7d9c2f640"
          }
        ],
        "requestBody": {
          "description": "The updated DataManager resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/DataManager.jsonld-data_manager.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataManager-data_manager.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit data controller",
            "change gdpr contact"
          ],
          "es": [
            "editar responsable del tratamiento",
            "modificar responsable de datos"
          ]
        }
      },
      "delete": {
        "operationId": "delete_data_manager",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "204": {
            "description": "DataManager resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The data manager does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An audience uses this data manager. Assign another one in that audience and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a data manager",
        "description": "Permanently deletes a data manager that no audience uses.\n\n**When to use:** When the data manager is no longer needed.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the data manager. Get it with `list_data_managers`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "a6c3e812-4f09-4d57-b1a8-35e7d9c2f640"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove data controller",
            "erase gdpr responsible"
          ],
          "es": [
            "eliminar responsable del tratamiento",
            "borrar responsable de datos"
          ]
        }
      }
    },
    "/treatment_purposes": {
      "get": {
        "operationId": "list_treatment_purposes",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "TreatmentPurpose collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List treatment purposes",
        "description": "Returns the treatment purposes of the account: the reasons for which personal data is collected, each with the consent text per language. People accept them when they sign up.\n\n**When to use:** To see the consents that exist before enabling them in an audience, or to find the purposes to record in the `member_consent` of a customer.\n\n**When not to use:** For who is responsible for the data use `list_data_managers`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "consents",
            "gdpr purposes",
            "consent texts",
            "legal bases"
          ],
          "es": [
            "finalidades del tratamiento",
            "consentimientos",
            "textos de consentimiento",
            "rgpd"
          ]
        }
      },
      "post": {
        "operationId": "create_treatment_purpose",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "201": {
            "description": "TreatmentPurpose resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing or invalid. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a treatment purpose",
        "description": "Adds a purpose for which personal data is collected, with the text people accept in each language.\n\n**When to use:** When the account needs a consent that is not among the existing ones (for example a specific marketing use).\n\n**When not to use:** To change an existing one use `update_treatment_purpose`.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new TreatmentPurpose resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new consent",
            "add gdpr purpose",
            "consent text"
          ],
          "es": [
            "crear finalidad",
            "nuevo consentimiento",
            "añadir finalidad del tratamiento"
          ]
        }
      }
    },
    "/treatment_purposes/{uuid}": {
      "get": {
        "operationId": "get_treatment_purpose",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "TreatmentPurpose resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The treatment purpose does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a treatment purpose",
        "description": "Returns one treatment purpose with its texts per language and the channels it applies to.\n\n**When to use:** To read a consent text you already know.\n\n**When not to use:** To find purposes use `list_treatment_purposes`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the treatment purpose. Get it with `list_treatment_purposes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "consent details",
            "purpose details"
          ],
          "es": [
            "ver finalidad",
            "detalle del consentimiento"
          ]
        }
      },
      "put": {
        "operationId": "update_treatment_purpose",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "200": {
            "description": "TreatmentPurpose resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The treatment purpose does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing or invalid. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a treatment purpose",
        "description": "Changes the name, description, texts or channels of a treatment purpose.\n\n**When to use:** When the wording of a consent must change.\n\n**When not to use:** To add a new purpose use `create_treatment_purpose`.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the treatment purpose. Get it with `list_treatment_purposes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
          }
        ],
        "requestBody": {
          "description": "The updated TreatmentPurpose resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/TreatmentPurpose.jsonld-treatment_purpose.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TreatmentPurpose-treatment_purpose.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit consent",
            "change consent text"
          ],
          "es": [
            "editar finalidad",
            "modificar consentimiento",
            "cambiar texto de consentimiento"
          ]
        }
      },
      "delete": {
        "operationId": "delete_treatment_purpose",
        "tags": [
          "Privacy"
        ],
        "responses": {
          "204": {
            "description": "Treatment purpose resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The treatment purpose does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An audience uses this purpose. Remove it from that audience and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a treatment purpose",
        "description": "Permanently deletes a treatment purpose that no audience uses.\n\n**When to use:** When the consent is no longer asked for.\n\n**Permissions:** Requires the manager role or higher, or the `account.security.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the treatment purpose. Get it with `list_treatment_purposes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove consent",
            "erase purpose"
          ],
          "es": [
            "eliminar finalidad",
            "borrar consentimiento"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/categories": {
      "get": {
        "operationId": "list_store_categories",
        "tags": [
          "Product categories"
        ],
        "responses": {
          "200": {
            "description": "Category collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Category.jsonld-category.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Category-category.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List product categories",
        "description": "Returns the product categories of one store.\n\n**When to use:** To see how the catalog of a store is organized, or to find the category IRI to put on a product.\n\n**When not to use:** To read one category use `get_store_category`; for the products themselves use `list_store_products`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the category belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "catalog categories",
            "product groups",
            "collections",
            "departments"
          ],
          "es": [
            "categorías de producto",
            "categorías de la tienda",
            "colecciones",
            "departamentos"
          ]
        }
      },
      "post": {
        "operationId": "create_store_category",
        "tags": [
          "Product categories"
        ],
        "responses": {
          "201": {
            "description": "Category resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Category.jsonld-category.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Category-category.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a product category",
        "description": "Adds a category to the catalog of a store.\n\n**When to use:** When a shop synchronizes its catalog, before creating the products that belong to the category.\n\n**When not to use:** To change a category that already exists use `update_store_category`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the category belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "requestBody": {
          "description": "The new Category resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Category.jsonld-category.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Category-category.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new category",
            "add collection",
            "sync category"
          ],
          "es": [
            "crear categoría",
            "nueva categoría de producto",
            "añadir colección"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/categories/{resourceId}": {
      "get": {
        "operationId": "get_store_category",
        "tags": [
          "Product categories"
        ],
        "responses": {
          "200": {
            "description": "Category resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Category.jsonld-category.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Category-category.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The category does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a product category",
        "description": "Returns one category of a store.\n\n**When to use:** To check the title and image of a category you already know.\n\n**When not to use:** To list all categories use `list_store_categories`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the category belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the category: the one you chose when you created it with `create_store_category`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "shoes"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "category details",
            "collection details"
          ],
          "es": [
            "ver categoría",
            "detalle de la categoría"
          ]
        }
      },
      "put": {
        "operationId": "update_store_category",
        "tags": [
          "Product categories"
        ],
        "responses": {
          "200": {
            "description": "Category resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Category.jsonld-category.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Category-category.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or category does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a product category",
        "description": "Changes the title or image of a category.\n\n**When to use:** When the category is renamed or gets a new image in the shop.\n\n**When not to use:** To add a new category use `create_store_category`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the category belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the category: the one you chose when you created it with `create_store_category`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "shoes"
          }
        ],
        "requestBody": {
          "description": "The updated Category resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Category.jsonld-category.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Category-category.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit category",
            "rename category",
            "change collection"
          ],
          "es": [
            "editar categoría",
            "renombrar categoría",
            "modificar categoría"
          ]
        }
      },
      "delete": {
        "operationId": "delete_store_category",
        "tags": [
          "Product categories"
        ],
        "responses": {
          "204": {
            "description": "Category resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or category does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a product category",
        "description": "Permanently deletes a category. The products that were in it are kept and are no longer linked to it.\n\n**When to use:** When the category is removed from the shop.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the category belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the category: the one you chose when you created it with `create_store_category`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "shoes"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove category",
            "erase collection"
          ],
          "es": [
            "eliminar categoría",
            "borrar categoría",
            "quitar colección"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/products/{productResourceId}/variants": {
      "get": {
        "operationId": "list_product_variants",
        "tags": [
          "Product variants"
        ],
        "responses": {
          "200": {
            "description": "Variant collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Variant.jsonld-variant.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Variant-variant.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List product variants",
        "description": "Returns the variants of one product, most recently updated first.\n\n**When to use:** To see the sizes, colors or options a product has, with their price and stock.\n\n**When not to use:** To read one variant use `get_product_variant`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "productResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product the variant belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "options",
            "sizes",
            "colors",
            "skus"
          ],
          "es": [
            "variantes del producto",
            "tallas",
            "colores",
            "opciones del producto"
          ]
        }
      },
      "post": {
        "operationId": "create_product_variant",
        "tags": [
          "Product variants"
        ],
        "responses": {
          "201": {
            "description": "Variant resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant.jsonld-variant.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant-variant.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or product does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a product variant",
        "description": "Adds a variant to a product, with its own price, SKU and stock.\n\n**When to use:** When a shop synchronizes its catalog, before creating orders that include the variant. Orders refer to variants, not to products.\n\n**When not to use:** To change a variant that already exists use `update_product_variant`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "productResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product the variant belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          }
        ],
        "requestBody": {
          "description": "The new Variant resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Variant.jsonld-variant.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Variant-variant.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new variant",
            "add option",
            "new sku",
            "size option"
          ],
          "es": [
            "crear variante",
            "nueva variante",
            "añadir talla",
            "añadir opción"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/products/{productResourceId}/variants/{resourceId}": {
      "get": {
        "operationId": "get_product_variant",
        "tags": [
          "Product variants"
        ],
        "responses": {
          "200": {
            "description": "Variant resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant.jsonld-variant.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant-variant.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The variant does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a product variant",
        "description": "Returns one variant with its price, SKU and stock.\n\n**When to use:** To check the price or stock of a variant you already know.\n\n**When not to use:** To list variants use `list_product_variants`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "productResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product the variant belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the variant: the one you chose when you created it with `create_product_variant`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01-42"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "variant details",
            "sku details",
            "stock of a variant"
          ],
          "es": [
            "ver variante",
            "detalle de la variante",
            "stock de una variante"
          ]
        }
      },
      "put": {
        "operationId": "update_product_variant",
        "tags": [
          "Product variants"
        ],
        "responses": {
          "200": {
            "description": "Variant resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant.jsonld-variant.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Variant-variant.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store, product or variant does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a product variant",
        "description": "Changes the title, SKU, price, stock or addresses of a variant.\n\n**When to use:** When the price or stock changes in the shop.\n\n**When not to use:** To change the product itself use `update_store_product`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "productResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product the variant belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the variant: the one you chose when you created it with `create_product_variant`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01-42"
          }
        ],
        "requestBody": {
          "description": "The updated Variant resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Variant.jsonld-variant.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Variant-variant.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "change price",
            "update stock",
            "edit variant",
            "inventory"
          ],
          "es": [
            "editar variante",
            "cambiar precio",
            "actualizar stock",
            "modificar variante"
          ]
        }
      },
      "delete": {
        "operationId": "delete_product_variant",
        "tags": [
          "Product variants"
        ],
        "responses": {
          "204": {
            "description": "Variant resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store, product or variant does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a product variant",
        "description": "Permanently deletes a variant. Orders that included it are kept, without the link to the variant.\n\n**When to use:** When the option is removed from the shop.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "productResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product the variant belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the variant: the one you chose when you created it with `create_product_variant`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01-42"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove variant",
            "erase option",
            "discontinue sku"
          ],
          "es": [
            "eliminar variante",
            "borrar variante",
            "quitar talla"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/products": {
      "get": {
        "operationId": "list_store_products",
        "tags": [
          "Products"
        ],
        "responses": {
          "200": {
            "description": "Product collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product.jsonld-product.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Product-product.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List store products",
        "description": "Returns the products of one store catalog, most recently updated first.\n\n**When to use:** To check which products Easymailing already knows for a shop, or to find the identifier of a product.\n\n**When not to use:** To read one product with its variants use `get_store_product`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the product belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "catalog",
            "items",
            "merchandise",
            "sku list"
          ],
          "es": [
            "productos de la tienda",
            "catálogo",
            "artículos",
            "listado de productos"
          ]
        }
      },
      "post": {
        "operationId": "create_store_product",
        "tags": [
          "Products"
        ],
        "responses": {
          "201": {
            "description": "Product resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Product.jsonld-product.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product-product.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing or a category does not belong to the store. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a store product",
        "description": "Adds a product to the catalog of a store. It has no price or stock until you add variants with `create_product_variant`.\n\n**When to use:** When a shop synchronizes its catalog, before creating the orders that include the product.\n\n**When not to use:** To change a product that already exists use `update_store_product`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the product belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "requestBody": {
          "description": "The new Product resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Product.jsonld-product.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Product-product.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new product",
            "add item",
            "sync product",
            "catalog item"
          ],
          "es": [
            "crear producto",
            "nuevo producto",
            "añadir artículo",
            "sincronizar producto"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/products/{resourceId}": {
      "get": {
        "operationId": "get_store_product",
        "tags": [
          "Products"
        ],
        "responses": {
          "200": {
            "description": "Product resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Product.jsonld-product.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product-product.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The product does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a store product",
        "description": "Returns one product with its categories and variants.\n\n**When to use:** To check the data of a product you already know, including its variants.\n\n**When not to use:** To list products use `list_store_products`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the product belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product: the one you chose when you created it with `create_store_product`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "product details",
            "item details",
            "variants of a product"
          ],
          "es": [
            "ver producto",
            "detalle del producto",
            "variantes de un producto"
          ]
        }
      },
      "put": {
        "operationId": "update_store_product",
        "tags": [
          "Products"
        ],
        "responses": {
          "200": {
            "description": "Product resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Product.jsonld-product.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product-product.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or product does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing or a category does not belong to the store. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a store product",
        "description": "Changes the data of a product: title, description, vendor, addresses and categories.\n\n**When to use:** When the product is edited in the shop and the change must reach Easymailing.\n\n**When not to use:** To change price or stock use `update_product_variant`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the product belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product: the one you chose when you created it with `create_store_product`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          }
        ],
        "requestBody": {
          "description": "The updated Product resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Product.jsonld-product.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Product-product.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit product",
            "modify item",
            "change product data"
          ],
          "es": [
            "editar producto",
            "modificar producto",
            "actualizar artículo"
          ]
        }
      },
      "delete": {
        "operationId": "delete_store_product",
        "tags": [
          "Products"
        ],
        "responses": {
          "204": {
            "description": "Product resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or product does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a store product",
        "description": "Permanently deletes a product and all its variants. Orders that included it are kept, without the link to the product.\n\n**When to use:** When the product is removed from the shop.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the product belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the product: the one you chose when you created it with `create_store_product`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sneaker-01"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove product",
            "erase item",
            "discontinue"
          ],
          "es": [
            "eliminar producto",
            "borrar producto",
            "quitar artículo"
          ]
        }
      }
    },
    "/sms_campaigns": {
      "get": {
        "operationId": "list_sms_campaigns",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "200": {
            "description": "SmsCampaign collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SmsCampaign.jsonld-campaign.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SmsCampaign-campaign.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List SMS campaigns",
        "description": "Returns the SMS campaigns of your account, newest first, with their status, audience, message and sender. Email campaigns are not included: they have their own list.\n\n**When to use:** To find an SMS campaign by name, status or audience, to see what was sent last, or to get the UUID that the other SMS campaign operations ask for.\n\n**When not to use:** To read one SMS campaign in full, with its recipient count and delivery warnings, use `get_sms_campaign`. For email campaigns, use `list_campaigns`.\n\n**Filters:** Default order: newest created first.\n\n- `title`: campaigns whose name contains the text.\n- `status`: exact status, for example `campaign.status.sent` (same values as the `status` field).\n- `type`: exact type; SMS campaigns are always `campaign.regular`.\n- `hash`: exact hash of the campaign.\n- `audience`: UUID of the audience.\n\nSorting: `order[createdAt]`, `order[updatedAt]`, `order[status]`, `order[startedAt]` (when sending began) or `order[finishedAt]` (when it ended), each `asc` or `desc`. For the last one sent, combine `status=campaign.status.sent` with `order[startedAt]=desc&itemsPerPage=1`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Number of SMS campaigns per page (default 30, maximum 50).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only SMS campaigns whose name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Black Friday"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Return only SMS campaigns in this status, with the same value as the `status` field of a campaign.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "campaign.status.sent"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only campaigns of this type, with the same value as the `type` field. SMS campaigns are always `campaign.regular`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "campaign.regular"
          },
          {
            "name": "hash",
            "in": "query",
            "description": "Return only the campaign with this hash: the unique tracking code of the campaign.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "Return only SMS campaigns of the audience with this UUID (the UUID alone, not the IRI).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "text messages",
            "SMS blast",
            "sent SMS",
            "SMS history",
            "mobile messages"
          ],
          "es": [
            "mensajes de texto",
            "envíos por SMS",
            "SMS enviados",
            "historial de SMS",
            "mensajes al móvil"
          ]
        }
      },
      "post": {
        "operationId": "create_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "201": {
            "description": "SmsCampaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: missing message or sender, an SMS sender that does not exist or is not active (see `list_sms_senders`), or groups or segment from another audience.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`campaign_field_not_allowed`: A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition.\n\n`campaign_filter_empty`: `send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`.\n\n`segment_reference_not_found`: `contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: `contact_segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: `contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an SMS campaign",
        "description": "Creates an SMS campaign as a draft: message, SMS sender, recipients and tracking are saved, but no SMS is sent. To be valid it needs a `title`, an `audience`, `send_to` (with `groups`, `contact_segment` or `filter` when needed) and `sms_config` with the `message` and an active `sms_sender`. Only contacts with a confirmed SMS subscription and a phone number receive it.\n\n**When to use:** To prepare a text message for an audience, some of its groups, a contact segment or a filter of its own. Afterwards check it with `get_sms_campaign` (`recipient_count`), send a preview with `send_sms_campaign_test`, and then send it (`send_sms_campaign_now`) or schedule it (`schedule_sms_campaign`).\n\n**When not to use:** For email use `create_campaign`. To start from an existing SMS campaign, use `duplicate_sms_campaign`.\n\n**Side effects:** Nothing is sent to anyone.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability. Choosing `contact_segment` or `filter` also requires the `contacts.read` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSmsInput.jsonld-campaign.write.sms"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSmsInput-campaign.write.sms"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "text message",
            "SMS blast",
            "mobile message",
            "new SMS",
            "draft SMS"
          ],
          "es": [
            "mensaje de texto",
            "nuevo SMS",
            "enviar SMS",
            "borrador de SMS",
            "mensaje al móvil"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The campaign is incomplete or inconsistent. Each entry in `violations[].propertyPath` names the field to fix: missing message or sender, an SMS sender that does not exist or is not active (see `list_sms_senders`), or groups or segment from another audience."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "campaign_field_not_allowed",
            "meaning": "A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition."
          },
          {
            "status": 422,
            "code": "campaign_filter_empty",
            "meaning": "`send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "`contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "`contact_segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "`contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment."
          }
        ]
      }
    },
    "/sms_campaigns/{uuid}": {
      "get": {
        "operationId": "get_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "200": {
            "description": "SmsCampaign resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign.jsonld-campaign.read_campaign.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign-campaign.read_campaign.read.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account. Email campaigns are not found here: use `get_campaign`. Check the UUID with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an SMS campaign",
        "description": "Returns one SMS campaign with its message, sender, tracking options and recipients: `send_to` with `groups`, `list_segment` (old audience segment) or `contact_targeting` (contact segment or its own filter, as chosen in Customer App). Sent campaigns also carry their statistics; draft, ready and scheduled ones carry `recipient_count` and `warnings`, such as not having enough SMS credits.\n\n**When to use:** To check the state of an SMS campaign, to see how a sent one performed, or, before sending or scheduling, to confirm that it has recipients and that no warning has `blocks_sending: true`.\n\n**When not to use:** To find an SMS campaign when you do not know its UUID, use `list_sms_campaigns`. For an email campaign, use `get_campaign`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "SMS details",
            "SMS statistics",
            "delivery warnings",
            "SMS credits",
            "recipient count"
          ],
          "es": [
            "detalle de SMS",
            "estadísticas de SMS",
            "avisos de envío",
            "créditos de SMS",
            "cuántos destinatarios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no SMS campaign with this UUID in your account. Email campaigns are not found here: use `get_campaign`. Check the UUID with `list_sms_campaigns`."
          }
        ]
      },
      "put": {
        "operationId": "update_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "200": {
            "description": "SmsCampaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign cannot be edited because it is already sending, sent, paused or in error. Create a new one or use `duplicate_sms_campaign`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (email campaigns use `update_campaign`). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The edited campaign would be invalid. Each entry in `violations[].propertyPath` names the field to fix, for example a missing message or an SMS sender that is not active.\n\n`invalid_contact_filter`: The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`.\n\n`unknown_filter_field`: A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`.\n\n`invalid_filter_operator`: The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`.\n\n`invalid_filter_value`: A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`.\n\n`invalid_filter_reference`: A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`.\n\n`filter_too_complex`: The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it.\n\n`filter_strategy_unavailable`: One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support.\n\n`campaign_field_not_allowed`: A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition.\n\n`campaign_filter_empty`: `send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`.\n\n`segment_reference_not_found`: `contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`.\n\n`segment_reference_deleted`: `contact_segment` was deleted. Choose another one with `list_contact_segments`.\n\n`segment_reference_denied`: `contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an SMS campaign",
        "description": "Changes an SMS campaign that has not started sending: title, message, SMS sender, recipients or tracking. Nothing is sent. Send the complete campaign (`title`, `audience`, `send_to` and `sms_config`), not only the fields that change. If `send_to` stays `send_to_segment` or `send_to_custom_segment` and you send none of `contact_segment`, `filter` or `list_segment`, the current contact segment or filter is kept; choosing other recipients removes it.\n\n**When to use:** To correct or complete an SMS campaign before it goes out, for example to fix the message or change the recipients.\n\n**When not to use:** To change when it goes out, use `schedule_sms_campaign`. To start a new campaign from this one, use `duplicate_sms_campaign`. For an email campaign, use `update_campaign`.\n\n**Side effects:** Nothing is sent to anyone. A scheduled campaign stays scheduled, with the new message.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability. Choosing `contact_segment` or `filter` also requires the `contacts.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "requestBody": {
          "description": "The updated SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSmsInput.jsonld-campaign.write.sms"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSmsInput-campaign.write.sms"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit SMS",
            "modify text message",
            "change message",
            "change SMS sender"
          ],
          "es": [
            "editar SMS",
            "modificar mensaje",
            "cambiar texto",
            "cambiar remitente de SMS"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The campaign cannot be edited because it is already sending, sent, paused or in error. Create a new one or use `duplicate_sms_campaign`."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "There is no SMS campaign with this UUID in your account (email campaigns use `update_campaign`). Check it with `list_sms_campaigns`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "The edited campaign would be invalid. Each entry in `violations[].propertyPath` names the field to fix, for example a missing message or an SMS sender that is not active."
          },
          {
            "status": 422,
            "code": "invalid_contact_filter",
            "meaning": "The `filter` does not have the documented shape: no `match` or `conditions`, a group inside a group, more than 10 groups or 50 conditions, a condition without `field` or `operator`, or `audience` missing on a field that requires it (or sent on one that does not). `violations[].propertyPath` points to the part to fix, e.g. `filter.conditions[2].audience`."
          },
          {
            "status": 422,
            "code": "unknown_filter_field",
            "meaning": "A `field` is not in the catalog of this user (it does not exist, was archived, or the user cannot filter on it). Look it up again with `list_contact_filter_fields`."
          },
          {
            "status": 422,
            "code": "invalid_filter_operator",
            "meaning": "The `operator` is not one of that field's `operators`. Use one listed by `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_value",
            "meaning": "A `value` does not fit its operator: wrong `value_shape`, a value outside `constraints` (length, number range, date `YYYY-MM-DD`, `lower` above `upper`) or an option that is not in the field. Read the field again with `get_contact_filter_field`."
          },
          {
            "status": 422,
            "code": "invalid_filter_reference",
            "meaning": "A referenced record (audience, group, tag, campaign, attribute option, user) does not exist in this account or cannot be used here. Look its UUID up again in the field's `options` or with `list_contact_filter_field_suggestions`."
          },
          {
            "status": 422,
            "code": "filter_too_complex",
            "meaning": "The filter is larger than the engine evaluates. With `match: any` at the top level, the loose conditions plus the `all` groups plus every condition of the `any` groups can be at most 20; an `any` group holds at most 20 conditions; a campaign-activity condition names at most the allowed campaigns. Split it or simplify it."
          },
          {
            "status": 422,
            "code": "filter_strategy_unavailable",
            "meaning": "One condition cannot be evaluated by the engine right now (for example an attribute whose storage is not ready). Nothing was saved; remove that condition and retry later. If it persists, contact support."
          },
          {
            "status": 422,
            "code": "campaign_field_not_allowed",
            "meaning": "A `field` exists but cannot select campaign recipients (its `usable_in` does not include `campaign`, e.g. company fields). Remove that condition."
          },
          {
            "status": 422,
            "code": "campaign_filter_empty",
            "meaning": "`send_to_custom_segment` was sent without conditions in `filter`. Add at least one, or use `send_to_segment` with `contact_segment`."
          },
          {
            "status": 422,
            "code": "segment_reference_not_found",
            "meaning": "`contact_segment` does not exist in this account. Find its UUID with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_deleted",
            "meaning": "`contact_segment` was deleted. Choose another one with `list_contact_segments`."
          },
          {
            "status": 422,
            "code": "segment_reference_denied",
            "meaning": "`contact_segment` uses fields this user cannot evaluate. Use credentials of a user who can, or another segment."
          }
        ]
      },
      "delete": {
        "operationId": "delete_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "204": {
            "description": "SmsCampaign resource deleted"
          },
          "400": {
            "description": "It is an automation campaign, which cannot be deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (it may already be deleted). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an SMS campaign",
        "description": "Permanently deletes an SMS campaign together with its statistics. It cannot be undone. A scheduled campaign is cancelled and will not go out; messages already delivered are not recalled.\n\n**When to use:** To remove a draft you no longer need, to stop a scheduled SMS (there is no operation to unschedule an SMS campaign), or to clear an old campaign and its results.\n\n**When not to use:** To keep a copy of the campaign, use `duplicate_sms_campaign` first. For an email campaign, use `delete_campaign`. Automation campaigns cannot be deleted.\n\n**Side effects:** Deletes the campaign and its statistics, whatever its status. Contacts are not affected.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove SMS",
            "erase text campaign",
            "discard draft"
          ],
          "es": [
            "eliminar SMS",
            "borrar campaña de SMS",
            "quitar borrador"
          ]
        }
      }
    },
    "/sms_campaigns/{uuid}/actions/duplicate": {
      "post": {
        "operationId": "duplicate_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "201": {
            "description": "SmsCampaign resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign.jsonld-campaign.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsCampaign-campaign.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (email campaigns use `duplicate_campaign`). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`title` is missing or longer than 255 characters. Send a name for the copy.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Duplicate an SMS campaign",
        "description": "Creates a new draft that copies an existing SMS campaign, whatever its status: message, SMS sender, recipients selection and options. Statistics and any schedule are not copied.\n\n**When to use:** To repeat or adapt an SMS campaign you already sent, or to retry one that ended in error.\n\n**When not to use:** To start from scratch, use `create_sms_campaign`. For an email campaign, use `duplicate_campaign`.\n\n**Side effects:** Nothing is sent to anyone.\n\n**Permissions:** Requires the author role or higher, or the `marketing.campaigns.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "requestBody": {
          "description": "The new SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignDuplicateInput.jsonld-campaign.write_duplicate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignDuplicateInput-campaign.write_duplicate"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "copy SMS",
            "clone text campaign",
            "repeat SMS",
            "reuse SMS"
          ],
          "es": [
            "copiar SMS",
            "clonar campaña de SMS",
            "repetir SMS",
            "reutilizar SMS"
          ]
        }
      }
    },
    "/sms_campaigns/{uuid}/actions/schedule": {
      "put": {
        "operationId": "schedule_sms_campaign",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "204": {
            "description": "SmsCampaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign cannot be scheduled because its status is not draft, ready or scheduled, or its recipients cannot be evaluated (the message gives the reason).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (email campaigns use `campaign_schedule`). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`schedule_mailing_date` is missing or less than one hour from now, or the confirmation email settings are invalid. Send a later date.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Schedule an SMS campaign",
        "description": "SCHEDULES THE CAMPAIGN FOR REAL: sets the date and time at which the text message will be sent to all its recipients, with no further action. Nothing goes out now; at that time the same real send as `send_sms_campaign_now` happens, to real people, and it cannot be recalled. Before sending, check with `get_sms_campaign` that the campaign has recipients (`recipient_count` above 0), no entry in `warnings` has `blocks_sending: true` (for example not enough SMS credits), and its status is draft, ready or scheduled. The API does not check recipients, credits or account status when scheduling: they are checked when the scheduled time arrives, and if the check fails the campaign moves to `campaign.status.error` and nothing is sent.\n\n**When to use:** Only when the person has confirmed the SMS campaign and the date at which it must go out to all its recipients.\n\n**When not to use:** To send right away, use `send_sms_campaign_now`. To check the message first, use `send_sms_campaign_test`. For an email campaign, use `campaign_schedule`.\n\n**Side effects:** The status becomes `campaign.status.scheduled` and the send is queued for the date. At that time real SMS go out and SMS credits are used. Until then the campaign can be edited with `update_sms_campaign`. Scheduling an already scheduled campaign replaces its date. There is no operation to cancel a scheduled SMS campaign: to stop it, delete it with `delete_sms_campaign`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.send` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "requestBody": {
          "description": "The updated SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendInput.jsonld-campaign.write_schedule"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendInput-campaign.write_schedule"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "schedule text messages",
            "send SMS later",
            "timed SMS",
            "delayed send",
            "SMS at a date"
          ],
          "es": [
            "programar SMS",
            "enviar SMS más tarde",
            "SMS programado",
            "fecha de envío",
            "programar mensajes"
          ]
        }
      }
    },
    "/sms_campaigns/{uuid}/actions/send_now": {
      "put": {
        "operationId": "send_sms_campaign_now",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "204": {
            "description": "SmsCampaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The campaign could not be sent: its status is not draft, ready or scheduled, or a check at send time failed (the message starts with `Campaign can not be sent:` and gives the reason). After a failed check the campaign is in error: fix the cause and send a copy from `duplicate_sms_campaign`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (email campaigns use `campaign_send_now`). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`campaign_confirmation_email` is true but `mailing_confirm_emails` is empty, or one of the addresses is not valid.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Send an SMS campaign now",
        "description": "SENDS THE CAMPAIGN FOR REAL: starts delivering the text message right away to every recipient of the campaign, meaning the contacts with a confirmed SMS subscription and a phone number. These are real SMS to real people; once it starts it cannot be undone or recalled. Before sending, check with `get_sms_campaign` that the campaign has recipients (`recipient_count` above 0), no entry in `warnings` has `blocks_sending: true` (for example not enough SMS credits), and its status is draft, ready or scheduled. The checks run at the moment of sending, not before: if one fails the request is rejected.\n\n**When to use:** Only when the person has confirmed that this SMS campaign must go out now to all its recipients.\n\n**When not to use:** To send at a later time, use `schedule_sms_campaign`. To see the message on a phone, use `send_sms_campaign_test`: it sends only to the numbers you list. For an email campaign, use `campaign_send_now`.\n\n**Side effects:** Real delivery: the status becomes `campaign.status.sending` and then `campaign.status.sent`, and SMS credits of the plan are used as the messages go out. A scheduled campaign can also be sent now; its schedule is cancelled. If a check at send time fails (no recipients, account not allowed to send, not enough credits, daily limit reached, expired subscription, blocked audience), the request returns 400 and the campaign is left in `campaign.status.error`: it can no longer be edited or sent, so retry with a copy from `duplicate_sms_campaign`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.send` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "requestBody": {
          "description": "The updated SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendInput.jsonld-campaign.write_send"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendInput-campaign.write_send"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "send text messages",
            "launch SMS",
            "SMS blast",
            "send immediately",
            "dispatch SMS"
          ],
          "es": [
            "enviar SMS",
            "lanzar SMS",
            "envío de SMS",
            "enviar ahora",
            "mandar mensajes de texto"
          ]
        }
      }
    },
    "/sms_campaigns/{uuid}/actions/send_test": {
      "put": {
        "operationId": "send_sms_campaign_test",
        "tags": [
          "SMS campaigns"
        ],
        "responses": {
          "204": {
            "description": "SmsCampaign resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The test was not sent because the campaign is not in draft status.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "There is no SMS campaign with this UUID in your account (email campaigns use `campaign_send_test`). Check it with `list_sms_campaigns`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`phones` is empty, has more than 5 numbers or contains a number that is not in E.164 format.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "The campaign's audience has no contact with an SMS subscription to build the preview from, and the API answers 500 instead of a validation error. Add at least one member subscribed to SMS and send the test again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Send a test SMS of a campaign",
        "description": "SENDS REAL TEST SMS of a draft campaign to up to 5 phone numbers that you choose, so you can read it on a phone. It reaches only those numbers, never the campaign recipients, and the campaign stays a draft. The message is the one saved in the campaign, with its personalization tags filled with the data of one of the campaign recipients, so the campaign needs at least one.\n\n**When to use:** Before sending or scheduling an SMS campaign, to check the message and the sender on a real phone.\n\n**When not to use:** To send to the actual recipients, use `send_sms_campaign_now` or `schedule_sms_campaign`. For an email campaign, use `campaign_send_test`.\n\n**Side effects:** Sends real SMS to the numbers in `phones`. It is not a campaign send: the status and statistics of the campaign do not change. The response does not say whether each number was reached.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the SMS campaign (the `uuid` field returned by `list_sms_campaigns`).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42"
          }
        ],
        "requestBody": {
          "description": "The updated SmsCampaign resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendSmsTestInput.jsonld-campaign.write_send_sms_test"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsCampaign.CampaignSendSmsTestInput-campaign.write_send_sms_test"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "preview SMS",
            "test text message",
            "proof SMS",
            "send sample SMS"
          ],
          "es": [
            "SMS de prueba",
            "probar mensaje",
            "vista previa del SMS",
            "enviar una muestra"
          ]
        }
      }
    },
    "/sms_senders": {
      "get": {
        "operationId": "list_sms_senders",
        "tags": [
          "SMS senders"
        ],
        "responses": {
          "200": {
            "description": "SmsSender collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SmsSender.jsonld-sms_sender.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SmsSender-sms_sender.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List SMS senders",
        "description": "Returns the SMS senders of the account with their validation status. The IRI of one is what an SMS campaign uses as its `sms_config.sms_sender`.\n\n**When to use:** To see which sender names can be used in SMS campaigns, or whether a new one is still being validated.\n\n**When not to use:** For the sender addresses of email campaigns use `list_senders`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sms sender id",
            "alphanumeric sender",
            "sender name",
            "text message sender"
          ],
          "es": [
            "remitentes sms",
            "nombre de remitente sms",
            "identificador alfanumérico",
            "remitente de mensajes de texto"
          ]
        }
      },
      "post": {
        "operationId": "create_sms_sender",
        "tags": [
          "SMS senders"
        ],
        "responses": {
          "201": {
            "description": "SmsSender resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsSender.jsonld-sms_sender.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsSender-sms_sender.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The name or sender ID is invalid, or the sender ID is already registered. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an SMS sender",
        "description": "Registers an alphanumeric sender name for SMS and starts its review. The sender begins as `pending_validation` and is not usable yet: it can be used in SMS campaigns only when its status is `active`, which depends on Easymailing finishing its registration with the SMS provider and may take time.\n\n**When to use:** Before the first SMS campaign, or when messages must show a different name.\n\n**When not to use:** For email senders use `create_sender`.\n\n**Side effects:** An automatic review of the name is queued. Clear cases move to `pending_profile` and an internal task is opened for Easymailing support to register the sender with the SMS provider; doubtful names stay in `pending_validation` and raise an internal alert; clearly abusive names become `rejected`. Activation is therefore not immediate: check `status` later with `get_sms_sender` and do not promise a date.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new SmsSender resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SmsSender.jsonld-sms_sender.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsSender-sms_sender.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new sms sender",
            "register sender id",
            "alphanumeric id",
            "sms from name"
          ],
          "es": [
            "crear remitente sms",
            "nuevo remitente sms",
            "registrar remitente",
            "nombre que ve el destinatario"
          ]
        }
      }
    },
    "/sms_senders/{id}": {
      "get": {
        "operationId": "get_sms_sender",
        "tags": [
          "SMS senders"
        ],
        "responses": {
          "200": {
            "description": "SmsSender resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsSender.jsonld-sms_sender.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsSender-sms_sender.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The SMS sender does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get an SMS sender",
        "description": "Returns one SMS sender with its validation status.\n\n**When to use:** To check if a sender is already active, after creating it.\n\n**When not to use:** To find senders use `list_sms_senders`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Numeric identifier of the SMS sender. Get it with `list_sms_senders`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "12"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sms sender status",
            "validation status",
            "sender id details"
          ],
          "es": [
            "ver remitente sms",
            "estado del remitente sms",
            "validación del remitente"
          ]
        }
      },
      "delete": {
        "operationId": "delete_sms_sender",
        "tags": [
          "SMS senders"
        ],
        "responses": {
          "204": {
            "description": "SMS sender resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The SMS sender does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The sender is used by one or more audiences. Stop using it in those audiences and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete an SMS sender",
        "description": "Removes an SMS sender from the account. SMS campaigns that used it lose that sender.\n\n**When to use:** When a sender name is no longer used.\n\n**Side effects:** SMS campaigns that had this sender keep existing but are left without it: choose another one before sending a draft or scheduled campaign. A sender used as the SMS sender of an audience cannot be deleted (409).\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Numeric identifier of the SMS sender. Get it with `list_sms_senders`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "12"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove sms sender",
            "erase sender id",
            "discard sender"
          ],
          "es": [
            "eliminar remitente sms",
            "borrar remitente sms",
            "quitar remitente"
          ]
        }
      }
    },
    "/sender_domains": {
      "get": {
        "operationId": "list_sender_domains",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "200": {
            "description": "SenderDomain collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SenderDomain.jsonld-sender_domain.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SenderDomain-sender_domain.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List sending domains",
        "description": "Returns the sending domains of the account. A domain goes through three states: `verified` false (the ownership email is pending); `verified` true and `authenticated` false (the DNS records are not set yet); `authenticated` true (ready to send).\n\n**When to use:** To see which domains are set up for sending and how far each one is in the process.\n\n**When not to use:** For individual sender addresses use `list_senders`.\n\n**Filters:**\nSorting: Use `order[field]=asc|desc` with these fields\n- `createdAt` - When domain was created (default: DESC)\n- `updatedAt` - When domain was last modified\n- `domain` - Domain name alphabetically\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "dkim",
            "spf",
            "dmarc",
            "domain authentication",
            "dns records",
            "custom domain"
          ],
          "es": [
            "dominios de envío",
            "autenticar dominio",
            "registros dns",
            "dominio propio",
            "dominios remitentes"
          ]
        }
      },
      "post": {
        "operationId": "create_sender_domain",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "201": {
            "description": "SenderDomain resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain.jsonld-sender_domain.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain-sender_domain.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "`links_aligned` is true but `tracking_subdomain` is missing. Send the subdomain prefix and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions), or a custom tracking domain (`links_aligned`) was requested on a plan that does not include it.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The email is not valid or from a free provider, or the domain is already registered. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a sending domain",
        "description": "Registers a domain to send from. You give an email address of that domain: Easymailing sends it a confirmation email to prove ownership (or confirms at once if that address is already a confirmed sender). The response lists the DNS records to create at your DNS provider.\n\n**When to use:** To start authenticating your own domain. Then confirm the email, create the DNS records and call `authenticate_sender_domain`. Free email providers (such as gmail.com) are not accepted.\n\n**When not to use:** To add a single sender address without authenticating a domain use `create_sender`.\n\n**Side effects:** A confirmation email is sent to `email`, unless a confirmed sender with that address already exists, in which case the domain is verified immediately.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new SenderDomain resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SenderDomain.jsonld-sender_domain.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SenderDomain-sender_domain.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "add domain",
            "authenticate domain",
            "custom tracking domain",
            "white label sending"
          ],
          "es": [
            "crear dominio de envío",
            "añadir dominio",
            "verificar dominio",
            "dominio de seguimiento personalizado"
          ]
        }
      }
    },
    "/sender_domains/{uuid}": {
      "get": {
        "operationId": "get_sender_domain",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "200": {
            "description": "SenderDomain resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain.jsonld-sender_domain.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain-sender_domain.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sending domain does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a sending domain",
        "description": "Returns one sending domain with its state (`verified`, `authenticated`, `aligned`), the public page with the DNS instructions (`authentication_info_url`) and, while it is not authenticated, the DNS records to create: DKIM and mail server (CNAME), DMARC (TXT) and, with `links_aligned`, tracking (CNAME).\n\n**When to use:** To read the DNS records you must create, or to check how far a domain is in the process.\n\n**When not to use:** To list all domains use `list_sender_domains`; to check the DNS records now use `authenticate_sender_domain`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.campaigns.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sending domain. Get it with `list_sender_domains`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7e4b2c90-1d58-4a3f-9b6e-c2f8a0d5e713"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "dns instructions",
            "domain status",
            "dkim records",
            "verification status"
          ],
          "es": [
            "ver dominio de envío",
            "registros dns necesarios",
            "estado del dominio",
            "instrucciones dns"
          ]
        }
      },
      "delete": {
        "operationId": "delete_sender_domain",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "204": {
            "description": "Sender domain deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sending domain does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a sending domain",
        "description": "Permanently deletes a sending domain with its DNS configuration and, if it had one, the SSL certificate of its tracking domain. Campaigns that send from addresses of this domain stop being signed with it.\n\n**When to use:** When the domain is no longer used for sending.\n\n**Side effects:** The SSL certificate of the tracking domain, if any, is removed in the background. The sender addresses of the domain are not deleted; their emails stop using the domain's own DKIM signature and tracking links.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sending domain. Get it with `list_sender_domains`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7e4b2c90-1d58-4a3f-9b6e-c2f8a0d5e713"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove domain",
            "unlink domain",
            "erase dns setup"
          ],
          "es": [
            "eliminar dominio de envío",
            "borrar dominio",
            "quitar dominio"
          ]
        }
      }
    },
    "/sender_domains/{uuid}/actions/authenticate": {
      "put": {
        "operationId": "authenticate_sender_domain",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "200": {
            "description": "SenderDomain resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain.SenderDomainAuthenticateOutput.jsonld-sender_domain.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDomain.SenderDomainAuthenticateOutput-sender_domain.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The domain is not verified yet. Follow the link in the confirmation email, or resend it with `resend_sender_domain_verification`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sending domain does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Check the DNS of a sending domain",
        "description": "Looks up the DNS records of a verified domain (DKIM, mail server, DMARC and, with `links_aligned`, tracking) and marks the domain as authenticated when they are all right. The response says which checks passed (`checks`) and the values found (`results`). If any check fails, the domain is marked as NOT authenticated, even if it was authenticated before.\n\n**When to use:** After creating the DNS records at your DNS provider, to verify them. Call it again if a check fails and you have corrected the records; DNS changes can take time to propagate.\n\n**When not to use:** If the domain is not verified yet, confirm the email first (`resend_sender_domain_verification`).\n\n**Side effects:** Changes the state of the domain on every call. When all checks pass: the domain becomes authenticated and aligned, campaigns from its addresses are signed with the domain's own DKIM and, if `links_aligned` is set and the tracking records are right, the SSL certificate of the tracking domain is requested in the background. When a check fails: the domain stops being authenticated, so campaigns lose the domain's own DKIM signature and, in accounts that must authenticate to send large volumes, campaigns of 1000 recipients or more are flagged as not sendable. Senders created later on an authenticated domain are confirmed on creation; existing ones are not changed.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sending domain. Get it with `list_sender_domains`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7e4b2c90-1d58-4a3f-9b6e-c2f8a0d5e713"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "verify dns",
            "check records",
            "dkim check",
            "dmarc check",
            "validate domain"
          ],
          "es": [
            "comprobar dns",
            "autenticar dominio",
            "verificar registros",
            "validar dominio"
          ]
        }
      }
    },
    "/sender_domains/{uuid}/actions/resend_verification": {
      "post": {
        "operationId": "resend_sender_domain_verification",
        "tags": [
          "Sending domains"
        ],
        "responses": {
          "204": {
            "description": "SenderDomain resource created",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The domain is already verified. Nothing to resend.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The sending domain does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Resend the domain confirmation email",
        "description": "Sends again the ownership confirmation email of a domain that is not verified yet.\n\n**When to use:** When the email was not received or its link has expired.\n\n**When not to use:** If the domain is already verified, move on to `authenticate_sender_domain`.\n\n**Side effects:** A confirmation email is sent to the address given when the domain was created.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the sending domain. Get it with `list_sender_domains`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7e4b2c90-1d58-4a3f-9b6e-c2f8a0d5e713"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          },
          "required": false
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "send verification again",
            "re-verify domain",
            "ownership email"
          ],
          "es": [
            "reenviar verificación del dominio",
            "reenviar correo de confirmación",
            "correo de propiedad"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/customers": {
      "get": {
        "operationId": "list_store_customers",
        "tags": [
          "Store customers"
        ],
        "responses": {
          "200": {
            "description": "Customer collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Customer.jsonld-customer.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Customer-customer.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List store customers",
        "description": "Returns the customers of one store, most recently updated first. Each is linked to a member of the store's audience.\n\n**When to use:** To find a customer by email, name, company or phone, or to check who is already synchronized from a shop.\n\n**When not to use:** To read one customer with their member use `get_store_customer`; to search audience members by any attribute use `search_member`.\n\n**Filters:** `email`, `company`, `firstname`, `lastname`: partial match. `phone`: exact match, in E.164 format. Sort with `order[created_at]`, `order[updated_at]`, `order[email]`, `order[firstname]`, `order[lastname]` or `order[company]` (`asc`/`desc`).\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the customer belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "email",
            "in": "query",
            "description": "Return only customers whose email contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana@"
          },
          {
            "name": "company",
            "in": "query",
            "description": "Return only customers whose company contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Acme"
          },
          {
            "name": "firstname",
            "in": "query",
            "description": "Return only customers whose first name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Ana"
          },
          {
            "name": "lastname",
            "in": "query",
            "description": "Return only customers whose last name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "García"
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Return only the customer with this exact phone number, in E.164 format.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "+34612345678"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "buyers",
            "shoppers",
            "clients of the shop",
            "purchasers"
          ],
          "es": [
            "clientes de la tienda",
            "compradores",
            "listado de clientes",
            "clientes del ecommerce"
          ]
        }
      },
      "post": {
        "operationId": "create_store_customer",
        "tags": [
          "Store customers"
        ],
        "responses": {
          "201": {
            "description": "Customer resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.jsonld-customer.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer-customer.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is invalid, the `resource_id` or the email is already used in the store, or the email or phone belongs to another contact. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a store customer",
        "description": "Registers a buyer in a store and subscribes them to the store's audience, creating the audience member if it does not exist. If the store has a group, the member is added to it.\n\n**When to use:** When a shop sends a new buyer, before creating their orders. The customer is needed to create a cart or an order.\n\n**When not to use:** To update an existing customer use `update_store_customer`. To add a person to an audience without a store, use `create_audience_member`.\n\n**Side effects:** The person is subscribed like in `create_audience_member`, according to the audience settings: in a double opt-in audience they get a confirmation email and stay unconfirmed until they confirm; in a single opt-in audience they are confirmed at once, the `member_subscribed` webhook fires, the subscription automations start and the welcome email is sent if the audience has one. Someone who unsubscribed on their own gets a confirmation email instead, but a member unsubscribed with status `suscriber.status.unsuscribed.admin` is confirmed again at once in a single opt-in audience. The store's group is added to the member. The query flags `disable_double_opt_in`, `disable_welcome_email` and `disable_sms_double_opt_in` (all `true`/`false`) turn the confirmation and welcome messages off. When the plan has no room for more subscribers, the customer is still created but nobody is subscribed: the response has no `member` (or keeps the member the person already had, untouched), and `update_store_customer` subscribes them once the plan has room.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the customer belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "disable_double_opt_in",
            "in": "query",
            "description": "If `true`, a customer who is not yet subscribed is subscribed at once, without the double opt-in confirmation email the audience would send.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          },
          {
            "name": "disable_welcome_email",
            "in": "query",
            "description": "If `true`, the welcome email of the audience is not sent.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          },
          {
            "name": "disable_sms_double_opt_in",
            "in": "query",
            "description": "If `true`, a customer with a phone number is subscribed to SMS without the confirmation SMS.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          }
        ],
        "requestBody": {
          "description": "The new Customer resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Customer.jsonld-customer.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Customer-customer.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new buyer",
            "sync customer",
            "register shopper",
            "add client"
          ],
          "es": [
            "crear cliente",
            "nuevo cliente de tienda",
            "sincronizar cliente",
            "registrar comprador"
          ]
        }
      }
    },
    "/stores/{storeResourceId}/customers/{resourceId}": {
      "get": {
        "operationId": "get_store_customer",
        "tags": [
          "Store customers"
        ],
        "responses": {
          "200": {
            "description": "Customer resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.jsonld-customer.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer-customer.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The customer does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a store customer",
        "description": "Returns one customer with their data and the linked audience member.\n\n**When to use:** To check a customer you already know, including the state of their subscription.\n\n**When not to use:** To find customers use `list_store_customers`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the customer belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the customer: the one you chose when you created it with `create_store_customer`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "customer-1042"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "buyer details",
            "shopper details",
            "customer and member"
          ],
          "es": [
            "ver cliente",
            "detalle del cliente",
            "datos del comprador"
          ]
        }
      },
      "put": {
        "operationId": "update_store_customer",
        "tags": [
          "Store customers"
        ],
        "responses": {
          "200": {
            "description": "Customer resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer.jsonld-customer.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer-customer.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or customer does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is invalid, the email is already used by another customer of the store, or the email or phone belongs to another contact. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a store customer",
        "description": "Changes the data of a customer and re-processes their audience member with the same rules as `create_store_customer`. If you send a different `email`, it does not rename the existing member: the new email is subscribed as a member (a new one if nobody has it) and the customer is linked to it; the previous member is left as it was.\n\n**When to use:** When the buyer changes their details in the shop and the change must reach the audience.\n\n**When not to use:** To register a new buyer use `create_store_customer`.\n\n**Side effects:** The member is processed again like on creation: depending on the audience and on its current status it can receive the confirmation or welcome email (a person who unsubscribed on their own gets a confirmation email, at most once every 15 minutes, every time the shop syncs them; a member with status `suscriber.status.unsuscribed.admin` is confirmed again at once in a single opt-in audience). A new email creates a new member with its own subscription. The store's group is added to the member and the group webhook and automations fire for it. The query flags `disable_double_opt_in`, `disable_welcome_email` and `disable_sms_double_opt_in` (all `true`/`false`) turn the confirmation and welcome messages off. When the plan has no room for more subscribers and the person is not an active subscriber yet, the customer data is saved but nobody is subscribed and the customer keeps the member it already had, if any; the next update with room in the plan subscribes them.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the customer belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the customer: the one you chose when you created it with `create_store_customer`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "customer-1042"
          }
        ],
        "requestBody": {
          "description": "The updated Customer resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Customer.jsonld-customer.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Customer-customer.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit buyer",
            "change shopper details",
            "modify client"
          ],
          "es": [
            "editar cliente",
            "modificar cliente",
            "actualizar datos del comprador"
          ]
        }
      },
      "delete": {
        "operationId": "delete_store_customer",
        "tags": [
          "Store customers"
        ],
        "responses": {
          "204": {
            "description": "Customer resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store or customer does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a store customer",
        "description": "Removes the customer record from the store. The audience member is kept, and is unsubscribed only if you ask for it with `unsubscribe`. Their orders stay in the store without a customer.\n\n**When to use:** When the buyer is deleted in the shop. Use `unsubscribe=true` if they must also stop receiving emails.\n\n**When not to use:** To unsubscribe a member without deleting the customer use `member_unsubscribe`.\n\n**Side effects:** With `unsubscribe=true`, a member whose email is confirmed is unsubscribed: the confirmed email and SMS channels become `suscriber.status.unsuscribed.admin`, the unsubscription is recorded in the activity, the member's automations are cancelled and the unsubscription webhooks fire. A member whose email is not confirmed is not touched (an SMS-only member stays subscribed). The orders of the customer are kept but are no longer linked to anyone.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "storeResourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store the customer belongs to.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          },
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the customer: the one you chose when you created it with `create_store_customer`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "customer-1042"
          },
          {
            "name": "unsubscribe",
            "in": "query",
            "description": "If `true`, the audience member is also unsubscribed (only if it is currently subscribed).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove buyer",
            "erase shopper",
            "delete client"
          ],
          "es": [
            "eliminar cliente",
            "borrar cliente",
            "quitar comprador"
          ]
        }
      }
    },
    "/stores": {
      "get": {
        "operationId": "list_stores",
        "tags": [
          "Stores"
        ],
        "responses": {
          "200": {
            "description": "Store collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Store.jsonld-store.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Store-store.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List connected stores",
        "description": "Returns the online stores connected to the account, each linked to an audience and, optionally, a group.\n\n**When to use:** To see which shops are already connected before creating one, or to find the `resource_id` of a store you need for its customers, products or orders.\n\n**When not to use:** To read a single store use `get_store`.\n\n**Filters:** `audience`: UUID of an audience; returns only the stores connected to it.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "audience",
            "in": "query",
            "description": "Return only the stores connected to this audience UUID.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "shops",
            "ecommerce stores",
            "woocommerce",
            "shopify",
            "connected shops"
          ],
          "es": [
            "tiendas",
            "tiendas online",
            "tienda conectada",
            "comercio electrónico"
          ]
        }
      },
      "post": {
        "operationId": "create_store",
        "tags": [
          "Stores"
        ],
        "responses": {
          "201": {
            "description": "Store resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Store.jsonld-store.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store-store.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing or invalid (for example the audience or `resource_id`). Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a store",
        "description": "Connects an online store to an audience. From then on its customers, products and orders can be sent to Easymailing to track revenue and trigger automations.\n\n**When to use:** When a shop is set up for the first time, before sending its customers, products or orders. Customers of the store are subscribed to the audience.\n\n**When not to use:** To change a store that already exists use `update_store`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Store resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Store.jsonld-store.create"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Store-store.create"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "connect shop",
            "link store",
            "add ecommerce",
            "integrate shop"
          ],
          "es": [
            "crear tienda",
            "conectar tienda",
            "añadir tienda online",
            "integrar tienda"
          ]
        }
      }
    },
    "/stores/{resourceId}": {
      "get": {
        "operationId": "get_store",
        "tags": [
          "Stores"
        ],
        "responses": {
          "200": {
            "description": "Store resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Store.jsonld-store.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store-store.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a store",
        "description": "Returns one store with its audience and group.\n\n**When to use:** To check how a store is connected, for example which audience and group its customers go to.\n\n**When not to use:** To find stores use `list_stores`.\n\n**Permissions:** Requires the viewer role or higher, or the `marketing.audiences.read` capability.",
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store: the one you chose when you created it with `create_store`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "shop details",
            "store settings",
            "connected audience"
          ],
          "es": [
            "ver tienda",
            "detalle de la tienda",
            "datos de la tienda"
          ]
        }
      },
      "put": {
        "operationId": "update_store",
        "tags": [
          "Stores"
        ],
        "responses": {
          "200": {
            "description": "Store resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Store.jsonld-store.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Store-store.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a store",
        "description": "Changes the name, address, platform, language, time zone or group of a store. Its identifier and audience cannot be changed.\n\n**When to use:** When the shop moves to another domain or you want its customers added to a different group.\n\n**When not to use:** To connect a different audience, create a new store with `create_store`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.write` capability.",
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store: the one you chose when you created it with `create_store`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "requestBody": {
          "description": "The updated Store resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Store.jsonld-store.update"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Store-store.update"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit shop",
            "change store settings",
            "rename store",
            "move domain"
          ],
          "es": [
            "editar tienda",
            "modificar tienda",
            "cambiar datos de la tienda",
            "cambiar dominio"
          ]
        }
      },
      "delete": {
        "operationId": "delete_store",
        "tags": [
          "Stores"
        ],
        "responses": {
          "204": {
            "description": "Store resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The store does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a store",
        "description": "Permanently deletes a store together with its customers, products, variants, categories and orders. The audience members created for its customers are kept.\n\n**When to use:** When the shop is disconnected for good. The revenue statistics of the audience are recalculated.\n\n**When not to use:** To keep the data and only change the store use `update_store`.\n\n**Side effects:** Revenue statistics of the audience are recalculated in the background.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.audiences.delete` capability.",
        "parameters": [
          {
            "name": "resourceId",
            "in": "path",
            "description": "Identifier (`resource_id`) of the store: the one you chose when you created it with `create_store`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "acme-shop"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "disconnect shop",
            "remove store",
            "unlink ecommerce"
          ],
          "es": [
            "eliminar tienda",
            "desconectar tienda",
            "borrar tienda"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms": {
      "get": {
        "operationId": "list_audience_forms",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List subscription forms",
        "description": "Returns the subscription forms of one audience, most recently updated first, with their type (embedded or popup), publication state and, for classic forms, conversion statistics. It lists classic forms and forms created in the Customer App.\n\n**When to use:** To find which sign-up forms an audience has, or which are published, paused or still drafts, before changing one or getting its embed code.\n\n**When not to use:** To read a single form use `get_audience_form`; to get the code that embeds a published form on a website use `get_form_publishing_info`. To list the forms of all audiences at once, use `list_subscription_forms`. Forms created in the Customer App (`generation: current`) are managed with the `subscription_form` operations. Their `stats` is `null` here: read `get_subscription_form_statistics`.\n\n**Filters:** `title`: partial match on the form title. `type`: exact type, `embedded` or `popup`. `active`: `true` for published forms, `false` for the rest. `audience`: UUID of an audience (already fixed by the path). Sort with `order[created_at]`, `order[updated_at]` or `order[title]` (`asc`/`desc`).\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only forms whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "newsletter"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only forms of this type.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "popup"
          },
          {
            "name": "active",
            "in": "query",
            "description": "`true` returns only published forms, `false` only the unpublished ones.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "true"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "Return only forms of this audience UUID. The path already restricts the list to its audience, so you rarely need it.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "signup form",
            "opt-in form",
            "lead capture",
            "popup",
            "embedded form"
          ],
          "es": [
            "formularios de suscripción",
            "formulario de alta",
            "captación de contactos",
            "popup",
            "formulario incrustado"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/embedded": {
      "post": {
        "operationId": "create_embedded_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "201": {
            "description": "SuscriptionForm resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Title or locale is missing, a channel is not `email` or `sms`, or SMS is enabled without a usable sender. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create an embedded form",
        "description": "Creates a sign-up form that is shown inline inside a web page, in the audience. It is created unpublished and with the default design of its type, if there is one.\n\n**When to use:** To add a form that sits inside a page of the website (for example in the footer or a blog post). It does nothing on the website until you publish it with `publish_form`.\n\n**When not to use:** For a form that opens as a modal over the page use `create_popup_form`. It creates a classic form, which the Customer App can only read until it is converted. For a form that can be edited, published and measured with the `subscription_form` operations, use `create_subscription_form`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new SuscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.CreateEmbeddedFormDto.jsonld-suscription_form.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.CreateEmbeddedFormDto-suscription_form.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "inline form",
            "embed form",
            "newsletter signup",
            "new signup form"
          ],
          "es": [
            "crear formulario",
            "formulario incrustado",
            "formulario de suscripción",
            "alta de newsletter"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/popup": {
      "post": {
        "operationId": "create_popup_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "201": {
            "description": "SuscriptionForm resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Title or locale is missing, a channel is not `email` or `sms`, or SMS is enabled without a usable sender. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a popup form",
        "description": "Creates a sign-up form that opens as a modal over a web page, in the audience, with optional rules for when and where it appears. It is created unpublished and with the default design of its type, if there is one.\n\n**When to use:** To capture sign-ups with a modal that appears after some seconds, on scroll or when the visitor is about to leave. It does nothing on the website until you publish it with `publish_form`.\n\n**When not to use:** For a form that sits inside the page use `create_embedded_form`. It creates a classic form, which the Customer App can only read until it is converted. For a form that can be edited, published and measured with the `subscription_form` operations, use `create_subscription_form`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new SuscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.CreatePopupFormDto.jsonld-suscription_form.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.CreatePopupFormDto-suscription_form.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "modal form",
            "exit intent",
            "lightbox",
            "newsletter popup",
            "new popup"
          ],
          "es": [
            "crear popup",
            "ventana emergente",
            "formulario emergente",
            "popup de suscripción"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}": {
      "get": {
        "operationId": "get_audience_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a subscription form",
        "description": "Returns one subscription form: type, title, whether it is published or paused, double opt-in and channel settings, groups, popup behavior and, for classic forms, conversion statistics. It reads classic forms and forms created in the Customer App.\n\n**When to use:** To check the state or settings of a form you already know, for example before publishing or editing it.\n\n**When not to use:** To find forms use `list_audience_forms`; to get the code that embeds the form on a website use `get_form_publishing_info`. Forms created in the Customer App (`generation: current`) are managed with the `subscription_form` operations. For those, `get_subscription_form` also gives consent, CRM data policy, welcome email and public link, and `stats` is `null` here: read `get_subscription_form_statistics`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "signup form details",
            "opt-in form",
            "popup settings",
            "form status"
          ],
          "es": [
            "ver formulario",
            "datos del formulario",
            "estado del formulario",
            "configuración del popup"
          ]
        }
      },
      "delete": {
        "operationId": "delete_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "204": {
            "description": "SuscriptionForm resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `delete_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a subscription form",
        "description": "Permanently deletes a subscription form together with its statistics and history. People already subscribed through it stay in the audience.\n\n**When to use:** To remove a form that is no longer needed and will not be used again.\n\n**When not to use:** To take the form off the website but keep it, use `unpublish_form` or `pause_form`. For a form created in the Customer App use `delete_subscription_form`.\n\n**Side effects:** Members who signed up through the form stay in the audience; only their link to the form is cleared. No webhook fires.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.delete` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove form",
            "erase form",
            "destroy signup form"
          ],
          "es": [
            "eliminar formulario",
            "borrar formulario",
            "quitar formulario"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/actions/pause": {
      "put": {
        "operationId": "pause_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The form is not published, so it cannot be paused. Publish it first with `publish_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `pause_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Pause a subscription form",
        "description": "Temporarily hides a published form: it is not shown and does not accept sign-ups, but stays published so it can be resumed.\n\n**When to use:** To stop a form for a short time (for example while a promotion is over) and bring it back later with `resume_form`.\n\n**When not to use:** To take it down until you publish it again, use `unpublish_form`. For a form created in the Customer App use `pause_subscription_form`.\n\n**Side effects:** The form stops collecting sign-ups on every website where its code is installed.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "suspend form",
            "hide form",
            "temporarily disable"
          ],
          "es": [
            "pausar formulario",
            "suspender formulario",
            "ocultar formulario"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/actions/publish": {
      "put": {
        "operationId": "publish_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The form cannot be published yet: it has no design, the audience has no default sender and reply-to emails (email channel), or no active SMS sender (SMS channel with double opt-in). The `detail` says which; fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `publish_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Publish a subscription form",
        "description": "Makes the form live: from now on it is shown wherever its code is installed and accepts sign-ups. If it was paused it is also resumed.\n\n**When to use:** When a form is ready and you want it to start collecting sign-ups. After publishing, get the code to install with `get_form_publishing_info`.\n\n**When not to use:** To bring back a paused form you can also use `resume_form`; to take it down use `unpublish_form`. For a form created in the Customer App use `publish_subscription_form`.\n\n**Side effects:** The form starts collecting sign-ups on every website that has its code installed. Each person who submits it becomes a member of the audience and is added to the form's groups. With double opt-in they get a confirmation email and are confirmed only when they confirm; without it they are confirmed at once and the `member_subscribed` webhook, the subscription automations and the form's welcome email (if enabled) run. Someone who unsubscribed on their own always gets a confirmation email instead.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "activate form",
            "go live",
            "enable form",
            "put form online"
          ],
          "es": [
            "publicar formulario",
            "activar formulario",
            "poner formulario en línea"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/actions/resume": {
      "put": {
        "operationId": "resume_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The form is not published, so there is nothing to resume. Publish it with `publish_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `resume_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Resume a paused form",
        "description": "Makes a paused form visible again and accepting sign-ups.\n\n**When to use:** After `pause_form`, when the form should be shown again.\n\n**When not to use:** For a form that is unpublished use `publish_form`. For a form created in the Customer App use `resume_subscription_form`.\n\n**Side effects:** The form starts collecting sign-ups again on every website where its code is installed.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "unpause form",
            "reactivate form",
            "restart form"
          ],
          "es": [
            "reanudar formulario",
            "reactivar formulario",
            "volver a mostrar formulario"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/actions/unpublish": {
      "put": {
        "operationId": "unpublish_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `pause_subscription_form`: there is no unpublish for those forms, pausing takes them offline.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Unpublish a subscription form",
        "description": "Takes the form off: it stops being shown and no longer accepts sign-ups. The form and its settings are kept.\n\n**When to use:** To stop collecting sign-ups through a form without deleting it, for example at the end of a campaign.\n\n**When not to use:** To stop it only for a while and keep it published, use `pause_form`; to remove it for good use `delete_form`. A form created in the Customer App has no unpublish: use `pause_subscription_form` to take it offline.\n\n**Side effects:** The form stops collecting sign-ups on every website where its code is installed.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "deactivate form",
            "take form offline",
            "disable form"
          ],
          "es": [
            "despublicar formulario",
            "desactivar formulario",
            "retirar formulario"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/embedded": {
      "put": {
        "operationId": "update_embedded_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `update_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation (for example an empty channel list or an unknown channel). Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update an embedded form",
        "description": "Changes the settings of an embedded form: title, language, double opt-in, welcome email, channels and groups. The design is not touched.\n\n**When to use:** To rename an embedded form or change how it handles sign-ups. Send every setting you want to keep: omitted booleans, `channels` and `groups` go back to their defaults.\n\n**When not to use:** For a popup form use `update_popup_form`; to publish, pause or unpublish use `publish_form`, `pause_form` or `unpublish_form`. For a form created in the Customer App use `update_subscription_form`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "requestBody": {
          "description": "The updated SuscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.UpdateEmbeddedFormDto.jsonld-suscription_form.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.UpdateEmbeddedFormDto-suscription_form.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit embedded form",
            "change form settings",
            "rename form"
          ],
          "es": [
            "editar formulario",
            "modificar formulario incrustado",
            "cambiar ajustes del formulario"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/popup": {
      "put": {
        "operationId": "update_popup_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm-suscription_form.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The form was created in the Customer App (`generation: current`) and this operation cannot change it. Use `update_subscription_form` and `update_subscription_form_popup_behavior`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation (for example an empty channel list or an unknown channel). Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a popup form",
        "description": "Changes the settings of a popup form: title, language, double opt-in, welcome email, channels, groups and, optionally, when and where the popup appears. The design is not touched.\n\n**When to use:** To rename a popup, change its triggers, schedule, frequency or visibility, or change how it handles sign-ups. Send every setting you want to keep: omitted booleans, `channels` and `groups` go back to their defaults.\n\n**When not to use:** For an embedded form use `update_embedded_form`; to publish, pause or unpublish use `publish_form`, `pause_form` or `unpublish_form`. For a form created in the Customer App use `update_subscription_form` and `update_subscription_form_popup_behavior`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "requestBody": {
          "description": "The updated SuscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.UpdatePopupFormDto.jsonld-suscription_form.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuscriptionForm.UpdatePopupFormDto-suscription_form.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit popup",
            "change popup behavior",
            "popup triggers",
            "popup schedule"
          ],
          "es": [
            "editar popup",
            "modificar ventana emergente",
            "cambiar disparadores del popup",
            "programar popup"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/suscription_forms/{uuid}/publishing_info": {
      "get": {
        "operationId": "get_form_publishing_info",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SuscriptionForm resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.PublishingInfoDto.jsonld-suscription_form.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuscriptionForm.PublishingInfoDto-suscription_form.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a form install code",
        "description": "Returns what is needed to put a published form on a website: the script and HTML snippets, the public URL of the form and links to the WordPress plugin and Shopify app. If the form is not published it returns what is missing instead. It works for classic forms and for forms created in the Customer App.\n\n**When to use:** After publishing a form, to get the snippet to paste into the website or send to the person who maintains it.\n\n**When not to use:** To publish the form first use `publish_form` for a classic form or `publish_subscription_form` for one created in the Customer App; to read its settings use `get_audience_form` or `get_subscription_form`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the form belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the subscription form. Get it with `list_audience_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "embed code",
            "install snippet",
            "installation instructions",
            "script tag"
          ],
          "es": [
            "código para incrustar",
            "código de instalación",
            "instalar formulario",
            "snippet"
          ]
        }
      }
    },
    "/subscription_form_templates": {
      "get": {
        "operationId": "list_subscription_form_templates",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionFormTemplate collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SubscriptionFormTemplate.jsonld-subscription_form_template.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubscriptionFormTemplate-subscription_form_template.read"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`audience`, `type` or `channels[]` is missing or not valid. Send all three.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check it with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List form templates",
        "description": "Returns the ready-made designs a new form can start from, for one audience, one form type and one set of channels. Only active templates with the same type, exactly the same channels and the same GDPR state as the audience are returned, newest first.\n\n**When to use:** Before `create_subscription_form`, to choose a starting design and get its numeric `id`.\n\n**When not to use:** You do not need it when the first compatible template is fine: `create_subscription_form` uses it when `template_id` is omitted. A template cannot be changed afterwards through the API: to start from an existing form use `duplicate_subscription_form`.\n\n**Filters:** `audience`, `type` and `channels[]` are required. `locale` picks the language of the template names. The list is not paginated.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "audience",
            "in": "query",
            "description": "UUID of the audience that will own the form. Get it from `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "type",
            "in": "query",
            "description": "`embedded` or `popup`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "embedded"
          },
          {
            "name": "channels[]",
            "in": "query",
            "description": "Channels the form will collect: `email`, `sms` or both. Must be exactly the channels of the form you are going to create.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": [
              "email"
            ]
          },
          {
            "name": "locale",
            "in": "query",
            "description": "Language code for the template names.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "en"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "form template",
            "form design",
            "starting design",
            "form themes"
          ],
          "es": [
            "plantilla de formulario",
            "diseño de formulario",
            "diseño inicial",
            "plantillas para formularios"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "`audience`, `type` or `channels[]` is missing or not valid. Send all three."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The audience does not exist or belongs to another account. Check it with `list_audiences`."
          }
        ]
      }
    },
    "/subscription_forms": {
      "get": {
        "operationId": "list_subscription_forms",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                },
                "example": [
                  {
                    "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                    "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                    "title": "Newsletter sign-up",
                    "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                    "type": "embedded",
                    "channels": [
                      "email"
                    ],
                    "status": "form.status.published",
                    "generation": "current",
                    "converted_at": null,
                    "subscriber_count": 128,
                    "created_at": "2026-11-02T09:15:00+01:00",
                    "updated_at": "2026-11-09T17:40:00+01:00"
                  }
                ]
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubscriptionForm-subscription_form.list"
                  }
                },
                "example": [
                  {
                    "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                    "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                    "title": "Newsletter sign-up",
                    "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                    "type": "embedded",
                    "channels": [
                      "email"
                    ],
                    "status": "form.status.published",
                    "generation": "current",
                    "converted_at": null,
                    "subscriber_count": 128,
                    "created_at": "2026-11-02T09:15:00+01:00",
                    "updated_at": "2026-11-09T17:40:00+01:00"
                  }
                ]
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List subscription forms",
        "description": "Returns the sign-up forms of the account, from every audience and of both generations, with their type, channels, status and the number of people who joined through each. Newest first unless you sort.\n\n**When to use:** To see which sign-up forms exist, which are live, paused or still drafts, or to find a form by name before reading, changing or publishing it.\n\n**When not to use:** To read the full settings of one form use `get_subscription_form`. To get the code that installs a published form on a website use `get_form_publishing_info`. For how a form performs use `get_subscription_form_statistics`. To find the people who signed up through a form, search contacts by the subscription form: look up its filter field with `list_contact_filter_fields` and use it in `search_contacts`.\n\n**Filters:** `title`: partial, case-insensitive match. `audience`: UUID of an audience. `status`: `form.status.draft`, `form.status.unpublished`, `form.status.published` or `form.status.paused`; an unknown value returns an empty list. `type`: `embedded` or `popup`. `channel`: `email` or `sms`; an unknown value returns an empty list. Sort with `order[title]`, `order[type]`, `order[audience_name]`, `order[created_at]` or `order[updated_at]` (`asc` or `desc`); without sorting the newest created come first.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "title",
            "in": "query",
            "description": "Return only forms whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "newsletter"
          },
          {
            "name": "audience",
            "in": "query",
            "description": "UUID of an audience. Get it from `list_audiences`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Return only forms in this status. Each value is described in the response.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "form.status.published"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only forms of this type: `embedded` or `popup`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "popup"
          },
          {
            "name": "channel",
            "in": "query",
            "description": "Return only forms that collect this channel: `email` or `sms`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "email"
          },
          {
            "name": "order[title]",
            "in": "query",
            "description": "Sort by title: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "asc"
          },
          {
            "name": "order[type]",
            "in": "query",
            "description": "Sort by type: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "asc"
          },
          {
            "name": "order[audience_name]",
            "in": "query",
            "description": "Sort by the name of the audience: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "asc"
          },
          {
            "name": "order[created_at]",
            "in": "query",
            "description": "Sort by creation date: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          },
          {
            "name": "order[updated_at]",
            "in": "query",
            "description": "Sort by last change: `asc` or `desc`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Forms per page. Default 30, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "signup forms",
            "opt-in forms",
            "lead capture forms",
            "popup forms",
            "embedded forms",
            "landing forms"
          ],
          "es": [
            "formularios de suscripción",
            "formularios de captación",
            "mis formularios",
            "popups",
            "formularios incrustados",
            "qué formularios tengo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          }
        ]
      },
      "post": {
        "operationId": "create_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "201": {
            "description": "SubscriptionForm resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.unpublished",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 0,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-02T09:15:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.unpublished",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 0,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-02T09:15:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": null
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.\n\n`plan_upgrade_required`: Popup forms are not included in the plan of the account. Nothing was changed. Embedded forms work on any plan; to use popups the account owner has to upgrade, and the extension `upgrade` names the capability (`popup_forms`) the plan lacks.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check it with `list_audiences`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: See `violations[].propertyPath`: `title`, `audience`, `type` or `channels` missing or invalid; `locale` is required when the account has several languages, or is not one of them; `template_id` is not an active template with the same type, channels and GDPR state as the audience.\n\n`no_compatible_template`: You did not send `template_id` and there is no active template for that type, channels and GDPR state. Try other channels or ask support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a subscription form",
        "description": "Creates a sign-up form for an audience, in the Customer App engine, starting from a template. The form is not live: nobody sees it until `publish_subscription_form` is called. The consent purposes of the audience that cover the chosen channels are filled in for you.\n\n**When to use:** To start a new sign-up form, embedded in a page or as a popup. Afterwards adjust it with `update_subscription_form`, set a popup's triggers with `update_subscription_form_popup_behavior`, and publish it.\n\n**When not to use:** Audience, type and channels cannot be changed later: if one is wrong, create another form. To copy a form that already looks right use `duplicate_subscription_form`. To create a classic form that the Customer App can only read, use `create_embedded_form` or `create_popup_form`. The look of the form (colors, images, layout, fields) is edited in the Customer App editor, not through the API.\n\n**Side effects:** Creates the form with `generation: current`, never published. The template is copied as its design: when `status` comes back as `form.status.unpublished` the design is ready, and when it is `form.status.draft` the form has no design yet and `publish_subscription_form` will try again to generate it from the template, answering `design_required` only if it cannot. Double opt-in is forced to `true` where the account requires it. With GDPR enabled in the audience, the compatible purposes are added and `consent_mode` is `all_required`. The preview thumbnail is generated in the background. Nothing is sent to anyone.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new SubscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new form",
            "create signup form",
            "create newsletter form",
            "create popup",
            "create embedded form",
            "landing form",
            "lead capture form"
          ],
          "es": [
            "crear formulario",
            "nuevo formulario de suscripción",
            "formulario para la newsletter",
            "crear popup",
            "formulario incrustado",
            "formulario de captación",
            "formulario de landing"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 403,
            "code": "plan_upgrade_required",
            "meaning": "Popup forms are not included in the plan of the account. Nothing was changed. Embedded forms work on any plan; to use popups the account owner has to upgrade, and the extension `upgrade` names the capability (`popup_forms`) the plan lacks."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The audience does not exist or belongs to another account. Check it with `list_audiences`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "See `violations[].propertyPath`: `title`, `audience`, `type` or `channels` missing or invalid; `locale` is required when the account has several languages, or is not one of them; `template_id` is not an active template with the same type, channels and GDPR state as the audience."
          },
          {
            "status": 422,
            "code": "no_compatible_template",
            "meaning": "You did not send `template_id` and there is no active template for that type, channels and GDPR state. Try other channels or ask support."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}": {
      "get": {
        "operationId": "get_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-09T17:40:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-09T17:40:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a subscription form",
        "description": "Returns one sign-up form with everything that defines it: audience, type, channels, double opt-in, consent, groups, what it does with existing CRM data, welcome email, popup behavior, publication state and its public link.\n\n**When to use:** Before changing, publishing, pausing or deleting a form, or to find out why it is not live yet (`status`, `pending_changes`).\n\n**When not to use:** To find forms use `list_subscription_forms`. For the code that installs the form on a website use `get_form_publishing_info`. For visitors and sign-ups use `get_subscription_form_statistics`. For a classic form (`generation: classic`) it works too, but only `get_audience_form` shows its legacy counters.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "form details",
            "form settings",
            "form status",
            "form share link",
            "is the form live"
          ],
          "es": [
            "ver formulario",
            "estado del formulario",
            "configuración del formulario",
            "enlace del formulario",
            "está publicado el formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          }
        ]
      },
      "put": {
        "operationId": "update_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-10T10:05:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": true,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-10T10:05:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": true,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `update_embedded_form` or `update_popup_form`, or convert it first with `convert_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: See `violations[].propertyPath`: for example `groups` contains a group that does not belong to the audience of the form, `locale` is not an account language, or `title` is empty.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a subscription form",
        "description": "Changes the settings of a Customer App form: name, language, groups the people are added to, double opt-in, consent, welcome email and what the form does with existing CRM data. Send only what you want to change.\n\n**When to use:** To rename a form, add its sign-ups to groups, turn double opt-in or the welcome email on or off, choose whether visitors must accept every consent purpose or at least one, or change how it treats data of people and companies already in the CRM.\n\n**When not to use:** Audience, type and channels cannot be changed after creation. The design (fields, texts, colors, layout) is edited in the Customer App editor. Popup triggers use `update_subscription_form_popup_behavior`. To make a published form live with the change use `publish_subscription_form`. Classic forms use `update_embedded_form` or `update_popup_form`. The consent purposes a form shows are chosen by a person in the Customer App: the API only reads them (`purposes` of `get_subscription_form`).\n\n**Side effects:** On a published form, a change can only reach visitors after `publish_subscription_form`: until then `pending_changes` is `true` and visitors still see the previous version. Double opt-in cannot be turned off where the account requires it: the value stays `true`. The settings, the consent and the welcome email are saved one after the other, so if a later part is rejected the earlier ones stay saved: read the form again to see what applied.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "requestBody": {
          "description": "The updated SubscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit form",
            "rename form",
            "form groups",
            "double opt-in",
            "form consent",
            "welcome email",
            "crm data policy"
          ],
          "es": [
            "editar formulario",
            "renombrar formulario",
            "grupos del formulario",
            "doble confirmación",
            "consentimiento del formulario",
            "email de bienvenida",
            "política de datos del CRM"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `update_embedded_form` or `update_popup_form`, or convert it first with `convert_subscription_form`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "See `violations[].propertyPath`: for example `groups` contains a group that does not belong to the audience of the form, `locale` is not an account language, or `title` is empty."
          }
        ]
      },
      "delete": {
        "operationId": "delete_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "204": {
            "description": "SubscriptionForm resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `delete_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a subscription form",
        "description": "Permanently deletes the form together with its history of received answers and its statistics. The contacts, companies and subscriptions it already created stay.\n\n**When to use:** Only when the person wants the form gone for good.\n\n**When not to use:** To take it offline for a while use `pause_subscription_form`. It cannot be undone. For a classic form use `delete_form`.\n\n**Side effects:** Confirmation links of people who signed up but did not confirm yet stop working, and what was waiting to be applied for them (CRM data, group memberships) is lost. The rest of the history is cleaned up just after the response. People already subscribed through the form stay subscribed, and the form stops being shown on the sites that use it.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete form",
            "remove form",
            "erase form"
          ],
          "es": [
            "borrar formulario",
            "eliminar formulario",
            "quitar formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `delete_form`."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/actions/convert": {
      "put": {
        "operationId": "convert_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": "2026-11-11T10:02:00+01:00",
                  "subscriber_count": 640,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:02:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": "2026-11-11T10:02:00+01:00",
                  "subscriber_count": 640,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:02:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`form_already_current`: The form is already managed in the Customer App. Nothing to do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`form_conversion_unavailable`: The installed design cannot be converted (for example the confirmation email is missing, or the form has an older publication that is not compatible). A person has to review it in the Customer App.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Convert a classic form",
        "description": "Moves a classic form to the Customer App engine so it can be edited, published and measured with the `subscription_form` operations. It cannot be undone. The installed code and the public link keep working and the people captured before stay.\n\n**When to use:** When the person wants to manage an old form with the new operations, or Maia needs to change a setting of a classic form with `update_subscription_form`.\n\n**When not to use:** Do not convert just to read a form: `get_subscription_form` and `get_audience_form` read both generations. A form that is already current answers `form_already_current`. After converting, `update_embedded_form`, `update_popup_form`, `publish_form`, `pause_form`, `resume_form`, `unpublish_form` and `delete_form` stop working on it.\n\n**Side effects:** Irreversible. The form moves to the Customer App: the old panel and the classic operations can no longer edit it. If it had an installed design, that design is published as the first version of the new engine. Whether it is live does not change: a published form stays published, a paused one stays paused and one never published stays unpublished. The history of answers and the statistics start from zero on the day of conversion (`converted_at`).\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "convert form",
            "migrate form",
            "upgrade form",
            "move form to new engine"
          ],
          "es": [
            "convertir formulario",
            "migrar formulario",
            "pasar el formulario a la nueva versión"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "form_already_current",
            "meaning": "The form is already managed in the Customer App. Nothing to do."
          },
          {
            "status": 422,
            "code": "form_conversion_unavailable",
            "meaning": "The installed design cannot be converted (for example the confirmation email is missing, or the form has an older publication that is not compatible). A person has to review it in the Customer App."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/actions/duplicate": {
      "post": {
        "operationId": "duplicate_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "201": {
            "description": "SubscriptionForm resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/8e1f0b34-2a6c-4d7e-b9a0-5c4d3e2f1a0b",
                  "uuid": "8e1f0b34-2a6c-4d7e-b9a0-5c4d3e2f1a0b",
                  "title": "Newsletter sign-up (Black Friday)",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.unpublished",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 0,
                  "created_at": "2026-11-11T10:30:00+01:00",
                  "updated_at": "2026-11-11T10:30:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/8e1f0b34-2a6c-4d7e-b9a0-5c4d3e2f1a0b",
                  "uuid": "8e1f0b34-2a6c-4d7e-b9a0-5c4d3e2f1a0b",
                  "title": "Newsletter sign-up (Black Friday)",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.unpublished",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 0,
                  "created_at": "2026-11-11T10:30:00+01:00",
                  "updated_at": "2026-11-11T10:30:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": null
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Convert it first with `convert_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: See `violations[].propertyPath`: `title` is longer than 255 characters.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Duplicate a subscription form",
        "description": "Creates a copy of a Customer App form, with its design and settings, as a new draft that is not live. It is the quickest way to get a variant of a form that already looks right, in the same audience.\n\n**When to use:** To start from a form that already has the design and settings wanted: a variant for another campaign, a new language, an A/B test.\n\n**When not to use:** Classic forms cannot be duplicated: convert them first with `convert_subscription_form`. To start from a ready-made template use `create_subscription_form`. The copy stays in the audience of the original and cannot be moved.\n\n**Side effects:** The copy is never live and does not carry statistics or received answers. It keeps the type, channels, language, double opt-in, groups and design of the original. The preview thumbnail is generated in the background.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "requestBody": {
          "description": "The new SubscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormDuplicateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormDuplicateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "copy form",
            "clone form",
            "form variant",
            "duplicate popup"
          ],
          "es": [
            "duplicar formulario",
            "copiar formulario",
            "variante del formulario",
            "clonar formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Convert it first with `convert_subscription_form`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "See `violations[].propertyPath`: `title` is longer than 255 characters."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/actions/pause": {
      "put": {
        "operationId": "pause_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.paused",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:20:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.paused",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:20:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `pause_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`form_not_published`: The form has never been published, so there is nothing to pause or resume. Publish it first with `publish_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Pause a subscription form",
        "description": "Takes a published form offline without losing it: visitors stop seeing it and it stops accepting sign-ups until it is resumed. The live version, the settings and everyone already captured stay.\n\n**When to use:** To stop capturing sign-ups for a while (end of a campaign, a mistake in the form) and bring it back later.\n\n**When not to use:** To remove the form for good use `delete_subscription_form`. There is no unpublish for Customer App forms: pausing is the way to take one offline. To bring it back use `resume_subscription_form`. For a classic form use `pause_form`.\n\n**Side effects:** Visitors no longer see the form and sign-ups are rejected. Calling it on a form that is already paused changes nothing.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pause form",
            "stop form",
            "take form offline",
            "disable form",
            "switch off the form"
          ],
          "es": [
            "pausar formulario",
            "desactivar formulario",
            "retirar formulario",
            "quitar el formulario de la web"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `pause_form`."
          },
          {
            "status": 422,
            "code": "form_not_published",
            "meaning": "The form has never been published, so there is nothing to pause or resume. Publish it first with `publish_subscription_form`."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/actions/publish": {
      "put": {
        "operationId": "publish_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:02:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-11T10:02:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `publish_form`, or convert it first with `convert_subscription_form`.\n\n`form_publication_conflict`: The form changed while it was being published, so nothing was published. Read it again with `get_subscription_form` and publish again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`design_required`: The form has no design and one could not be generated from its template (`status` is `form.status.draft`). A person has to open it in the Customer App editor and save it; then publish again.\n\n`account_not_approved`: The account is not approved to send yet. Ask support.\n\n`sender_emails_missing`: The audience has no default From and Reply-To email. Set them in the audience settings with `update_audience`.\n\n`consent_purpose_missing`: The audience has GDPR enabled and a channel of the form is covered by no purpose. Enable a purpose that covers it in the audience, then add it with `update_subscription_form`.\n\n`confirmation_email_required`: Double opt-in is on and the confirmation email has no content. A person has to write it in the Customer App.\n\n`invalid_design`: The saved design can no longer be published (for example a field it uses was archived). A person has to review it in the Customer App editor.\n\n`sms_sender_missing`: The form asks for double opt-in by SMS and the audience has no active default SMS sender. Set one in the audience with `update_audience` (`notifications.sms_sender`; see `list_sms_senders`), then publish again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Publish a subscription form",
        "description": "Makes the form live: from now on it is shown wherever its code is installed and on its public link, and it starts capturing people. Publishing again after editing replaces the live version with the current one.\n\n**When to use:** When the form has a design (or the template to generate it from) and its settings are ready and the person wants it to start capturing sign-ups, or to push later changes live (`pending_changes` is `true`).\n\n**When not to use:** To take a live form offline for a while use `pause_subscription_form`; to bring a paused form back as it was use `resume_subscription_form`. A form with `status` `form.status.draft` has no design yet: publishing generates it from the template the form was created with, and answers `design_required` only when it cannot. For a classic form use `publish_form`.\n\n**Side effects:** Real people can start signing up. With double opt-in, each sign-up sends a confirmation email (or SMS) to the person. A form still without design gets it generated from its template first. It freezes an immutable version of the form and makes it live, and a paused form is not resumed by this: use `resume_subscription_form`. The installed code and the public link do not change. Publishing needs an active default SMS sender in the audience when the form asks for double opt-in by SMS; without one the request is refused with `sms_sender_missing` and nothing is published.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "publish form",
            "go live",
            "activate form",
            "start capturing leads",
            "push form changes live"
          ],
          "es": [
            "publicar formulario",
            "activar formulario",
            "poner en marcha el formulario",
            "empezar a captar contactos",
            "subir los cambios del formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `publish_form`, or convert it first with `convert_subscription_form`."
          },
          {
            "status": 409,
            "code": "form_publication_conflict",
            "meaning": "The form changed while it was being published, so nothing was published. Read it again with `get_subscription_form` and publish again."
          },
          {
            "status": 422,
            "code": "design_required",
            "meaning": "The form has no design and one could not be generated from its template (`status` is `form.status.draft`). A person has to open it in the Customer App editor and save it; then publish again."
          },
          {
            "status": 422,
            "code": "account_not_approved",
            "meaning": "The account is not approved to send yet. Ask support."
          },
          {
            "status": 422,
            "code": "sender_emails_missing",
            "meaning": "The audience has no default From and Reply-To email. Set them in the audience settings with `update_audience`."
          },
          {
            "status": 422,
            "code": "consent_purpose_missing",
            "meaning": "The audience has GDPR enabled and a channel of the form is covered by no purpose. Enable a purpose that covers it in the audience, then add it with `update_subscription_form`."
          },
          {
            "status": 422,
            "code": "confirmation_email_required",
            "meaning": "Double opt-in is on and the confirmation email has no content. A person has to write it in the Customer App."
          },
          {
            "status": 422,
            "code": "invalid_design",
            "meaning": "The saved design can no longer be published (for example a field it uses was archived). A person has to review it in the Customer App editor."
          },
          {
            "status": 422,
            "code": "sms_sender_missing",
            "meaning": "The form asks for double opt-in by SMS and the audience has no active default SMS sender. Set one in the audience with `update_audience` (`notifications.sms_sender`; see `list_sms_senders`), then publish again."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/actions/resume": {
      "put": {
        "operationId": "resume_subscription_form",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-12T09:00:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "embedded",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-12T09:00:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": null,
                  "pending_changes": false,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.\n\n`plan_upgrade_required`: Popup forms are not included in the plan of the account. Nothing was changed. Embedded forms work on any plan; to use popups the account owner has to upgrade, and the extension `upgrade` names the capability (`popup_forms`) the plan lacks.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `resume_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`form_not_published`: The form has never been published, so there is nothing to pause or resume. Publish it first with `publish_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Resume a paused subscription form",
        "description": "Brings a paused form back online with the version that was live when it was paused: visitors see it again and it accepts sign-ups.\n\n**When to use:** After `pause_subscription_form`, when the person wants the form to capture sign-ups again.\n\n**When not to use:** To push edits live use `publish_subscription_form`. A form that was never published cannot be resumed: publish it first. For a classic form use `resume_form`.\n\n**Side effects:** Real people can sign up again; with double opt-in, each sign-up sends a confirmation email (or SMS). Calling it on a form that is not paused changes nothing.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "resume form",
            "reactivate form",
            "turn form back on",
            "unpause form"
          ],
          "es": [
            "reanudar formulario",
            "reactivar formulario",
            "volver a activar el formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 403,
            "code": "plan_upgrade_required",
            "meaning": "Popup forms are not included in the plan of the account. Nothing was changed. Embedded forms work on any plan; to use popups the account owner has to upgrade, and the extension `upgrade` names the capability (`popup_forms`) the plan lacks."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `resume_form`."
          },
          {
            "status": 422,
            "code": "form_not_published",
            "meaning": "The form has never been published, so there is nothing to pause or resume. Publish it first with `publish_subscription_form`."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/popup_behavior": {
      "put": {
        "operationId": "update_subscription_form_popup_behavior",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionForm resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm.jsonld-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "popup",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-10T11:00:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": {
                    "on_load_time_enabled": true,
                    "on_load_time_seconds": 8,
                    "on_load_scroll_enabled": false,
                    "on_load_scroll_percentage": 50,
                    "on_exit": true,
                    "frequency_days": 30,
                    "schedule_enabled": false,
                    "schedule_start_at": null,
                    "schedule_end_at": null,
                    "include_urls": [],
                    "exclude_urls": [],
                    "hide_on_desktop": false,
                    "hide_on_tablet": false,
                    "hide_on_mobile": false
                  },
                  "pending_changes": true,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionForm-subscription_form.read"
                },
                "example": {
                  "@id": "/subscription_forms/3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "uuid": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
                  "title": "Newsletter sign-up",
                  "audience": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
                  "type": "popup",
                  "channels": [
                    "email"
                  ],
                  "status": "form.status.published",
                  "generation": "current",
                  "converted_at": null,
                  "subscriber_count": 128,
                  "created_at": "2026-11-02T09:15:00+01:00",
                  "updated_at": "2026-11-10T11:00:00+01:00",
                  "locale": "en",
                  "email_double_opt_in": true,
                  "sms_double_opt_in": false,
                  "consent_mode": "all_required",
                  "purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "available_purposes": [
                    {
                      "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                      "name": "Marketing emails"
                    }
                  ],
                  "groups": [
                    "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
                  ],
                  "welcome_email_enabled": true,
                  "crm_data_policy": {
                    "contact": "fill_empty",
                    "company": "fill_empty"
                  },
                  "popup_behavior": {
                    "on_load_time_enabled": true,
                    "on_load_time_seconds": 8,
                    "on_load_scroll_enabled": false,
                    "on_load_scroll_percentage": 50,
                    "on_exit": true,
                    "frequency_days": 30,
                    "schedule_enabled": false,
                    "schedule_start_at": null,
                    "schedule_end_at": null,
                    "include_urls": [],
                    "exclude_urls": [],
                    "hide_on_desktop": false,
                    "hide_on_tablet": false,
                    "hide_on_mobile": false
                  },
                  "pending_changes": true,
                  "share_url": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`classic_form_read_only`: This is a classic form (`generation: classic`), which this operation does not handle. Use `update_popup_form`, or convert it first with `convert_subscription_form`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: See `violations[].propertyPath`: the form is not a popup (`popup_behavior`), `schedule_end_at` is not after `schedule_start_at`, a date is not `YYYY-MM-DD`, or a value is outside its allowed list (`on_load_scroll_percentage`, `frequency_days`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Set when a popup form appears",
        "description": "Sets when a popup form shows (after a delay, after scrolling or when the visitor is about to leave), how often the same visitor sees it, between which dates, and on which pages and devices. Send only what you want to change.\n\n**When to use:** To decide when the popup appears: after some seconds, after a scroll depth, on exit intent; how many days before it shows again; during which dates; only on or never on certain URLs; and whether to hide it on desktop, tablet or phone.\n\n**When not to use:** Only popup forms have behavior: an embedded form answers 422. The design of the popup is edited in the Customer App editor. Classic popups use `update_popup_form`.\n\n**Side effects:** On a published form, the change reaches visitors only after `publish_subscription_form`; until then `pending_changes` is `true`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          }
        ],
        "requestBody": {
          "description": "The updated SubscriptionForm resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormPopupBehaviorInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionForm.SubscriptionFormPopupBehaviorInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "popup triggers",
            "exit intent popup",
            "popup frequency",
            "popup schedule",
            "when does the popup show"
          ],
          "es": [
            "cuándo sale el popup",
            "intención de salida",
            "frecuencia del popup",
            "programar el popup",
            "popup en qué páginas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 409,
            "code": "classic_form_read_only",
            "meaning": "This is a classic form (`generation: classic`), which this operation does not handle. Use `update_popup_form`, or convert it first with `convert_subscription_form`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "See `violations[].propertyPath`: the form is not a popup (`popup_behavior`), `schedule_end_at` is not after `schedule_start_at`, a date is not `YYYY-MM-DD`, or a value is outside its allowed list (`on_load_scroll_percentage`, `frequency_days`)."
          }
        ]
      }
    },
    "/subscription_forms/{uuid}/statistics": {
      "get": {
        "operationId": "get_subscription_form_statistics",
        "tags": [
          "Subscription forms"
        ],
        "responses": {
          "200": {
            "description": "SubscriptionFormStatistics resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionFormStatistics.jsonld-subscription_form_statistics.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionFormStatistics-subscription_form_statistics.read"
                }
              }
            }
          },
          "400": {
            "description": "`end` is before `start` or the period is longer than 366 days. Send a valid period.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`classic_form_statistics_unavailable`: This is a classic form. Read its counters in `stats` of `get_audience_form`.\n\n`validation_failed`: `start` or `end` is missing or is not a `YYYY-MM-DD` date. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get form statistics",
        "description": "Returns how a Customer App form performed over a period, day by day: times it was shown, answers received, people who completed the subscription and the conversion rate. A converted form counts from the day it was converted.\n\n**When to use:** To answer how a form is doing, compare two forms or see the effect of a change.\n\n**When not to use:** For the people themselves, search contacts by the subscription form (look up its filter field with `list_contact_filter_fields`, then use `search_contacts`). For classic forms the counters are in `stats` of `get_audience_form`; this operation answers `classic_form_statistics_unavailable` for them.\n\n**Filters:** `start` and `end` (`YYYY-MM-DD`) are required, in the time zone of the account; the period is at most 366 days. The days are grouped in that time zone.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the form. Get it from `list_subscription_forms`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08"
          },
          {
            "name": "start",
            "in": "query",
            "description": "First day of the period, as `YYYY-MM-DD`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-10-01"
          },
          {
            "name": "end",
            "in": "query",
            "description": "Last day of the period, as `YYYY-MM-DD`. At most 366 days after `start`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-11"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "form statistics",
            "form conversion rate",
            "form impressions",
            "form performance",
            "how many signed up"
          ],
          "es": [
            "estadísticas del formulario",
            "tasa de conversión del formulario",
            "cuántas veces se ha visto",
            "rendimiento del formulario",
            "cuántos se han apuntado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability."
          },
          {
            "status": 404,
            "code": null,
            "meaning": "The form does not exist or belongs to another account. Check the UUID with `list_subscription_forms`."
          },
          {
            "status": 400,
            "code": null,
            "meaning": "`end` is before `start` or the period is longer than 366 days. Send a valid period."
          },
          {
            "status": 422,
            "code": "classic_form_statistics_unavailable",
            "meaning": "This is a classic form. Read its counters in `stats` of `get_audience_form`."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "`start` or `end` is missing or is not a `YYYY-MM-DD` date. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/support/tickets": {
      "get": {
        "operationId": "list_support_tickets",
        "tags": [
          "Support tickets"
        ],
        "responses": {
          "200": {
            "description": "SupportTicket collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SupportTicket.jsonld-support_ticket.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SupportTicket-support_ticket.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not tied to a user with an email address, so tickets cannot be linked to anyone. Use a credential of a user.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "The support service is temporarily unavailable. Retry later.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List my support tickets",
        "description": "Returns the support tickets opened with the email address of the user making the call, with their status and the public replies. Internal tickets and private notes are not included.\n\n**When to use:** To see whether the user already has an open request about an issue, or what support answered.\n\n**When not to use:** To open a new request use `create_support_ticket`.\n\n**Permissions:** No specific permission.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "help requests",
            "zendesk",
            "customer service",
            "issues"
          ],
          "es": [
            "tickets de soporte",
            "mis consultas",
            "solicitudes de ayuda",
            "incidencias"
          ]
        }
      },
      "post": {
        "operationId": "create_support_ticket",
        "tags": [
          "Support tickets"
        ],
        "responses": {
          "201": {
            "description": "SupportTicket resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportTicket.jsonld-support_ticket.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportTicket-support_ticket.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not tied to a user with an email address, so tickets cannot be linked to anyone. Use a credential of a user.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The subject or description is missing or not valid. Read `violations[].propertyPath` or the `detail`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "The support service is temporarily unavailable. Retry later.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a support ticket",
        "description": "Opens a request for help with the Easymailing support team in the name of the user making the call. Support answers by email. The account name and plan are added to the message.\n\n**When to use:** When the user has a problem that cannot be solved with the other operations (a technical error, a limit of the plan, a billing or account issue). Confirm with the user before creating it.\n\n**When not to use:** To see requests already opened use `list_support_tickets`.\n\n**Side effects:** The support team receives the request and replies to the email of the user.\n\n**Permissions:** No specific permission.",
        "parameters": [],
        "requestBody": {
          "description": "The new SupportTicket resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/SupportTicket.SupportTicketInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportTicket.SupportTicketInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "contact support",
            "open ticket",
            "report a problem",
            "ask for help"
          ],
          "es": [
            "crear ticket",
            "contactar con soporte",
            "abrir incidencia",
            "pedir ayuda"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/surveys": {
      "get": {
        "operationId": "list_surveys",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "200": {
            "description": "Survey collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Survey.jsonld-survey.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Survey-survey.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List audience surveys",
        "description": "Returns the surveys of an audience: quick polls (type `poll`, a single question answered inline from the email) and full surveys (type `page`, a public multi-question page). Filterable by `status` (draft | active | closed), `type` and `name`. Use list_audiences first to get the audienceUuid.\n\n**When to use:** To see which polls and surveys an audience has and in which state they are, for example to pick one to link to a campaign or to read its results.\n\n**When not to use:** To read one survey with its questions use `get_survey`; for its results use `get_survey_stats`.\n\n**Filters:** `name`: partial match on the survey name. `status`: `draft`, `active` or `closed`. `type`: `poll` or `page`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "name",
            "in": "query",
            "description": "Return only surveys whose name contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Newsletter"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Return only surveys in this status: `draft`, `active` or `closed`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "active"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only surveys of this type: `poll` or `page`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "poll"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "poll",
            "questionnaire",
            "feedback form",
            "nps",
            "quiz"
          ],
          "es": [
            "encuestas",
            "sondeo",
            "cuestionario",
            "valoración"
          ]
        }
      },
      "post": {
        "operationId": "create_survey",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "201": {
            "description": "Survey resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey.jsonld-survey.read_survey.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey-survey.read_survey.read.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The question set is not valid for this survey type (for example a poll with more than one question, an option count that does not fit the question type, or `icons` display on a poll). The `detail` says which; fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to manage surveys (see Permissions), or the plan does not include them.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a survey",
        "description": "Creates a survey in draft status for the audience. Type `poll` takes exactly one question votable with one click from the email (`single_choice`, `yes_no`, `rating` or `nps`); type `page` takes any number of questions of any type. Questions can also be added later via the update endpoint. Activate the survey (PUT .../actions/activate) before linking it to a campaign. Requires a STARTER plan or higher.\n\n**When to use:** To prepare a poll or survey whose answers you want to collect from the subscribers of an audience. It stays a draft: activate it with `survey_activate` before linking it to a campaign.\n\n**When not to use:** To change an existing survey use `update_survey`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "requestBody": {
          "description": "The new Survey resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Survey.CreateSurveyInput.jsonld-survey.write.create_survey"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Survey.CreateSurveyInput-survey.write.create_survey"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new poll",
            "new questionnaire",
            "nps survey",
            "feedback survey"
          ],
          "es": [
            "crear encuesta",
            "nuevo sondeo",
            "nuevo cuestionario",
            "encuesta de satisfacción"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/surveys/{uuid}": {
      "get": {
        "operationId": "get_survey",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "200": {
            "description": "Survey resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey.jsonld-survey.read_survey.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey-survey.read_survey.read.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a survey",
        "description": "Returns a survey with its questions and answer options, status, configuration (show results, redirect URL) and, when the survey is an active `page` survey, the public URL of its multi-question page.\n\n**When to use:** To read the questions, options and state of a survey you already know, for example before editing or activating it, or to filter its answers in a workflow: each question gives its `answer_field`, the `field` of a condition in the `answersFilter` of «Survey answered», and the `text` of its options is the value of a choice.\n\n**When not to use:** To find surveys use `list_surveys`; for the answers received use `get_survey_stats`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "survey details",
            "poll details",
            "questions and options"
          ],
          "es": [
            "ver encuesta",
            "detalle de la encuesta",
            "preguntas de la encuesta"
          ]
        }
      },
      "put": {
        "operationId": "update_survey",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "200": {
            "description": "Survey resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey.jsonld-survey.read_survey.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey-survey.read_survey.read.detail"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "Questions were sent for a survey that is no longer a draft, or the question set is not valid for the type. Create a new survey instead, or fix the question set; the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a survey",
        "description": "Updates the survey name and configuration (show_results, redirect_url) in any status. Sending `questions` REPLACES the whole question set and is only allowed while the survey is in draft (questions are immutable once activated).\n\n**When to use:** To rename a survey, change whether respondents see the results or where they go after answering, or (only while it is a draft) rewrite its questions.\n\n**When not to use:** To make the survey available to campaigns use `survey_activate`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "requestBody": {
          "description": "The updated Survey resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Survey.UpdateSurveyInput.jsonld-survey.write.update_survey"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Survey.UpdateSurveyInput-survey.write.update_survey"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit survey",
            "change questions",
            "rename poll"
          ],
          "es": [
            "editar encuesta",
            "modificar preguntas",
            "cambiar encuesta"
          ]
        }
      },
      "delete": {
        "operationId": "delete_survey",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "204": {
            "description": "Survey resource deleted"
          },
          "400": {
            "description": "The survey is active. Close it with `survey_close` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The survey is used by segments or automations. Unlink it from the ones named in `detail` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a survey",
        "description": "Deletes the survey and all its answers. Active surveys must be closed first (400). A survey that is no longer a draft cannot be deleted while segments or automations use it (409 with their names).\n\n**When to use:** To remove a survey you no longer need, together with its answers.\n\n**When not to use:** To stop collecting answers but keep the results use `survey_close`.\n\n**Side effects:** The survey and all its answers are deleted and cannot be recovered through the API. Campaigns that had it selected are unlinked without warning: a draft or scheduled campaign will go out with an empty survey block, and sent campaigns lose their survey statistics panel.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.delete` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove survey",
            "erase poll",
            "discard questionnaire"
          ],
          "es": [
            "eliminar encuesta",
            "borrar encuesta",
            "quitar sondeo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/surveys/{uuid}/actions/activate": {
      "put": {
        "operationId": "survey_activate",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "204": {
            "description": "Survey resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The survey is not a draft, has no questions, or has choice questions with fewer than two options. The `detail` says which; fix it with `update_survey` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Activate a survey",
        "description": "Activates a draft survey so it can be linked to campaigns and answered. Requirements: at least one question; a poll question needs at least two options; on page surveys every choice question needs at least two options. Once activated, questions become immutable.\n\n**When to use:** When the draft is complete and you want to link the survey to campaigns and receive answers. After this its questions cannot be changed.\n\n**When not to use:** To change questions, do it before activating, with `update_survey`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "publish survey",
            "launch poll",
            "enable survey",
            "go live"
          ],
          "es": [
            "activar encuesta",
            "publicar encuesta",
            "lanzar sondeo"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/surveys/{uuid}/actions/close": {
      "put": {
        "operationId": "survey_close",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "204": {
            "description": "Survey resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "Only active surveys can be closed. Check the survey `status` with `get_survey`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Close a survey",
        "description": "Closes an active survey: it stops accepting answers. The email block of already-sent campaigns keeps rendering empty and the public page shows the closed state.\n\n**When to use:** To stop accepting answers once the survey has served its purpose, keeping its results. A closed survey can be deleted.\n\n**When not to use:** To remove the survey and its answers use `delete_survey`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.write` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "end survey",
            "stop collecting answers",
            "finish poll"
          ],
          "es": [
            "cerrar encuesta",
            "terminar encuesta",
            "dejar de recoger respuestas"
          ]
        }
      }
    },
    "/audiences/{audienceUuid}/surveys/{uuid}/stats": {
      "get": {
        "operationId": "get_survey_stats",
        "tags": [
          "Surveys"
        ],
        "responses": {
          "200": {
            "description": "Survey resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey.SurveyStatsOutput.jsonld-survey.stats"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Survey.SurveyStatsOutput-survey.stats"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The survey or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get survey results",
        "description": "Returns the aggregated results of a survey: completed responses (human answers only; bot/scanner votes are excluded), completion rate (page surveys), most voted option (polls), responses grouped by campaign, and per-question aggregates. Individual answers are never exposed: open text questions only carry their count.\n\n**When to use:** To see how a survey is performing: how many people answered, which option won (polls) and the results per question and per campaign.\n\n**When not to use:** To read the survey definition use `get_survey`.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.surveys.read` capability.",
        "parameters": [
          {
            "name": "audienceUuid",
            "in": "path",
            "description": "UUID of the audience the survey belongs to. Get it with `list_audiences`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the survey. Get it with `list_surveys`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "survey statistics",
            "poll results",
            "responses",
            "nps score",
            "answers"
          ],
          "es": [
            "resultados de la encuesta",
            "estadísticas de la encuesta",
            "respuestas recibidas",
            "votos"
          ]
        }
      }
    },
    "/task_assignees": {
      "get": {
        "operationId": "list_task_assignees",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "TaskAssignee collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TaskAssignee.jsonld-task_assignee.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskAssignee-task_assignee.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List users who can be assigned tasks",
        "description": "Returns the active users of the account who can receive tasks: those with a CRM seat who can read tasks. The user who owns the token comes first, then the rest by name.\n\n**When to use:** Before setting `assignee` in `create_task`, `update_task` or `assign_task`, or filtering `list_tasks` by `assignee`, to pick a valid person by name and get their email.\n\n**When not to use:** To assign a task, use `assign_task`. A person listed here can still be refused for a particular task if they cannot see one of the records it is linked to (`crm_task_assignee_unavailable`).\n\n**Filters:** No filters. The whole directory is returned in one response; it is not paginated.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "who can I assign tasks to",
            "team members",
            "users with CRM seat",
            "assignees",
            "list users for tasks"
          ],
          "es": [
            "a quién puedo asignar tareas",
            "miembros del equipo",
            "usuarios con plaza CRM",
            "responsables posibles",
            "lista de usuarios para tareas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/tasks": {
      "get": {
        "operationId": "list_tasks",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Task.jsonld-task.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Task-task.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_record`: The `contact`, `company` or `opportunity` does not exist or the user cannot see it. Check the UUID with `get_contact`, `get_company` or `get_opportunity`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `priority`, `type` or `sort` outside the allowed values, `due_from` or `due_to` without a time zone, more than one of `contact`, `company` and `opportunity`, an `assignee` email that is not an active user of the account, `itemsPerPage` outside 1 to 50, a `cursor[gt]` or `cursor[lt]` that is malformed or was issued for other filters, or both cursors in the same request. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List tasks",
        "description": "Lists CRM tasks with their status, due date, person responsible and the contacts, companies and opportunities they are linked to. With no filters it returns the open tasks assigned to the user who owns the token, the most urgent first (overdue ones on top).\n\n**When to use:** To answer what is pending: the user's own tasks, overdue tasks, tasks due today or this week, the tasks of a teammate, unassigned tasks, or everything open on one contact, company or opportunity.\n\n**When not to use:** To read one task whose UUID you know, use `get_task`. To read the notes of a record, use `list_notes`. To find a valid person to assign a task to, use `list_task_assignees`. There is no text search on tasks: narrow by person, record, date, priority or type and read `title`.\n\n**Filters:** All filters are optional and combine with AND.\n- `assignee`: `me` (the user who owns the token), `unassigned`, `all`, or the email of an active user of the account. Default: `me`, or `all` when you filter by `contact`, `company` or `opportunity`.\n- `include_completed`: `false` (default) returns only open tasks; `true` returns open and completed tasks. There is no filter for completed tasks only: read `status`.\n- `priority`, `type`: exact value.\n- `due_from` (inclusive) and `due_to` (exclusive): bounds of `due_at`, ISO 8601 with a time zone. Tasks without a due date are left out when either one is sent.\n- `contact`, `company`, `opportunity`: only tasks linked to that record, by its UUID. Send one at most. A UUID that does not exist, or that the user cannot see, gives `404`.\nOverdue tasks: send `due_to` set to the current instant and leave `include_completed` out. Tasks due on a given day: `due_from` at the start of the day and `due_to` at the start of the next, in the user time zone.\nSorting: `sort=due` (default) puts overdue tasks first, then open tasks by due date, then open tasks without due date, then completed ones (most recently completed first); `priority` orders from `high` to `none` and then by due date; `title` is alphabetical, ignoring case. There is no sort direction.\nPagination: tasks are paged with `itemsPerPage` (default 30, maximum 50) and an opaque `cursor[gt]`: to read the next page, call again with the same filters and the `cursor[gt]` of the `hydra:next` link of the previous response. The total number of tasks is not returned. Keep following `hydra:next` until a page comes back empty. `hydra:previous` takes you back: it carries the `cursor[lt]` of the first task of the page and returns the page just before it; use it the same way, with the same filters.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.read` capability. A task linked to contacts or companies is only visible to users who also have `crm.contacts_companies.read`, and a task linked to an opportunity only to users who can see its pipeline; a task the user cannot fully see is treated as if it did not exist.",
        "parameters": [
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Tasks per page. Default 30, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 30
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxLCJzIjoiZHVlIn0"
          },
          {
            "name": "cursor[lt]",
            "in": "query",
            "description": "Opaque cursor of the previous page, taken from the `hydra:previous` link of the response. Use it only with the same filters. Do not send it together with `cursor[gt]`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "eyJ2IjoxLCJzIjoiZHVlIn0"
          },
          {
            "name": "assignee",
            "in": "query",
            "description": "Whose tasks: `me`, `unassigned`, `all` or the email of an active user of the account.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "me"
          },
          {
            "name": "include_completed",
            "in": "query",
            "description": "`true` to include completed tasks. Default `false`: only open tasks.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          },
          {
            "name": "priority",
            "in": "query",
            "description": "Only tasks with this priority.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/CrmTaskPriority"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "high"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Only tasks of this type.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/CrmTaskType"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "call"
          },
          {
            "name": "due_from",
            "in": "query",
            "description": "Inclusive lower bound of the due date, ISO 8601 with time zone. Tasks without due date are left out.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-01T00:00:00+01:00"
          },
          {
            "name": "due_to",
            "in": "query",
            "description": "Exclusive upper bound of the due date, ISO 8601 with time zone. Set to the current instant to get the overdue tasks.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-08T00:00:00+01:00"
          },
          {
            "name": "contact",
            "in": "query",
            "description": "UUID of a contact: only the tasks linked to it. Cannot be combined with `company` or `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          {
            "name": "company",
            "in": "query",
            "description": "UUID of a company: only the tasks linked to it. Cannot be combined with `contact` or `opportunity`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          {
            "name": "opportunity",
            "in": "query",
            "description": "UUID of an opportunity: only the tasks linked to it. Cannot be combined with `contact` or `company`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Order of the list.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "due",
              "enum": [
                "due",
                "priority",
                "title"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "due"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "tasks",
            "to-do list",
            "my tasks",
            "overdue tasks",
            "pending tasks",
            "tasks due today",
            "unassigned tasks",
            "tasks of a contact",
            "list all tasks",
            "follow-ups"
          ],
          "es": [
            "tareas",
            "mis tareas",
            "tareas pendientes",
            "tareas vencidas",
            "tareas atrasadas",
            "tareas de hoy",
            "tareas sin asignar",
            "listar tareas",
            "ver todas las tareas",
            "tareas de un contacto",
            "seguimientos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_record",
            "meaning": "The `contact`, `company` or `opportunity` does not exist or the user cannot see it. Check the UUID with `get_contact`, `get_company` or `get_opportunity`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `priority`, `type` or `sort` outside the allowed values, `due_from` or `due_to` without a time zone, more than one of `contact`, `company` and `opportunity`, an `assignee` email that is not an active user of the account, `itemsPerPage` outside 1 to 50, a `cursor[gt]` or `cursor[lt]` that is malformed or was issued for other filters, or both cursors in the same request. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "201": {
            "description": "Task resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_create_conflict`: The `uuid` you sent already belongs to a task. If you are retrying a request that may have succeeded, read it with `get_task` instead of creating it again; otherwise send a different `uuid` or leave it out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_task_invalid_value`: A value is not valid: `title` blank or longer than 200 characters, or `priority` / `type` outside the allowed values. Read `violations[].propertyPath`.\n\n`crm_task_invalid_due`: `due_at` is not an ISO 8601 date and time with a time zone or offset.\n\n`crm_task_invalid_reminder`: `reminder_offset_minutes` is not a whole number of minutes, or is negative.\n\n`crm_task_reminder_requires_assignee_and_due`: You asked for a reminder on a task that has no assignee or no due date. Set both, or send `reminder_offset_minutes: null`.\n\n`crm_task_assignee_unavailable`: `assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`.\n\n`crm_task_description_too_long`: `description_html` exceeds 10,000 visible characters or 60,000 bytes.\n\n`crm_task_related_record_not_found`: A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist or the user cannot see it. Nothing was saved. Read `violations[].propertyPath` for the list that failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a task",
        "description": "Creates an open task with a title and, optionally, a description, priority, type, person responsible, due date, reminder and links to contacts, companies and opportunities.\n\n**When to use:** To record something that has to be done: a follow-up call to a contact, a proposal to send, a renewal to review. Link it to the records it is about so it shows up on them.\n\n**When not to use:** To write down information without a deadline or an action, such as what was said in a meeting, use `create_note`. To change a task that already exists, use `update_task`; to mark it done, `complete_task`.\n\n**Side effects:** The task is created open and, if it is linked to records, a `task.created` entry appears in the activity of each of them, done by the person who owns the token (marked «via Maia» when Maia made the request; `initiated_via` says `api` or `maia`). A task without links leaves no entry. All fields are applied together: if one is rejected, nothing is saved. If the task is assigned to a user other than the one who owns the token, that user gets a notification (in the app and by email, according to their notification preferences). If a reminder is set, the assignee also gets a notification at `reminder_at`; it is delivered by the same notification system as the Customer App. Nothing is sent to the contacts and no automation or webhook fires (CRM webhook events do not exist yet).\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities).",
        "parameters": [],
        "requestBody": {
          "description": "The new Task resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create task",
            "add task",
            "new task",
            "schedule a follow-up",
            "remind me to",
            "to-do for a contact",
            "assign a task"
          ],
          "es": [
            "crear tarea",
            "añadir tarea",
            "nueva tarea",
            "programar un seguimiento",
            "recuérdame",
            "pendiente para un contacto",
            "asignar una tarea"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 409,
            "code": "crm_task_create_conflict",
            "meaning": "The `uuid` you sent already belongs to a task. If you are retrying a request that may have succeeded, read it with `get_task` instead of creating it again; otherwise send a different `uuid` or leave it out."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_value",
            "meaning": "A value is not valid: `title` blank or longer than 200 characters, or `priority` / `type` outside the allowed values. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_due",
            "meaning": "`due_at` is not an ISO 8601 date and time with a time zone or offset."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_reminder",
            "meaning": "`reminder_offset_minutes` is not a whole number of minutes, or is negative."
          },
          {
            "status": 422,
            "code": "crm_task_reminder_requires_assignee_and_due",
            "meaning": "You asked for a reminder on a task that has no assignee or no due date. Set both, or send `reminder_offset_minutes: null`."
          },
          {
            "status": 422,
            "code": "crm_task_assignee_unavailable",
            "meaning": "`assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`."
          },
          {
            "status": 422,
            "code": "crm_task_description_too_long",
            "meaning": "`description_html` exceeds 10,000 visible characters or 60,000 bytes."
          },
          {
            "status": 422,
            "code": "crm_task_related_record_not_found",
            "meaning": "A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist or the user cannot see it. Nothing was saved. Read `violations[].propertyPath` for the list that failed."
          }
        ]
      }
    },
    "/tasks/{uuid}": {
      "get": {
        "operationId": "get_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a task",
        "description": "Returns one task with its description, status, due date, reminder, person responsible, who created and completed it, the records it is linked to and its current `version`.\n\n**When to use:** To read the current state of a task you already identified, for example before changing it or to know who is responsible and whether it is overdue.\n\n**When not to use:** To find tasks by person, record or date, use `list_tasks`. To read the notes on a contact, company or opportunity, use `list_notes`.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.read` capability. A task linked to contacts or companies is only visible to users who also have `crm.contacts_companies.read`, and a task linked to an opportunity only to users who can see its pipeline; a task the user cannot fully see is treated as if it did not exist.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "task details",
            "read task",
            "task status",
            "who is responsible for the task",
            "task due date"
          ],
          "es": [
            "detalle de la tarea",
            "ver tarea",
            "estado de la tarea",
            "quién es el responsable de la tarea",
            "vencimiento de la tarea"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          }
        ]
      },
      "put": {
        "operationId": "update_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_version_conflict`: You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_task_completed_read_only`: The task is completed and cannot be edited. Reopen it first with `reopen_task`.\n\n`crm_task_invalid_value`: A value is not valid: `title` blank or longer than 200 characters, or `priority` / `type` outside the allowed values. Read `violations[].propertyPath`.\n\n`crm_task_invalid_due`: `due_at` is not an ISO 8601 date and time with a time zone or offset.\n\n`crm_task_invalid_reminder`: `reminder_offset_minutes` is not a whole number of minutes, or is negative.\n\n`crm_task_reminder_requires_assignee_and_due`: You asked for a reminder on a task that has no assignee or no due date. Set both, or send `reminder_offset_minutes: null`.\n\n`crm_task_assignee_unavailable`: `assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`.\n\n`crm_task_description_too_long`: `description_html` exceeds 10,000 visible characters or 60,000 bytes.\n\n`crm_task_related_record_not_found`: A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist or the user cannot see it. Nothing was saved. Read `violations[].propertyPath` for the list that failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Update a task",
        "description": "Changes an open task: title, description, priority, type, person responsible, due date, reminder or linked records. Fields you leave out keep their value; `null` clears an optional one. The lists of linked records are replaced as a whole.\n\n**When to use:** To correct or reschedule a task, change its priority, or add or remove the records it is linked to. Send only what changes.\n\n**When not to use:** To mark the task as done, use `complete_task`; to bring a completed task back, `reopen_task` (a completed task cannot be edited). If you only want to change who is responsible, `assign_task` says it more clearly. To remove the task, use `delete_task`.\n\n**Side effects:** All the fields of the request are applied together: if one is rejected, nothing is saved. Editing does not add an entry to the activity of the linked records (only creating, completing and reopening do). Removing `assignee` or `due_at` also removes the reminder. If the assignee changes to another user, they get a notification and the previous assignee's pending notices are withdrawn; if the reminder moves, the pending reminder is replaced. If a reminder is set, the assignee gets a notification at `reminder_at`. Nothing is sent to the contacts and no automation or webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          }
        ],
        "requestBody": {
          "description": "The updated Task resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit task",
            "update task",
            "reschedule task",
            "change task due date",
            "change task priority",
            "link task to contact",
            "set task reminder"
          ],
          "es": [
            "editar tarea",
            "modificar tarea",
            "actualizar los datos de una tarea",
            "cambiar la fecha de la tarea",
            "aplazar tarea",
            "cambiar prioridad de la tarea",
            "vincular tarea a un contacto",
            "poner recordatorio a la tarea"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          },
          {
            "status": 409,
            "code": "crm_task_version_conflict",
            "meaning": "You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state."
          },
          {
            "status": 422,
            "code": "crm_task_completed_read_only",
            "meaning": "The task is completed and cannot be edited. Reopen it first with `reopen_task`."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_value",
            "meaning": "A value is not valid: `title` blank or longer than 200 characters, or `priority` / `type` outside the allowed values. Read `violations[].propertyPath`."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_due",
            "meaning": "`due_at` is not an ISO 8601 date and time with a time zone or offset."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_reminder",
            "meaning": "`reminder_offset_minutes` is not a whole number of minutes, or is negative."
          },
          {
            "status": 422,
            "code": "crm_task_reminder_requires_assignee_and_due",
            "meaning": "You asked for a reminder on a task that has no assignee or no due date. Set both, or send `reminder_offset_minutes: null`."
          },
          {
            "status": 422,
            "code": "crm_task_assignee_unavailable",
            "meaning": "`assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`."
          },
          {
            "status": 422,
            "code": "crm_task_description_too_long",
            "meaning": "`description_html` exceeds 10,000 visible characters or 60,000 bytes."
          },
          {
            "status": 422,
            "code": "crm_task_related_record_not_found",
            "meaning": "A contact, company or opportunity in `contacts`, `companies` or `opportunities` does not exist or the user cannot see it. Nothing was saved. Read `violations[].propertyPath` for the list that failed."
          }
        ]
      },
      "delete": {
        "operationId": "delete_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "204": {
            "description": "Task resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`crm_task_delete_forbidden`: The user is neither the creator nor the assignee of the task, nor an account admin with a token that reaches account administration. Ask one of them, or an admin, to delete it.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_version_conflict`: You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_task_invalid_value`: `expected_version` is not a positive integer. Send the `version` of the task or leave it out.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a task",
        "description": "Permanently deletes a task, open or completed. There is no archive and no undo.\n\n**When to use:** Only when the user explicitly asks to delete this task, for example one created by mistake or a duplicate.\n\n**When not to use:** If the work is finished, use `complete_task`: the task stays in the history of its records. To fix a title, date or assignee, use `update_task`.\n\n**Side effects:** The task disappears from its records and from every list; the `task.created`, `task.completed` and `task.reopened` entries already in their activity stay, and no deletion entry is added. The assignee's pending assignment and reminder notices are withdrawn. No webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities). Only the creator of the task, its assignee or an account admin can delete it; an admin needs a token that reaches account administration (an API key, or OAuth with the `admin` scope) to delete tasks of other people.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          {
            "name": "expected_version",
            "in": "query",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 3
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete task",
            "remove task",
            "discard task",
            "cancel task"
          ],
          "es": [
            "borrar tarea",
            "eliminar tarea",
            "quitar tarea",
            "cancelar tarea"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 403,
            "code": "crm_task_delete_forbidden",
            "meaning": "The user is neither the creator nor the assignee of the task, nor an account admin with a token that reaches account administration. Ask one of them, or an admin, to delete it."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          },
          {
            "status": 409,
            "code": "crm_task_version_conflict",
            "meaning": "You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state."
          },
          {
            "status": 422,
            "code": "crm_task_invalid_value",
            "meaning": "`expected_version` is not a positive integer. Send the `version` of the task or leave it out."
          }
        ]
      }
    },
    "/tasks/{uuid}/actions/assign": {
      "put": {
        "operationId": "assign_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_version_conflict`: You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`crm_task_completed_read_only`: The task is completed and cannot be edited. Reopen it first with `reopen_task`.\n\n`crm_task_assignee_unavailable`: `assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Assign a task to a user",
        "description": "Sets who is responsible for an open task, or leaves it unassigned. The new assignee is notified.\n\n**When to use:** When the user says to give a task to someone (\"assign this to Laura\") or to take it off a person. Nothing else on the task changes.\n\n**When not to use:** To change other fields as well in one call, use `update_task`, which also accepts `assignee`. To find who can receive tasks, use `list_task_assignees`. To assign many tasks at once there is no endpoint yet.\n\n**Side effects:** The assignee changes and the previous assignee's pending assignment and reminder notices are withdrawn. The new assignee gets a notification (in the app and by email, according to their preferences), unless they are the user who owns the token. If the task has a reminder, it moves to the new assignee; unassigning removes the reminder. Assigning does not add an entry to the activity of the linked records, and it does not fire any automation or webhook.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          }
        ],
        "requestBody": {
          "description": "The updated Task resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskAssignInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskAssignInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "assign task",
            "reassign task",
            "give task to",
            "unassign task",
            "change task owner",
            "task responsible"
          ],
          "es": [
            "asignar tarea",
            "reasignar tarea",
            "pasar la tarea a",
            "quitar responsable de la tarea",
            "cambiar el responsable de la tarea",
            "responsable de la tarea"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          },
          {
            "status": 409,
            "code": "crm_task_version_conflict",
            "meaning": "You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state."
          },
          {
            "status": 422,
            "code": "crm_task_completed_read_only",
            "meaning": "The task is completed and cannot be edited. Reopen it first with `reopen_task`."
          },
          {
            "status": 422,
            "code": "crm_task_assignee_unavailable",
            "meaning": "`assignee` is not an active user of the account with a CRM seat, or that user cannot see one of the records the task is linked to. Find valid people with `list_task_assignees`."
          }
        ]
      }
    },
    "/tasks/{uuid}/actions/complete": {
      "put": {
        "operationId": "complete_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_version_conflict`: You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Complete a task",
        "description": "Marks a task as done: it becomes `completed`, with the time and the person who completed it. Its reminder is removed.\n\n**When to use:** When the user says a task is done. It is safe to repeat: completing an already completed task changes nothing.\n\n**When not to use:** To bring a completed task back to pending, use `reopen_task`. To remove a task that should not exist, use `delete_task`. Completing a `call` or `email` task does not make the call or send the email.\n\n**Side effects:** A `task.completed` entry appears in the activity of each record the task is linked to, done by the person who owns the token (marked «via Maia» when Maia made the request). Its due date stays, but a completed task is no longer overdue. The reminder is removed and the assignee's pending assignment and reminder notices are withdrawn. Completing a task that is already completed adds nothing. Nothing is sent and no automation or webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          }
        ],
        "requestBody": {
          "description": "The updated Task resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskVersionInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskVersionInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "complete task",
            "mark task as done",
            "close task",
            "finish task",
            "tick off task"
          ],
          "es": [
            "completar tarea",
            "marcar tarea como hecha",
            "cerrar tarea",
            "terminar tarea",
            "tarea hecha"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          },
          {
            "status": 409,
            "code": "crm_task_version_conflict",
            "meaning": "You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state."
          }
        ]
      }
    },
    "/tasks/{uuid}/actions/reopen": {
      "put": {
        "operationId": "reopen_task",
        "tags": [
          "Tasks"
        ],
        "responses": {
          "200": {
            "description": "Task resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Task.jsonld-task.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task-task.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "`crm_capability_required`: The account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: The user's role lacks the capability listed under Permissions. Use credentials of a user who has it.\n\n`crm_seat_required`: The user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`unknown_task`: The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`crm_task_version_conflict`: You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Reopen a completed task",
        "description": "Turns a completed task back into an open one. It keeps its due date and the rest of its data, but the reminder it had before being completed is not restored.\n\n**When to use:** When a task was completed by mistake or the work has to be done again, and before editing a completed task. It is safe to repeat: reopening an open task changes nothing.\n\n**When not to use:** To mark a pending task as done, use `complete_task`. To create a new task for new work, use `create_task`.\n\n**Side effects:** A `task.reopened` entry appears in the activity of each record the task is linked to, done by the person who owns the token (marked «via Maia» when Maia made the request); the earlier completion stays in the history. If the due date has passed the task is overdue again. To get a reminder again, set it with `update_task`. Nothing is sent and no automation or webhook fires.\n\n**Permissions:** Requires a CRM seat and the `crm.tasks_notes.write` capability. The user must also be able to see every contact, company and opportunity the task is linked to (`crm.contacts_companies.read` for contacts and companies, access to the pipeline for opportunities).",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the task. Get it from `list_tasks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          }
        ],
        "requestBody": {
          "description": "The updated Task resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskReopenInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task.TaskReopenInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "reopen task",
            "undo task completion",
            "task not done",
            "re-open completed task"
          ],
          "es": [
            "reabrir tarea",
            "deshacer tarea completada",
            "tarea no terminada",
            "volver a abrir tarea"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "The account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "The user's role lacks the capability listed under Permissions. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "The user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "unknown_task",
            "meaning": "The task does not exist in this account, or it is linked to a record the user cannot see. Find its UUID with `list_tasks`."
          },
          {
            "status": 409,
            "code": "crm_task_version_conflict",
            "meaning": "You sent `expected_version` and the task has changed since you read it. Nothing was saved. Read the task again with `get_task` and decide whether to repeat the change; leave `expected_version` out to apply it over the current state."
          }
        ]
      }
    },
    "/templates": {
      "get": {
        "operationId": "list_templates",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Template collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Template.jsonld-template.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Template-template.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List email templates",
        "description": "Returns the email templates of the account, newest first, with their title, type and thumbnail but not their HTML.\n\n**When to use:** To find an existing design to reuse in a campaign or automation, or to look up a template by its title.\n\n**When not to use:** To read a template together with its HTML use `get_template`; for ready-made designs you can copy use `list_master_templates` or `list_themes`.\n\n**Filters:** `title`: partial match on the title. `type`: exact type, `be_editor` (visual editor) or `code_own` (custom HTML). Sort with `order[created_at]`, `order[updated_at]` or `order[title]` (`asc`/`desc`).\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only templates whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "Newsletter"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Return only templates of this type: `be_editor` (visual editor) or `code_own` (custom HTML).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "be_editor"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "email designs",
            "saved templates",
            "layouts",
            "newsletter templates"
          ],
          "es": [
            "plantillas",
            "diseños de email",
            "plantillas guardadas",
            "maquetas"
          ]
        }
      },
      "post": {
        "operationId": "create_template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "201": {
            "description": "Template resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template-template.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The visual-editor JSON in `simple_json_code` could not be converted to a design. The `detail` says why; compare it with `get_template_schema` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty, or the visual-editor JSON in `simple_json_code` does not follow the schema (see `get_template_schema`). Read `violations[].propertyPath` and `message`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a template",
        "description": "Saves a new email template. Send the design either as HTML in `content` (a custom-HTML template, `code_own`) or as `simple_json_code` (a visual-editor template, `be_editor`, whose HTML is generated for you).\n\nPersonalize the content with the merge tags of the audience (`list_audience_merge_tags`). Email templates must include the unsubscribe link `{{ link.campaign.unsuscribe }}`; other useful tags are `{{ link.list.update_profile }}`, `{{ text.list.suscriber.email }}` and `{{ text.list.company.name }}`.\n\n**When to use:** To store a design you wrote or generated so that campaigns and automations can use it. The result is referenced by its IRI (`/templates/{uuid}`).\n\n**When not to use:** To copy a ready-made design use `create_template_from_master` or `create_template_from_theme`; to save a design made in a Beefree session use `create_template_from_bee_session`.\n\n**Side effects:** A thumbnail image of the template is generated in the background.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Template resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Template.jsonld-template.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Template-template.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "new email design",
            "upload html",
            "save template",
            "html newsletter"
          ],
          "es": [
            "crear plantilla",
            "nueva plantilla",
            "subir html",
            "guardar diseño"
          ]
        }
      }
    },
    "/templates/actions/from_bee_session": {
      "post": {
        "operationId": "create_template_from_bee_session",
        "tags": [
          "Templates"
        ],
        "responses": {
          "201": {
            "description": "Template resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template-template.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The Beefree session could not be read (wrong or expired `bee_template_id`), its design could not be converted, or `em_template_id` is not a visual-editor template. The `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template given in `em_template_id` does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A field failed validation. Read `violations[].propertyPath` to see which one, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Save a Beefree session as a template",
        "description": "Saves the current design of a Beefree visual-editor session as a template. The server fetches the design from Beefree and derives its HTML and simple JSON. With `em_template_id` it updates that template instead of creating a new one.\n\n**When to use:** After designing an email in a Beefree session, to keep the result. Use the returned IRI (`/templates/{uuid}`) as the template of a campaign or automation step.\n\n**When not to use:** To create a template from HTML or from simple JSON that you already have, use `create_template`.\n\n**Side effects:** A thumbnail image is generated in the background. If you update an existing template, campaigns that use it and have not been sent yet (draft, ready or scheduled) get the new design.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Template resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Template.CreateTemplateFromBeeSessionInput.jsonld-template.write_from_bee_session"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Template.CreateTemplateFromBeeSessionInput-template.write_from_bee_session"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "beefree",
            "visual editor",
            "bee session",
            "save design"
          ],
          "es": [
            "guardar diseño de beefree",
            "editor visual",
            "sesión de beefree",
            "guardar plantilla de maia"
          ]
        }
      }
    },
    "/templates/{uuid}": {
      "get": {
        "operationId": "get_template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Template resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.jsonld-template.read_template.read.detail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template-template.read_template.read.detail"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a template",
        "description": "Returns one template with its HTML and, for visual-editor templates, its simple JSON.\n\n**When to use:** To read the design of a template before editing it or sending a test of it.\n\n**When not to use:** To find templates by title use `list_templates`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the template. Get it with `list_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "template content",
            "email html",
            "design details"
          ],
          "es": [
            "ver plantilla",
            "contenido de la plantilla",
            "html de la plantilla"
          ]
        }
      },
      "put": {
        "operationId": "update_template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Template resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template-template.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The visual-editor JSON in `simple_json_code` could not be converted to a design. The `detail` says why; compare it with `get_template_schema` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty, `content` was sent to a visual-editor template, `simple_json_code` was sent to a custom-HTML template, or the JSON does not follow the schema. Read `violations[].propertyPath` and `message`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a template",
        "description": "Changes the title and design of a template. A custom-HTML template (`code_own`) takes `content`; a visual-editor template (`be_editor`) takes `simple_json_code`.\n\n**When to use:** To fix or redesign a template. Campaigns that use it and have not been sent yet (draft, ready or scheduled) get the new design; sent campaigns keep theirs.\n\n**When not to use:** To change a visual-editor template from a Beefree session use `create_template_from_bee_session` with `em_template_id`. A template cannot change type: create a new one instead.\n\n**Side effects:** Campaigns using the template that are still draft, ready or scheduled are refreshed with the new design. A new version is saved in the history of a visual-editor template. The thumbnail is regenerated in the background.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the template. Get it with `list_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          }
        ],
        "requestBody": {
          "description": "The updated Template resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Template.jsonld-template.write.update_template"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Template-template.write.update_template"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "edit template",
            "change design",
            "modify html",
            "redesign"
          ],
          "es": [
            "editar plantilla",
            "modificar plantilla",
            "cambiar diseño",
            "actualizar html"
          ]
        }
      },
      "delete": {
        "operationId": "delete_template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "204": {
            "description": "Template resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Another resource still references the template and it cannot be deleted. Remove that reference first.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a template",
        "description": "Permanently deletes a template with its saved editor versions. Campaigns that used it keep their own copy of the HTML.\n\n**When to use:** To remove a design you no longer need.\n\n**Side effects:** The thumbnail of the template and its saved editor versions are deleted. Campaigns that used the template stay as they are, without a link to it.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.delete` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the template. Get it with `list_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove template",
            "erase design",
            "discard template"
          ],
          "es": [
            "eliminar plantilla",
            "borrar plantilla",
            "quitar diseño"
          ]
        }
      }
    },
    "/templates/{uuid}/actions/regenerate_simple_json": {
      "post": {
        "operationId": "regenerate_template_simple_json",
        "tags": [
          "Templates"
        ],
        "responses": {
          "201": {
            "description": "Template resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template-template.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The template is a custom-HTML template, has no design to convert, or the conversion failed. The `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Regenerate template simple JSON",
        "description": "Rebuilds the `simple_json_code` of a visual-editor (`be_editor`) template from its current full design.\n\n**When to use:** When a template was changed in the visual editor in the panel and its `simple_json_code` is out of date, before editing it through the API with `update_template`.\n\n**When not to use:** It does not work on custom-HTML (`code_own`) templates.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the template. Get it with `list_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "resync json",
            "refresh simple json",
            "convert design to json"
          ],
          "es": [
            "regenerar json",
            "sincronizar json simple",
            "convertir plantilla a json"
          ]
        }
      }
    },
    "/templates/{uuid}/actions/send_test": {
      "put": {
        "operationId": "template_send_test",
        "tags": [
          "Templates"
        ],
        "responses": {
          "204": {
            "description": "Template resource updated",
            "content": {
              "application/ld+json": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              }
            },
            "links": {}
          },
          "400": {
            "description": "The template has no content, sending is disabled for the account, or the daily limit of test emails was reached. The `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The template does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`emails` is empty, has more than 5 addresses or contains an invalid address. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Send a test email of a template",
        "description": "Sends the template as a test email to up to 5 addresses. Merge tags are not replaced by subscriber data, so they appear as placeholders.\n\n**When to use:** To see how a template looks in a real inbox before using it in a campaign.\n\n**When not to use:** To test a campaign (with its subject and sender) use `campaign_send_test`.\n\n**Side effects:** Sends a real email to each address. It counts toward the daily limit of test emails of the plan.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the template. Get it with `list_templates`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          }
        ],
        "requestBody": {
          "description": "The updated Template resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Template.TemplateSendTestInput.jsonld-template.write_send_test"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Template.TemplateSendTestInput-template.write_send_test"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "preview email",
            "test send",
            "proof email",
            "seed test"
          ],
          "es": [
            "enviar prueba",
            "email de prueba",
            "probar plantilla",
            "vista previa en bandeja"
          ]
        }
      }
    },
    "/templates_schema": {
      "get": {
        "operationId": "get_template_schema",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "TemplateSchema resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema.jsonld"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get the template design schema",
        "description": "Returns the JSON schema of `simple_json_code`, with an official valid example, the available module types, the layout rules and the most common mistakes.\n\n**When to use:** Before creating or updating a visual-editor template with `simple_json_code`, to build a design the editor accepts.\n\n**When not to use:** To read an existing template use `get_template`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "json schema",
            "design format",
            "editor schema",
            "module types"
          ],
          "es": [
            "esquema json",
            "formato del diseño",
            "esquema del editor",
            "tipos de módulo"
          ]
        }
      }
    },
    "/theme_industries": {
      "get": {
        "operationId": "list_theme_industries",
        "tags": [
          "Themes"
        ],
        "responses": {
          "200": {
            "description": "ThemeIndustry collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ThemeIndustry.jsonld-theme_industry.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ThemeIndustry-theme_industry.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List theme industries",
        "description": "Returns the industries the ready-made themes are classified under. Their IDs are the values of the `industries` filter of `list_themes`.\n\n**When to use:** To find the industry ID to filter themes by, for example retail or restaurants.\n\n**When not to use:** To list the themes themselves use `list_themes`; to classify them by purpose use `list_theme_types`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "sectors",
            "business categories",
            "verticals",
            "theme categories"
          ],
          "es": [
            "sectores de temas",
            "industrias",
            "categorías de plantillas",
            "sectores"
          ]
        }
      }
    },
    "/theme_types": {
      "get": {
        "operationId": "list_theme_types",
        "tags": [
          "Themes"
        ],
        "responses": {
          "200": {
            "description": "ThemeType collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ThemeType.jsonld-theme_type.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ThemeType-theme_type.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List theme types",
        "description": "Returns the types the ready-made themes are classified under (the kind of email design). Their IDs are the values of the `types` filter of `list_themes`.\n\n**When to use:** To find the type ID to filter themes by.\n\n**When not to use:** To list the themes themselves use `list_themes`; to classify them by sector use `list_theme_industries`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "theme categories",
            "email kinds",
            "design types",
            "purposes"
          ],
          "es": [
            "tipos de tema",
            "tipos de plantilla",
            "categorías de diseño",
            "finalidad"
          ]
        }
      }
    },
    "/themes": {
      "get": {
        "operationId": "list_themes",
        "tags": [
          "Themes"
        ],
        "responses": {
          "200": {
            "description": "Theme collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Theme.jsonld-theme.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Theme-theme.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List ready-made themes",
        "description": "Returns the ready-made email designs available to the account (themes), newest first, each with its description, thumbnail, types and industries and whether it needs a paid plan (without the HTML; `get_theme` returns it).\n\n**When to use:** To browse the designs Easymailing offers when a customer wants to start from a professional layout. Narrow the list with the filters and copy one with `create_template_from_theme`.\n\n**When not to use:** For the account's own templates use `list_templates`; for the account's own base designs use `list_master_templates`.\n\n**Filters:** `title`: partial match on the theme title. `types`: theme type IDs from `list_theme_types`, comma-separated. `industries`: industry IDs from `list_theme_industries`, comma-separated. `requires_pro`: `true` for themes that need a paid plan, `false` for the rest. `is_new`: `true` for themes created in the last 15 days. Sort with `order[created_at]` or `order[title]` (`asc`/`desc`).\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "title",
            "in": "query",
            "description": "Return only themes whose title contains this text.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "newsletter"
          },
          {
            "name": "types",
            "in": "query",
            "description": "Return only themes of these types: IDs from `list_theme_types`, comma-separated.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "allowReserved": true,
            "example": "1,2"
          },
          {
            "name": "industries",
            "in": "query",
            "description": "Return only themes of these industries: IDs from `list_theme_industries`, comma-separated.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true,
            "allowReserved": true,
            "example": "1,3"
          },
          {
            "name": "requires_pro",
            "in": "query",
            "description": "`true` returns only themes that need a paid plan, `false` only the free ones.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": false
          },
          {
            "name": "is_new",
            "in": "query",
            "description": "`true` returns only themes created in the last 15 days.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "order[created_at]",
            "in": "query",
            "description": "Sort by creation date: `asc` or `desc`. Newest first by default.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "desc"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "starter designs",
            "predefined templates",
            "gallery",
            "email layouts"
          ],
          "es": [
            "temas",
            "plantillas prediseñadas",
            "galería de diseños",
            "diseños listos"
          ]
        }
      }
    },
    "/themes/{uuid}": {
      "get": {
        "operationId": "get_theme",
        "tags": [
          "Themes"
        ],
        "responses": {
          "200": {
            "description": "Theme resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme.jsonld-theme.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme-theme.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The theme does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a theme",
        "description": "Returns one ready-made theme with its description, thumbnail, types, industries, whether it needs a paid plan and its HTML.\n\n**When to use:** To look at a theme in detail before copying it with `create_template_from_theme`.\n\n**When not to use:** To browse themes use `list_themes`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the theme. Get it with `list_themes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c3e9a7d1-2f54-4b86-8d10-a9f6e3b72c58"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "theme details",
            "design preview",
            "layout details"
          ],
          "es": [
            "ver tema",
            "detalle de la plantilla prediseñada",
            "vista previa del diseño"
          ]
        }
      }
    },
    "/themes/{uuid}/actions/create_template": {
      "post": {
        "operationId": "create_template_from_theme",
        "tags": [
          "Themes"
        ],
        "responses": {
          "201": {
            "description": "Theme resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme.TemplateResource.jsonld-template.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme.TemplateResource-template.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The theme needs a paid plan and the account is on a free plan or trial. Choose a theme with `requires_pro` false, or upgrade the plan.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The theme, or it is not available to this account does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The title is empty or longer than 255 characters. Fix `title` and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a template from a theme",
        "description": "Copies a ready-made theme into a new template of the account with the title you give. The copy is independent: you can edit it freely.\n\n**When to use:** To start a new email from a professional design. Then adapt it with `update_template` or use it in a campaign.\n\n**When not to use:** To start from one of the account's own base designs use `create_template_from_master`.\n\n**Permissions:** Requires the author role or higher, or the `marketing.templates.write` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the theme. Get it with `list_themes`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c3e9a7d1-2f54-4b86-8d10-a9f6e3b72c58"
          }
        ],
        "requestBody": {
          "description": "The new Theme resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Theme.CreateTemplateFromThemeInput.jsonld-theme.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Theme.CreateTemplateFromThemeInput-theme.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "use theme",
            "copy theme",
            "apply design",
            "start from theme"
          ],
          "es": [
            "crear plantilla desde tema",
            "usar plantilla prediseñada",
            "copiar tema",
            "empezar con un diseño"
          ]
        }
      }
    },
    "/account_members": {
      "get": {
        "operationId": "list_account_members",
        "tags": [
          "Users and teams"
        ],
        "responses": {
          "200": {
            "description": "AccountMember collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AccountMember.jsonld-account_member.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountMember-account_member.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token has neither the `account.users.read` nor the `automations.work` capability, or it sent `team` with only `automations.work` (who is in each team needs `account.users.read` or `account.teams.read`). Ask an administrator, or use a key or token that has one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`status` is not one of the documented values or `team` is not a UUID. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the users of the account",
        "description": "Lists the people who sign in to the account, active and deactivated, by name, with the `uuid` that every other operation uses for a person.\n\n**When to use:** To find the `uuid` of a person by name or email before writing it in a workflow (`create_workflow`, `update_workflow`): the approver `{\"type\": \"user\", \"uuid\": …}` of `human-review` and `ai-agent`, the recipients `{\"user\": …}` and the `fallbackRecipient` of `internal-notification-send`, a person in the field rows of `record-update`, `record-find-or-create` and `task-create` (the owner or the assignee, or `{\"kind\": \"user\", \"id\": …}` in a round robin `rotation`), and the `user` values of filters (`contact.owner` and `company.owner` in `list_contact_filter_fields` and `list_company_filter_fields`, `ownerId` in `list_opportunity_filter_fields`, `assignee`, `author` and `contact.owner` in `list_workflow_record_filter_fields`). It is the same `uuid` as `owner.uuid` of contacts, companies and opportunities, `assignee.uuid` of tasks and the responsible of a workflow, so it also names who those are. With `account.users.read` or `account.teams.read`, `team` lists the people of one team of `list_account_teams`; with only `automations.work`, who is in each team is not shown, as in Customer App (`teams` is `null` and `team` a 403).\n\n**When not to use:** These are not the members of an audience (subscribers): for those use `list_audience_members`. To assign a task, the people who can receive one are `list_task_assignees` (a CRM seat and access to tasks). A workflow only takes an `active` person where it picks one: an `inactive` one is listed to name what still points to them, and choosing them is a `resource_unavailable` issue.\n\n**Filters:** All matching users come in one response, by name; there is no pagination.\n- `search`: users whose name or email contains the text, ignoring case.\n- `status`: only `active` or only `inactive` users.\n- `team`: only the users of that team (`uuid` of `list_account_teams`). Needs `account.users.read` or `account.teams.read`.\n\n**Permissions:** Requires any of the `account.users.read` or `automations.work` capabilities.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Text to look for in the name or the email, ignoring case.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "laura"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only the users with this status.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/MembershipStatus"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "active"
          },
          {
            "name": "team",
            "in": "query",
            "description": "`uuid` of a team of `list_account_teams`: only its users. Needs `account.users.read` or `account.teams.read`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "5d2c8a41-7b3e-4f69-9a10-2e8c4b6d7f31"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "users of the account",
            "team members",
            "who works in the account",
            "member uuid for a workflow",
            "approver of a workflow",
            "owner uuid"
          ],
          "es": [
            "usuarios de la cuenta",
            "miembros del equipo",
            "quién trabaja en la cuenta",
            "uuid de un miembro para un flujo",
            "aprobador de un flujo",
            "uuid del propietario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token has neither the `account.users.read` nor the `automations.work` capability, or it sent `team` with only `automations.work` (who is in each team needs `account.users.read` or `account.teams.read`). Ask an administrator, or use a key or token that has one."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`status` is not one of the documented values or `team` is not a UUID. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/account_members/{uuid}": {
      "get": {
        "operationId": "get_account_member",
        "tags": [
          "Users and teams"
        ],
        "responses": {
          "200": {
            "description": "AccountMember resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountMember.jsonld-account_member.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountMember-account_member.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token has neither the `account.users.read` nor the `automations.work` capability. Ask an administrator, or use a key or token that has one; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: There is no user with this `uuid` in the account: it was removed, it belongs to another account or it is not a UUID. Look it up with `list_account_members`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a user of the account",
        "description": "Returns one person who signs in to the account, active or deactivated, by the `uuid` of their membership.\n\n**When to use:** To name a person whose `uuid` you already have: the approver or a recipient of a workflow step, the owner of a record, the assignee of a task, or the `user` value of a filter; or to check that they are still `active` before choosing them in a workflow.\n\n**When not to use:** To find a person by name or email, use `list_account_members` with `search`. For a member of an audience (a subscriber), use `get_audience_member`.\n\n**Permissions:** Requires any of the `account.users.read` or `automations.work` capabilities.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "`uuid` of the user, from `list_account_members` or from any operation that names a person.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "who is this user",
            "user by uuid",
            "is this member active"
          ],
          "es": [
            "quién es este usuario",
            "usuario por uuid",
            "está activo este miembro"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token has neither the `account.users.read` nor the `automations.work` capability. Ask an administrator, or use a key or token that has one; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "There is no user with this `uuid` in the account: it was removed, it belongs to another account or it is not a UUID. Look it up with `list_account_members`."
          }
        ]
      }
    },
    "/account_teams": {
      "get": {
        "operationId": "list_account_teams",
        "tags": [
          "Users and teams"
        ],
        "responses": {
          "200": {
            "description": "AccountTeam collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AccountTeam.jsonld-account_team.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountTeam-account_team.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token has neither the `account.teams.read` nor the `automations.work` capability. Ask an administrator, or use a key or token that has one; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the teams of the account",
        "description": "Lists the teams the users of the account are grouped in, by name, with how many active users each one has.\n\n**When to use:** To find the `uuid` of a team before writing it in a workflow (`create_workflow`, `update_workflow`): the approver `{\"type\": \"team\", \"uuid\": …}` of `human-review` and `ai-agent`, the recipients `{\"team\": …}` of `internal-notification-send` and `{\"kind\": \"team\", \"id\": …}` in a round robin `rotation` of the field rows. To see who is in a team, call `list_account_members` with `team` (it needs `account.users.read` or `account.teams.read`; with only `automations.work` a team gives only its `member_count`, as in the workflow editor).\n\n**When not to use:** For one person, use `list_account_members`. A team with `member_count` 0 has nobody to approve, receive or take a turn.\n\n**Filters:** No filters. All the teams come in one response; there is no pagination.\n\n**Permissions:** Requires any of the `account.teams.read` or `automations.work` capabilities.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "teams of the account",
            "team uuid for a workflow",
            "sales team",
            "round robin team"
          ],
          "es": [
            "equipos de la cuenta",
            "uuid de un equipo para un flujo",
            "equipo de ventas",
            "equipo para reparto por turnos"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token has neither the `account.teams.read` nor the `automations.work` capability. Ask an administrator, or use a key or token that has one; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/webhooks": {
      "get": {
        "operationId": "list_webhooks",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Webhook collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Webhook.jsonld-webhook.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Webhook-webhook.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List account webhooks",
        "description": "Returns the webhooks of the account, newest first, with the scope, the audience (null for `crm` webhooks), the events and the URL each one notifies.\n\n**When to use:** To see which integrations already receive events from Easymailing, or to find the UUID of a webhook whose deliveries you want to inspect.\n\n**When not to use:** To see what was sent by a webhook use `list_webhook_events` or `list_webhook_requests`.\n\n**Filters:** `audience`: UUID of an audience; returns only its `marketing` webhooks (`crm` webhooks have no audience and never match). Sort with `order[created_at]` or `order[updated_at]` (`asc`/`desc`).\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "audience",
            "in": "query",
            "description": "Return only the `marketing` webhooks of this audience UUID.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "callbacks",
            "http notifications",
            "event subscriptions",
            "integrations"
          ],
          "es": [
            "webhooks",
            "notificaciones",
            "avisos a mi servidor",
            "suscripciones a eventos"
          ]
        }
      },
      "post": {
        "operationId": "create_webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "201": {
            "description": "Webhook resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook.jsonld-webhook.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook-webhook.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing, an event type is not valid or does not belong to the scope, or `audience` is missing (`marketing`) or sent (`crm`). Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Create a webhook",
        "description": "Registers a URL of yours to be called whenever one of the chosen events happens in an audience (`marketing` scope) or in the CRM of the account (`crm` scope). Each delivery is signed with the secret you give.\n\n**Scope:** A webhook is either `marketing` or `crm`. A `marketing` webhook receives the events of one audience (members, campaigns, automations and SMS) and needs `audience`. A `crm` webhook receives the events of contacts, companies and opportunities of the whole account and has no `audience`. The two kinds of events are never mixed in one webhook, and `scope` cannot change after the webhook is created.\n\n**When to use:** To keep another system in sync with an audience, for example to learn when someone subscribes, unsubscribes or opens a campaign; or with the CRM, to learn when a contact, company or opportunity is created, updated or deleted.\n\n**When not to use:** To change an existing webhook use `update_webhook`.\n\n**Side effects:** From now on, every matching event in the audience (or, for `crm`, in the account) is sent to the URL. A failed delivery is attempted up to 3 times in total, with growing waits between attempts.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [],
        "requestBody": {
          "description": "The new Webhook resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook.jsonld-webhook.write.create_webhook"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook-webhook.write.create_webhook"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "subscribe to events",
            "callback url",
            "event notification",
            "http push"
          ],
          "es": [
            "crear webhook",
            "nuevo webhook",
            "avisar a mi sistema",
            "recibir eventos"
          ]
        }
      }
    },
    "/webhooks/{uuid}": {
      "get": {
        "operationId": "get_webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Webhook resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook.jsonld-webhook.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook-webhook.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The webhook does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a webhook",
        "description": "Returns one webhook with its scope, URL, events, audience (null for `crm` webhooks) and whether it is active.\n\n**When to use:** To check how a webhook is configured, for example when it stopped receiving events.\n\n**When not to use:** To find webhooks use `list_webhooks`.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the webhook. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "webhook settings",
            "callback details",
            "event subscription details"
          ],
          "es": [
            "ver webhook",
            "configuración del webhook",
            "detalle del webhook"
          ]
        }
      },
      "put": {
        "operationId": "update_webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Webhook resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook.jsonld-webhook.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook-webhook.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The webhook or audience does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A required field is missing, an event type is not valid or does not belong to the scope, `audience` does not fit the scope, or `scope` was changed. Read `violations[].propertyPath`, fix it and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Update a webhook",
        "description": "Changes the title, URL, secret, events, audience or active state of a webhook. Send only the fields you want to change.\n\n**Scope:** `scope` cannot change: sending a different value fails with 422, and omitting it keeps the current one. Events must belong to the scope of the webhook, and a `crm` webhook never has `audience`.\n\n**When to use:** To point the webhook to a new URL, change which events it receives, rotate the secret, or turn it back on after it was deactivated.\n\n**When not to use:** To stop deliveries for good use `delete_webhook`.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the webhook. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          }
        ],
        "requestBody": {
          "description": "The updated Webhook resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook.jsonld-webhook.write"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Webhook-webhook.write"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "edit webhook",
            "change callback url",
            "rotate secret",
            "reactivate webhook"
          ],
          "es": [
            "editar webhook",
            "cambiar url del webhook",
            "reactivar webhook",
            "cambiar eventos"
          ]
        }
      },
      "delete": {
        "operationId": "delete_webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "204": {
            "description": "Webhook resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The webhook does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The webhook is still used by an audience and cannot be deleted. Remove that link and retry.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Delete a webhook",
        "description": "Permanently deletes a webhook; its events stop being sent. The record of past deliveries goes with it.\n\n**When to use:** When the integration is retired.\n\n**When not to use:** To pause deliveries and keep the webhook, send `update_webhook` with `active` false.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the webhook. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "remove webhook",
            "unsubscribe from events",
            "stop notifications"
          ],
          "es": [
            "eliminar webhook",
            "borrar webhook",
            "dejar de recibir eventos"
          ]
        }
      }
    },
    "/webhooks/{webhookUuid}/webhook_events": {
      "get": {
        "operationId": "list_webhook_events",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "WebhookEvent collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEvent.jsonld-webhook_event.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookEvent-webhook_event.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List webhook events",
        "description": "Returns the events recorded for one webhook, newest first. Each one has its type and the data that was sent, plus the delivery it belongs to.\n\n**When to use:** To check what happened in an audience and was (or should have been) sent to your URL.\n\n**When not to use:** For the HTTP deliveries and their responses use `list_webhook_requests`.\n\n**Filters:** `event_type`: events of this type. Sort with `order[created_at]`, `order[updated_at]` or `order[event_type]` (`asc`/`desc`).\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "webhookUuid",
            "in": "path",
            "description": "UUID of the webhook the events or requests belong to. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "event_type",
            "in": "query",
            "description": "Return only events of this type.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "member_subscribed"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "event log",
            "webhook history",
            "what was sent",
            "event payloads"
          ],
          "es": [
            "eventos del webhook",
            "historial de eventos",
            "qué se envió",
            "registro de eventos"
          ]
        }
      }
    },
    "/webhooks/{webhookUuid}/webhook_events/{uuid}": {
      "get": {
        "operationId": "get_webhook_event",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "WebhookEvent resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEvent.jsonld-webhook_event.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEvent-webhook_event.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The event does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a webhook event",
        "description": "Returns one event of a webhook with its type, its data and the delivery attempt that carried it.\n\n**When to use:** To inspect exactly what data was generated for an event.\n\n**When not to use:** To list events use `list_webhook_events`.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "webhookUuid",
            "in": "path",
            "description": "UUID of the webhook the events or requests belong to. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the event you want to read, not the UUID of the webhook. Get it with `list_webhook_events`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "b7e2c4d1-0f93-4a6e-8c15-3d9a7e5f2b08"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "event payload",
            "event details",
            "sent data"
          ],
          "es": [
            "ver evento",
            "detalle del evento",
            "datos enviados"
          ]
        }
      }
    },
    "/webhooks/{webhookUuid}/webhook_requests": {
      "get": {
        "operationId": "list_webhook_requests",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "WebhookRequest collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookRequest.jsonld-webhook_request.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookRequest-webhook_request.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List webhook deliveries",
        "description": "Returns the HTTP deliveries made for one webhook, newest first, with the body sent, the response of your server, the number of retries and whether it succeeded.\n\n**When to use:** To find out why your server did not receive or accept an event: look for unsuccessful deliveries and read the response.\n\n**When not to use:** For the events themselves use `list_webhook_events`.\n\n**Filters:** Sort with `order[created_at]`, `order[updated_at]` or `order[successful]` (`asc`/`desc`).\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "webhookUuid",
            "in": "path",
            "description": "UUID of the webhook the events or requests belong to. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          },
          {
            "name": "page",
            "in": "query",
            "description": "The collection page number",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "The number of items per page",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": true,
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 0,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delivery log",
            "failed deliveries",
            "http responses",
            "retries",
            "webhook errors"
          ],
          "es": [
            "entregas del webhook",
            "envíos fallidos",
            "respuestas del servidor",
            "reintentos",
            "errores del webhook"
          ]
        }
      }
    },
    "/webhooks/{webhookUuid}/webhook_requests/{uuid}": {
      "get": {
        "operationId": "get_webhook_request",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "WebhookRequest resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookRequest.jsonld-webhook_request.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookRequest-webhook_request.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The credential is not allowed to do this (see Permissions). Use a key or token with a higher role or the required capability.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The delivery does not exist or belongs to another account. Check the identifier.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "Get a webhook delivery",
        "description": "Returns one HTTP delivery of a webhook: the body sent, the status code and body your server answered, the retries and whether it succeeded.\n\n**When to use:** To debug a single failed delivery.\n\n**When not to use:** To list deliveries use `list_webhook_requests`.\n\n**Permissions:** Requires the manager role or higher, or the `account.integrations.read` capability.",
        "parameters": [
          {
            "name": "webhookUuid",
            "in": "path",
            "description": "UUID of the webhook the events or requests belong to. Get it with `list_webhooks`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914"
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the delivery you want to read, not the UUID of the webhook. Get it with `list_webhook_requests`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c3a8f6e2-5d14-4b97-9e0a-61f7d2c8b345"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delivery details",
            "response body",
            "status code of delivery"
          ],
          "es": [
            "ver entrega",
            "detalle del envío",
            "código de respuesta"
          ]
        }
      }
    },
    "/workflow_answer_fields": {
      "get": {
        "operationId": "list_workflow_answer_fields",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowAnswerField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowAnswerField.jsonld-workflow_answer_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowAnswerField-workflow_answer_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token cannot read subscription forms. Ask an administrator, or use a key or token that can; the response does not say which permission is missing.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: The audience does not exist in the account, or the form does not exist or belongs to another audience. Look them up with `list_audiences` and `list_audience_forms`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`audience` is missing or is not a UUID, or `form` is not a UUID. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "summary": "List the answer fields of a form",
        "description": "Lists the fields of a form that the «Only if» of a «Form submitted» trigger can filter the answers on, with their type, their operators and, for a choice, its options: the same fields the workflow engine validates with.\n\n**When to use:** Before writing `answersFilter` in `marketing-form-completed` (`create_workflow`, `update_workflow`): `{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\"}]}`, one level of conditions, where `field` is the `field` of this list, `operator` one of its `operators` and `value` `{\"value\": <fixed value>}` (`null` with `value_shape: none`); data of the workflow (`{\"ref\"}`) is not accepted. Send the `audience` and the `form` of the trigger; with «any form» (`formUuid` null), send only the `audience`: the list is then the fields every form of the audience with fields has, with the same `field` and type.\n\n**When not to use:** For the answers of a survey, the `field` is the `answer_field` of each question of `get_survey`. To read or change a form, use `get_subscription_form`. For filters on contacts, use `list_contact_filter_fields` with `usable_in=automation`.\n\n**Values:** A `text` field is compared ignoring case and the spaces at the ends: a choice (`options` not empty) is answered with the `value` of the option, several choices as their values separated by `, ` (use `contains`), and a yes/no as `yes` or `no`. A `number` field takes a number. A classic form or one not published has no fields; with «any form» they do not reduce the list, and an `answersFilter` never matches the submission of a classic form, which brings no answers.\n\n**Filters:** `audience`, required: `uuid` of the audience of the workflow. `form`: `uuid` of one of its forms (`list_audience_forms`). All the fields come in one response, in the order of the design; there is no pagination.\n\n**Permissions:** Requires the manager role or higher, or the `marketing.forms_landings.read` capability.",
        "parameters": [
          {
            "name": "audience",
            "in": "query",
            "description": "`uuid` of the audience of the workflow (`audienceUuid` of the trigger).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "9b1d4f2e-3c5a-4e6b-8d7f-0a1b2c3d4e5f"
          },
          {
            "name": "form",
            "in": "query",
            "description": "`uuid` of a form of the audience (`formUuid` of the trigger). Leave it out for «any form».",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2f7c9a1b-5d3e-4b6a-9c8d-1e2f3a4b5c6d"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "form answer fields",
            "filter form answers in a workflow",
            "form submitted only if",
            "answersFilter fields",
            "keys of the fields of a form"
          ],
          "es": [
            "campos de respuesta de un formulario",
            "filtrar respuestas de un formulario en un flujo",
            "solo si cumple de formulario enviado",
            "campos del answersFilter",
            "claves de los campos de un formulario"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token cannot read subscription forms. Ask an administrator, or use a key or token that can; the response does not say which permission is missing."
          },
          {
            "status": 404,
            "code": "not_found",
            "meaning": "The audience does not exist in the account, or the form does not exist or belongs to another audience. Look them up with `list_audiences` and `list_audience_forms`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`audience` is missing or is not a UUID, or `form` is not a UUID. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/workflow_pieces": {
      "get": {
        "operationId": "list_workflow_pieces",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowPiece collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowPiece.jsonld-workflow_piece.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPiece-workflow_piece.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List workflow pieces",
        "description": "Lists the pieces a workflow of the new automation engine can be published with: the triggers that start it and the steps, waits and containers it can run, in catalog order, each with the CRM plan it needs.\n\n**When to use:** To know what a `catalogId` in the `definition` of `get_workflow` is, which pieces exist, or why a workflow with a piece needs CRM Pro.\n\n**When not to use:** It is the same list for the whole account and says nothing about one workflow: read the workflow with `get_workflow`. A piece missing here is not offered by the editor and a workflow that has it cannot be published.\n\n**Plans:** `required_plan` is the plan the piece needs by itself. Some options of a piece can need more (for example, assigning by rotation needs CRM Pro); the app tells it when publishing.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow pieces",
            "workflow triggers",
            "workflow steps",
            "automation catalog",
            "what can a workflow do",
            "crm pro pieces"
          ],
          "es": [
            "piezas del flujo",
            "desencadenantes del flujo",
            "pasos del flujo",
            "catálogo de automatizaciones",
            "qué puede hacer un flujo",
            "piezas de crm pro"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          }
        ]
      }
    },
    "/workflow_record_filter_fields": {
      "get": {
        "operationId": "list_workflow_record_filter_fields",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowRecordFilterField collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowRecordFilterField.jsonld-workflow_record_filter_field.read"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowRecordFilterField-workflow_record_filter_field.read"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`crm_capability_required`: Only with `type` `task` or `note`: the account does not have the CRM module active. Only an account admin can activate it.\n\n`crm_permission_denied`: Only with `type` `task` or `note`: the user's role lacks `crm.tasks_notes.read`. Use credentials of a user who has it.\n\n`crm_seat_required`: Only with `type` `task` or `note`: the user has no CRM seat. Ask an account admin to assign one.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`type` is missing or is not one of the documented values. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`crm_capability_unavailable`: CRM access could not be checked right now. Nothing was changed; retry in a few seconds.\n\n`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List filter fields of tasks, notes and mailboxes",
        "description": "Lists the fields a workflow filters a task, a note or a message of a connected mailbox by, with their operators and, for fixed lists, their values: the same list the workflow engine validates and searches with.\n\n**When to use:** Before writing a filter of a workflow (`create_workflow`, `update_workflow`) on a task (the «Only if» of `task-event` and `task-due-reached`, a task search), a note (a note search) or a mailbox message (the «Only if» of `connected-mailbox-event`). The filter is `{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\"}]}` with one level of conditions: `field` is the `id` of a field, `operator` one of its `operators` and `value` a fixed value of the form its `value_kind` says, left out with `value_shape: none`. In a task or note search a value can also be data of the workflow, `{\"ref\": \"<data>\"}`; in an «Only if» only fixed values.\n\n**When not to use:** For filters on contacts, companies or opportunities, use `list_contact_filter_fields` with `usable_in=automation`, `list_company_filter_fields` or `list_opportunity_filter_fields`. To read tasks or notes, use `list_tasks` or `list_notes`.\n\n**Values:** `text` is a non-empty text, compared ignoring case; `option` one of `options`; `date` a day `YYYY-MM-DD`, compared in the time zone of the user who publishes the workflow; `user` the `uuid` of a user of the account, from `list_account_members`.\n\n**Filters:** `type`, required: `task`, `note` or `mailbox`. All the fields come in one response; there is no pagination.\n\n**Permissions:** Requires the `automations.read` capability. The task and note fields also need a CRM seat and `crm.tasks_notes.read`; the mailbox fields only `automations.read`.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "What the filter is on: `task`, `note` or `mailbox` (a message of a connected mailbox).",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "task",
                "note",
                "mailbox"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "task"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "task filter fields",
            "note filter fields",
            "mailbox filter fields",
            "filter tasks in a workflow",
            "connected mailbox only if",
            "workflow task conditions"
          ],
          "es": [
            "campos para filtrar tareas",
            "campos para filtrar notas",
            "campos del filtro de buzón",
            "filtrar tareas en un flujo",
            "solo si cumple del buzón conectado",
            "condiciones de tareas del flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "crm_capability_required",
            "meaning": "Only with `type` `task` or `note`: the account does not have the CRM module active. Only an account admin can activate it."
          },
          {
            "status": 403,
            "code": "crm_permission_denied",
            "meaning": "Only with `type` `task` or `note`: the user's role lacks `crm.tasks_notes.read`. Use credentials of a user who has it."
          },
          {
            "status": 403,
            "code": "crm_seat_required",
            "meaning": "Only with `type` `task` or `note`: the user has no CRM seat. Ask an account admin to assign one."
          },
          {
            "status": 503,
            "code": "crm_capability_unavailable",
            "meaning": "CRM access could not be checked right now. Nothing was changed; retry in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "`type` is missing or is not one of the documented values. Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/workflows": {
      "get": {
        "operationId": "list_workflows",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Workflow.jsonld-workflow.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Workflow-workflow.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `status`, `display_status`, `entry_state`, `execution_state` or `needs_attention` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List workflows",
        "description": "Lists the workflows of the new automation engine of the account, most recently changed first, with their state, the triggers of their draft and how many executions are running or blocked.\n\n**When to use:** To find a workflow by name or state before reading it with `get_workflow`, or to see which workflows are running, paused or need attention because an execution is blocked.\n\n**When not to use:** To read the steps of one workflow use `get_workflow`: the list leaves the draft out. The classic automations of an audience are `list_automations`; email sequences are `list_email_sequences`.\n\n**Filters:** All filters are optional and combine with AND.\n- `search`: part of the title, case-insensitive; surrounding spaces are ignored (up to 120 characters).\n- `status`: only workflows in that state (see `status` in the response).\n- `display_status`: only workflows whose `display_status` is that one; `error` lists those with a blocked execution.\n- `entry_state`: only published workflows whose entries are open (`open`) or paused as a whole (`paused`), or those under commercial review (`commercial-paused`).\n- `execution_state`: `paused`, workflows paused as a whole or under commercial review, whose executions do not move on; `running`, published workflows in neither case.\n- `needs_attention`: `true` lists only workflows with at least one blocked execution.\nSorting: fixed, last changed first; there is no `order` parameter.\nPagination: `page` and `itemsPerPage` (default 25, maximum 100), like the rest of the API; the response gives the total in `hydra:totalItems`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Part of the title of the workflow, case-insensitive. Up to 120 characters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "leads"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Only workflows in this state.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/WorkflowStatus"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "active"
          },
          {
            "name": "display_status",
            "in": "query",
            "description": "Only workflows whose `display_status` is this one.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/WorkflowDisplayStatus"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "error"
          },
          {
            "name": "entry_state",
            "in": "query",
            "description": "Only published workflows whose entries are open (`open`) or paused as a whole (`paused`), or workflows under commercial review (`commercial-paused`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "paused",
                "commercial-paused"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "open"
          },
          {
            "name": "execution_state",
            "in": "query",
            "description": "`paused`: workflows paused as a whole or under commercial review, whose executions do not move on. `running`: published workflows in neither case.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "enum": [
                "running",
                "paused"
              ]
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "running"
          },
          {
            "name": "needs_attention",
            "in": "query",
            "description": "`true` lists only workflows with at least one blocked execution. `false` or no value does not filter.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": true
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting at 1.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 1
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Workflows per page. Default 25, maximum 100.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow",
            "automation workflow",
            "new automations",
            "all workflows",
            "find a workflow",
            "active workflows",
            "paused workflows",
            "blocked executions"
          ],
          "es": [
            "flujo",
            "flujo de automatización",
            "automatizaciones nuevas",
            "todos los flujos",
            "buscar un flujo",
            "flujos activos",
            "flujos en pausa",
            "ejecuciones bloqueadas"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `status`, `display_status`, `entry_state`, `execution_state` or `needs_attention` outside the allowed values, `search` longer than 120 characters, or `page` / `itemsPerPage` outside their range. Read `violations[].propertyPath`."
          }
        ]
      },
      "post": {
        "operationId": "create_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "201": {
            "description": "Workflow resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read_workflow.validation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read_workflow.validation"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type (`title` that is not a text). Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`automation_crm_required`: The account needs a plan with CRM to create or change workflows of the new automation engine. Nothing was created and reads keep working; an administrator has to upgrade the plan. With `workflow_uuid` in the error, the workflow WAS created blank and only its document was not saved: fix what the error says and send the document with `update_workflow` on that uuid (`expected_draft_version` 1), never create another.\n\n`secret_write_forbidden`: The document writes the value of a secret header of «Send webhook», and that needs the `automations.manage` capability. It is checked after creating: the error carries `workflow_uuid`. Send the header with `value: null` and let an administrator set the secret in Easymailing, then save the document with `update_workflow` on that uuid.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: Someone saved the new workflow between creating it and saving its document. The error carries `workflow_uuid`: read that workflow with `get_workflow` and send your document with `update_workflow`.\n\n`workflow_under_commercial_review`: The account lost its plan with CRM between creating the workflow and saving its document, and the workflow is now paused for a commercial review. The error carries `workflow_uuid`; an administrator has to restore the plan and someone has to review the workflow in Easymailing › Automations.\n\n`workflow_busy`: The responsible of the new workflow changed while saving its document. The error carries `workflow_uuid`: retry the document with `update_workflow` on that uuid in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: Either a field is not valid (`violations[].propertyPath`: `title` empty or over 120 characters, `definition` that is not a JSON object), or the document was refused as a whole: then `violations` is empty and `issues` lists each problem with the shape of `get_workflow_validation` (`code`, the path in `field`, `hint`). A document without the shape of format 3 (`invalid_shape`) creates nothing. A secret header of «Send webhook» that is not valid (`invalid_shape`, `secret_too_long`) is only checked after creating: then the error carries `workflow_uuid`, and you fix it with `update_workflow` on that uuid (`expected_draft_version` 1), never by creating another.\n\n`workflow_rejected`: The document was refused for a reason this operation does not document yet (`reason`). With `workflow_uuid` in the error, the workflow WAS created blank and only its document was not saved: fix what the error says and send the document with `update_workflow` on that uuid (`expected_draft_version` 1), never create another.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`secrets_unavailable`: The service that keeps the secret headers of «Send webhook» did not answer. The error carries `workflow_uuid` (the workflow was created blank): retry the document later with `update_workflow` on that uuid; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Create a workflow as a draft",
        "description": "Creates a workflow of the new automation engine as an unpublished DRAFT, blank or with its whole document in `definition`, and answers it as `get_workflow` reads it plus `validation`: the review of the saved draft, with what is still missing or wrong to publish it and a `hint` for each issue.\n\n**When to use:** To build a new automation of the CRM or of marketing (a trigger, waits, conditions, branches and steps). Send the title and the whole document in one call; then fix what `validation` lists with `update_workflow` until `publishable` is true.\n\n**When not to use:** To change a workflow that already exists use `update_workflow`: look for it with `list_workflows` before creating a second one with the same purpose. Classic automations of an audience are `create_automation`; email sequences are `create_email_sequence`.\n\n**Side effects:** The workflow appears in Easymailing › Automations as a draft, with the person who owns the key or token as its responsible. Nothing is published, nobody enters it and nothing is sent or changed: the draft may be incomplete. A document that has not the shape of format 3 creates nothing (422 `validation_failed`). A failure after creating (a secret header of «Send webhook» that is not valid, for example) leaves the workflow created and blank, and the error carries its `workflow_uuid`: fix it with `update_workflow`, never create another.\n\n**About `definition`:** The same document `get_workflow` returns in `definition`, with its keys in camelCase (it is a declarative document, not API fields): `formatVersion` 3, `settings`, `triggers` and `nodes` in reading order. The pieces that exist (`catalogId`) are in `list_workflow_pieces`; how each piece is configured, with an example of each, is in the `automation_workflows_guide` guide of the MCP (`get_guide`). Every `uuid` is yours to choose (UUID v4, unique in the document). The `hint` of each issue in `validation` says what to fix.\n\n**Permissions:** Requires the `automations.work` capability. The account must also have a plan with CRM.",
        "parameters": [],
        "requestBody": {
          "description": "The new Workflow resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowCreateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowCreateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "create workflow",
            "new workflow",
            "build an automation",
            "create automation workflow",
            "new automation",
            "set up a workflow",
            "automate a process"
          ],
          "es": [
            "crear flujo",
            "nuevo flujo",
            "montar una automatización",
            "crear flujo de automatización",
            "nueva automatización",
            "configurar un flujo",
            "automatizar un proceso"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type (`title` that is not a text). Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "automation_crm_required",
            "meaning": "The account needs a plan with CRM to create or change workflows of the new automation engine. Nothing was created and reads keep working; an administrator has to upgrade the plan. With `workflow_uuid` in the error, the workflow WAS created blank and only its document was not saved: fix what the error says and send the document with `update_workflow` on that uuid (`expected_draft_version` 1), never create another."
          },
          {
            "status": 403,
            "code": "secret_write_forbidden",
            "meaning": "The document writes the value of a secret header of «Send webhook», and that needs the `automations.manage` capability. It is checked after creating: the error carries `workflow_uuid`. Send the header with `value: null` and let an administrator set the secret in Easymailing, then save the document with `update_workflow` on that uuid."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "Someone saved the new workflow between creating it and saving its document. The error carries `workflow_uuid`: read that workflow with `get_workflow` and send your document with `update_workflow`."
          },
          {
            "status": 409,
            "code": "workflow_under_commercial_review",
            "meaning": "The account lost its plan with CRM between creating the workflow and saving its document, and the workflow is now paused for a commercial review. The error carries `workflow_uuid`; an administrator has to restore the plan and someone has to review the workflow in Easymailing › Automations."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the new workflow changed while saving its document. The error carries `workflow_uuid`: retry the document with `update_workflow` on that uuid in a few seconds."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 503,
            "code": "secrets_unavailable",
            "meaning": "The service that keeps the secret headers of «Send webhook» did not answer. The error carries `workflow_uuid` (the workflow was created blank): retry the document later with `update_workflow` on that uuid; if it persists, contact support."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "Either a field is not valid (`violations[].propertyPath`: `title` empty or over 120 characters, `definition` that is not a JSON object), or the document was refused as a whole: then `violations` is empty and `issues` lists each problem with the shape of `get_workflow_validation` (`code`, the path in `field`, `hint`). A document without the shape of format 3 (`invalid_shape`) creates nothing. A secret header of «Send webhook» that is not valid (`invalid_shape`, `secret_too_long`) is only checked after creating: then the error carries `workflow_uuid`, and you fix it with `update_workflow` on that uuid (`expected_draft_version` 1), never by creating another."
          },
          {
            "status": 422,
            "code": "workflow_rejected",
            "meaning": "The document was refused for a reason this operation does not document yet (`reason`). With `workflow_uuid` in the error, the workflow WAS created blank and only its document was not saved: fix what the error says and send the document with `update_workflow` on that uuid (`expected_draft_version` 1), never create another."
          }
        ]
      }
    },
    "/workflows/{uuid}": {
      "get": {
        "operationId": "get_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a workflow",
        "description": "Reads one workflow of the new automation engine: its state, its draft (`definition`), the triggers of its published version with their entry state, its published versions and who is responsible for it.\n\n**When to use:** To see what a workflow does: its trigger, steps, waits, conditions and branches, as the document it is edited as. Also to know whether it is published, paused or has unpublished changes, and whether its responsible can still act.\n\n**When not to use:** To find a workflow by name or state use `list_workflows`: it also gives the execution counts, which this response leaves out. To know which pieces (`catalogId`) a document may use and the CRM plan each one needs, use `list_workflow_pieces`. To change the draft use `update_workflow`, and to see what is missing to publish it `get_workflow_validation`.\n\n**About `definition`:** It is the DRAFT, the document being edited, in format 3 and with its keys in camelCase exactly as the editor stores them: `settings`, `triggers` (each with `catalogId`, `configuration` and `next`) and `nodes` in reading order (each with `catalogId`, `configuration`, `next`, `branches` and `body`). When `unpublished_changes` is true it differs from the published version, which is the one running.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow",
            "automation workflow",
            "get workflow",
            "workflow steps",
            "workflow draft",
            "workflow details",
            "workflow trigger",
            "workflow versions"
          ],
          "es": [
            "flujo",
            "flujo de automatización",
            "ver flujo",
            "pasos del flujo",
            "borrador del flujo",
            "detalle del flujo",
            "desencadenante del flujo",
            "versiones del flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          }
        ]
      },
      "put": {
        "operationId": "update_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read_workflow.validation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read_workflow.validation"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type (`expected_draft_version` that is not an integer, `title` that is not a text). Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.work` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`automation_crm_required`: The account needs a plan with CRM to change workflows of the new automation engine. Nothing was saved and reads keep working; an administrator has to upgrade the plan. A workflow that already exists usually answers `workflow_under_commercial_review` instead (see below).\n\n`secret_write_forbidden`: The document writes the value of a secret header of «Send webhook», and that needs the `automations.manage` capability. Nothing was saved. Send the header with `value: null` to keep the stored secret, or ask an administrator to set it in Easymailing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: Someone saved the workflow after you read it, and nothing was saved. Read it again with `get_workflow`, apply your changes to its current `definition` and send them with its current `draft_version` as `expected_draft_version`.\n\n`workflow_under_commercial_review`: Your document was not saved: the plan of the account no longer covers the workflow (for example, the account lost CRM), so it is now paused for a commercial review (`status` `commercial-paused`) and its `draft_version` moved. Read it again with `get_workflow`. An administrator has to restore a plan with CRM if it was lost, and then someone has to review the workflow in Easymailing › Automations before it can change.\n\n`workflow_busy`: The responsible of the workflow changed while saving, and nothing was saved. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: Nothing was saved. Either a field is not valid (`violations[].propertyPath`: `expected_draft_version` missing or below 1, `definition` missing or not a JSON object, `title` empty or over 120 characters), or the document was refused as a whole: then `violations` is empty and `issues` lists each problem with the shape of `get_workflow_validation` (`code`, the path in `field`, `hint`): the shape of format 3 (`invalid_shape`) or a secret header of «Send webhook» (`invalid_shape`, `secret_too_long`). Fix it and send it again.\n\n`workflow_rejected`: The document was refused for a reason this operation does not document yet (`reason`), and nothing was saved. Read the workflow with `get_workflow` and check it in Easymailing › Automations.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`secrets_unavailable`: The service that keeps the secret headers of «Send webhook» did not answer, and nothing was saved. Retry the same request later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Save the draft of a workflow",
        "description": "Replaces the whole DRAFT of a workflow with the document in `definition` (and its name, if `title` is sent), provided nobody saved it since `expected_draft_version`, and answers the workflow as `get_workflow` reads it plus `validation`: the review of the saved draft. It never changes the published version nor what is running.\n\n**When to use:** To fix what `validation` listed after `create_workflow`, or to change a workflow: read it with `get_workflow`, change its `definition` and send the whole document with its `draft_version` as `expected_draft_version`.\n\n**When not to use:** To create a workflow use `create_workflow`. It does not merge: a trigger or node that is not sent is removed from the draft. Saving does not publish: the published version keeps running until the draft is published with `publish_workflow`.\n\n**Side effects:** Saves the draft and its name; `draft_version` grows by one. Nothing is published, nobody enters or leaves the workflow and nothing is sent or changed: the draft may be incomplete. Secret header values of «Send webhook» are returned as `null`; send them as `null` to keep the stored secret.\n\n**About `definition`:** The same document `get_workflow` returns in `definition`, with its keys in camelCase (it is a declarative document, not API fields): `formatVersion` 3, `settings`, `triggers` and `nodes` in reading order. The pieces that exist (`catalogId`) are in `list_workflow_pieces`; how each piece is configured, with an example of each, is in the `automation_workflows_guide` guide of the MCP (`get_guide`). The `hint` of each issue in `validation` says what to fix.\n\n**Permissions:** Requires the `automations.work` capability. The account must also have a plan with CRM. Writing the value of a secret header of «Send webhook» also needs `automations.manage`.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows` or from the answer of `create_workflow`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "requestBody": {
          "description": "The updated Workflow resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowUpdateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowUpdateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "update workflow",
            "edit workflow",
            "save workflow draft",
            "change workflow steps",
            "fix workflow",
            "rename workflow",
            "add a step to a workflow"
          ],
          "es": [
            "actualizar flujo",
            "editar flujo",
            "guardar borrador del flujo",
            "cambiar pasos del flujo",
            "corregir flujo",
            "renombrar flujo",
            "añadir un paso al flujo"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type (`expected_draft_version` that is not an integer, `title` that is not a text). Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.work` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "automation_crm_required",
            "meaning": "The account needs a plan with CRM to change workflows of the new automation engine. Nothing was saved and reads keep working; an administrator has to upgrade the plan. A workflow that already exists usually answers `workflow_under_commercial_review` instead (see below)."
          },
          {
            "status": 403,
            "code": "secret_write_forbidden",
            "meaning": "The document writes the value of a secret header of «Send webhook», and that needs the `automations.manage` capability. Nothing was saved. Send the header with `value: null` to keep the stored secret, or ask an administrator to set it in Easymailing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 503,
            "code": "secrets_unavailable",
            "meaning": "The service that keeps the secret headers of «Send webhook» did not answer, and nothing was saved. Retry the same request later; if it persists, contact support."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "Someone saved the workflow after you read it, and nothing was saved. Read it again with `get_workflow`, apply your changes to its current `definition` and send them with its current `draft_version` as `expected_draft_version`."
          },
          {
            "status": 409,
            "code": "workflow_under_commercial_review",
            "meaning": "Your document was not saved: the plan of the account no longer covers the workflow (for example, the account lost CRM), so it is now paused for a commercial review (`status` `commercial-paused`) and its `draft_version` moved. Read it again with `get_workflow`. An administrator has to restore a plan with CRM if it was lost, and then someone has to review the workflow in Easymailing › Automations before it can change."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed while saving, and nothing was saved. Retry the same request in a few seconds."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "Nothing was saved. Either a field is not valid (`violations[].propertyPath`: `expected_draft_version` missing or below 1, `definition` missing or not a JSON object, `title` empty or over 120 characters), or the document was refused as a whole: then `violations` is empty and `issues` lists each problem with the shape of `get_workflow_validation` (`code`, the path in `field`, `hint`): the shape of format 3 (`invalid_shape`) or a secret header of «Send webhook» (`invalid_shape`, `secret_too_long`). Fix it and send it again."
          },
          {
            "status": 422,
            "code": "workflow_rejected",
            "meaning": "The document was refused for a reason this operation does not document yet (`reason`), and nothing was saved. Read the workflow with `get_workflow` and check it in Easymailing › Automations."
          }
        ]
      },
      "delete": {
        "operationId": "delete_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "204": {
            "description": "Workflow resource deleted"
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request.\n\n`workflow_busy`: The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Delete a workflow",
        "description": "Deletes a workflow for good, published or not. It answers nothing (204); afterwards the workflow does not exist for the API (404 `workflow_not_found`).\n\n**When to use:** Only when the user explicitly wants the workflow gone, for example a test or a duplicate.\n\n**When not to use:** To stop it for a while use `pause_workflow`; to stop only new entries, `set_workflow_entry_state`. To remove one step or trigger, change the draft with `update_workflow`. Classic automations are deleted with `delete_automation`.\n\n**Side effects:** It cannot be undone: there is no archive nor recovery. Its entries close at once and the executions still running or waiting are cancelled in the background shortly after, without taking any further step; its history keeps its name as evidence. The records it created or changed, and the emails it already sent, are not touched. It frees its slot in the plan limit of automations, and its responsible is not needed.\n\n**Permissions:** Requires the `automations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "delete workflow",
            "remove workflow",
            "erase workflow",
            "get rid of workflow",
            "delete automation workflow"
          ],
          "es": [
            "borrar flujo",
            "eliminar flujo",
            "quitar flujo",
            "borrar flujo de automatización",
            "eliminar flujo duplicado"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds."
          }
        ]
      }
    },
    "/workflows/{uuid}/actions/pause": {
      "post": {
        "operationId": "pause_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`workflow_state_conflict`: The workflow cannot be paused now, and nothing changed: either it was never published (publish it first with `publish_workflow`), or a resume is still moving its waits (`resuming` is true in `get_workflow`; pause it when that ends).\n\n`draft_version_conflict`: The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request.\n\n`workflow_busy`: The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Pause a workflow as a whole",
        "description": "Pauses a published workflow as a whole and answers it as `get_workflow` reads it, with `paused_at` set. It has no body.\n\n**When to use:** To stop a workflow for a while without deleting it: while fixing a problem, during a campaign or holidays, or to free its slot in the plan limit of automations. Start it again with `resume_workflow`.\n\n**When not to use:** To stop only new entries and let what is inside go on, use `set_workflow_entry_state` with `paused`. To remove it for good use `delete_workflow`. Classic automations are paused with `automation_pause`.\n\n**Side effects:** Nobody enters the workflow and no execution moves on to its next step (a step already started is let finish); the waits stop counting until it is resumed, so nothing goes out in a burst then. The entries keep their state and its responsible is not needed. It frees one automation of the plan limit. Pausing it again changes nothing.\n\n**Permissions:** Requires the `automations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "pause workflow",
            "stop workflow",
            "suspend workflow",
            "turn off workflow",
            "halt automation workflow",
            "freeze workflow"
          ],
          "es": [
            "pausar flujo",
            "detener flujo",
            "parar flujo",
            "apagar flujo",
            "suspender flujo",
            "congelar flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "workflow_state_conflict",
            "meaning": "The workflow cannot be paused now, and nothing changed: either it was never published (publish it first with `publish_workflow`), or a resume is still moving its waits (`resuming` is true in `get_workflow`; pause it when that ends)."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds."
          }
        ]
      }
    },
    "/workflows/{uuid}/actions/publish": {
      "post": {
        "operationId": "publish_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or `expected_draft_version` is not an integer. Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`automation_crm_required`: The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`workflow_limit_reached`: A first publish puts one more automation in motion and the account already has as many as its plan allows (active classic automations plus published workflows that are not paused). Nothing was published. `upgrade` gives `capability`, `used` and `limit`. Pause another one (`pause_workflow`, or `automation_pause` for a classic automation) or upgrade the plan, then publish again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`draft_version_conflict`: Someone changed the workflow after you read it, and nothing was published. Read it again with `get_workflow`, check its `definition` and publish it with its current `draft_version` as `expected_draft_version`.\n\n`activation_busy`: Another activation of an automation of this account was in progress (they take turns to respect the plan limit), and nothing changed. Retry the same request in a few seconds.\n\n`responsible_unavailable`: The member responsible for the workflow cannot act anymore (removed from the account, deactivated or without access), so the draft cannot be published; nothing was published. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then publish again.\n\n`workflow_under_commercial_review`: The plan of the account no longer covers the workflow (for example, the account lost CRM), so it is paused for a commercial review (`status` `commercial-paused`) and nothing was published; its `draft_version` may have moved. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations.\n\n`workflow_busy`: The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: Nothing was published. Either `expected_draft_version` is missing or below 1 (`violations[].propertyPath`), or the draft does not pass the review: then `violations` is empty and `issues` lists every problem with the shape of `get_workflow_validation` (`node_uuid`, `catalog_id`, `field`, `code`, `severity`, `hint`). Fix the draft with `update_workflow` and publish again with its new `draft_version`.\n\n`workflow_rejected`: The change was refused for a reason this operation does not document yet (`reason`), and nothing changed. Read the workflow with `get_workflow` and check it in Easymailing › Automations.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.\n\n`secrets_unavailable`: The service that keeps the secret headers of «Send webhook» did not answer, and nothing was published. Retry the same request later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Publish a workflow",
        "description": "Publishes the DRAFT of a workflow as its new version, provided nobody changed it since `expected_draft_version` and it passes the review (the same one `get_workflow_validation` gives), and answers the workflow as `get_workflow` reads it. There is no confirmation step: the first call publishes.\n\n**When to use:** When the draft is ready (`publishable` true in `validation` or `get_workflow_validation`) and the user wants the workflow to start working, or to put the changes of the draft (`unpublished_changes` true) into the running version.\n\n**When not to use:** To save changes without running them use `update_workflow`. To start it again after `pause_workflow` use `resume_workflow`, and to reopen its entries `set_workflow_entry_state`: publishing does not lift either. Classic automations of an audience are switched on with `automation_activate`.\n\n**Side effects:** The first publish opens the entries of the workflow: from then on every new event of its triggers starts an execution that can send emails and SMS, create or change records, call webhooks and use AI credits, on behalf of its responsible. Nothing that happened before publishing enters. Publishing again replaces the published version only for the executions that start afterwards: those already inside go on, to the end, with the version they entered with; a trigger whose entries are paused stays paused if the new version keeps it (same `uuid`). Each «Send marketing email» or «Send SMS» step gets its own campaign of the account, created in the same publish. The first publish takes one automation of the plan limit (active classic automations plus published workflows that are not paused); publishing again does not. Publishing increments `draft_version`: to publish again later, send the one in this answer (or the last one you read) as `expected_draft_version`.\n\n**Permissions:** Requires the `automations.manage` capability. The account must also have a plan with CRM and room in its plan limit of automations for a first publish.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows` or from the answer of `create_workflow`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "requestBody": {
          "description": "The new Workflow resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowPublishInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowPublishInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "publish workflow",
            "activate workflow",
            "turn on workflow",
            "go live workflow",
            "start workflow",
            "deploy workflow changes",
            "publish automation workflow"
          ],
          "es": [
            "publicar flujo",
            "activar flujo",
            "encender flujo",
            "poner en marcha el flujo",
            "publicar cambios del flujo",
            "publicar flujo de automatización"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or `expected_draft_version` is not an integer. Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "automation_crm_required",
            "meaning": "The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 503,
            "code": "secrets_unavailable",
            "meaning": "The service that keeps the secret headers of «Send webhook» did not answer, and nothing was published. Retry the same request later; if it persists, contact support."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "Someone changed the workflow after you read it, and nothing was published. Read it again with `get_workflow`, check its `definition` and publish it with its current `draft_version` as `expected_draft_version`."
          },
          {
            "status": 403,
            "code": "workflow_limit_reached",
            "meaning": "A first publish puts one more automation in motion and the account already has as many as its plan allows (active classic automations plus published workflows that are not paused). Nothing was published. `upgrade` gives `capability`, `used` and `limit`. Pause another one (`pause_workflow`, or `automation_pause` for a classic automation) or upgrade the plan, then publish again."
          },
          {
            "status": 409,
            "code": "activation_busy",
            "meaning": "Another activation of an automation of this account was in progress (they take turns to respect the plan limit), and nothing changed. Retry the same request in a few seconds."
          },
          {
            "status": 409,
            "code": "responsible_unavailable",
            "meaning": "The member responsible for the workflow cannot act anymore (removed from the account, deactivated or without access), so the draft cannot be published; nothing was published. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then publish again."
          },
          {
            "status": 409,
            "code": "workflow_under_commercial_review",
            "meaning": "The plan of the account no longer covers the workflow (for example, the account lost CRM), so it is paused for a commercial review (`status` `commercial-paused`) and nothing was published; its `draft_version` may have moved. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "Nothing was published. Either `expected_draft_version` is missing or below 1 (`violations[].propertyPath`), or the draft does not pass the review: then `violations` is empty and `issues` lists every problem with the shape of `get_workflow_validation` (`node_uuid`, `catalog_id`, `field`, `code`, `severity`, `hint`). Fix the draft with `update_workflow` and publish again with its new `draft_version`."
          },
          {
            "status": 422,
            "code": "workflow_rejected",
            "meaning": "The change was refused for a reason this operation does not document yet (`reason`), and nothing changed. Read the workflow with `get_workflow` and check it in Easymailing › Automations."
          }
        ]
      }
    },
    "/workflows/{uuid}/actions/resume": {
      "post": {
        "operationId": "resume_workflow",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource created",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read"
                }
              }
            },
            "links": {}
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`automation_crm_required`: The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.\n\n`workflow_limit_reached`: Resuming puts one more automation in motion and the account already has as many as its plan allows. Nothing changed: it stays paused. `upgrade` gives `capability`, `used` and `limit`. Pause another one (`pause_workflow`, or `automation_pause` for a classic automation) or upgrade the plan, then resume it again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`workflow_state_conflict`: The workflow cannot be resumed now, and nothing changed: it was never published (publish it first with `publish_workflow`), or its pause cannot be lifted in its current state. Read it with `get_workflow`.\n\n`activation_busy`: Another activation of an automation of this account was in progress (they take turns to respect the plan limit), and nothing changed. Retry the same request in a few seconds.\n\n`responsible_unavailable`: The member responsible for the workflow cannot act anymore (removed from the account, deactivated or without access), so it cannot be resumed; it stays paused. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then resume it again.\n\n`workflow_under_commercial_review`: The workflow is paused for a commercial review (the plan of the account no longer covers it, for example after losing CRM), and resuming does not lift that pause. Nothing changed. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations.\n\n`draft_version_conflict`: The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request.\n\n`workflow_busy`: The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Resume a paused workflow",
        "description": "Resumes a workflow paused as a whole with `pause_workflow` and answers it as `get_workflow` reads it. It has no body.\n\n**When to use:** To start again a workflow that `pause_workflow` stopped (`paused_at` is set).\n\n**When not to use:** If only its entries were paused (`entries_open` false, `paused_at` null), reopen them with `set_workflow_entry_state`. A workflow under commercial review (`status` `commercial-paused`) is reviewed and reactivated in Easymailing › Automations. A draft never published is started with `publish_workflow`.\n\n**Side effects:** Each wait in progress moves forward by what the pause lasted (its remaining time is kept), and what fell due during the pause goes out staggered, never in a burst; the executions go on from where they stopped and new entries are admitted again as the entries were last set. It takes one automation of the plan limit again. With many waits (more than 5,000) the request moves part of them and the rest moves in the background: the answer has `resuming` true and keeps `paused_at` until it ends, and resuming again meanwhile is safe. Resuming one that is not paused changes nothing.\n\n**Permissions:** Requires the `automations.manage` capability. The account must also have room in its plan limit of automations.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "resume workflow",
            "unpause workflow",
            "restart workflow",
            "turn workflow back on",
            "continue workflow"
          ],
          "es": [
            "reanudar flujo",
            "quitar la pausa del flujo",
            "volver a activar flujo",
            "reactivar flujo pausado",
            "continuar flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "automation_crm_required",
            "meaning": "The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "workflow_state_conflict",
            "meaning": "The workflow cannot be resumed now, and nothing changed: it was never published (publish it first with `publish_workflow`), or its pause cannot be lifted in its current state. Read it with `get_workflow`."
          },
          {
            "status": 403,
            "code": "workflow_limit_reached",
            "meaning": "Resuming puts one more automation in motion and the account already has as many as its plan allows. Nothing changed: it stays paused. `upgrade` gives `capability`, `used` and `limit`. Pause another one (`pause_workflow`, or `automation_pause` for a classic automation) or upgrade the plan, then resume it again."
          },
          {
            "status": 409,
            "code": "activation_busy",
            "meaning": "Another activation of an automation of this account was in progress (they take turns to respect the plan limit), and nothing changed. Retry the same request in a few seconds."
          },
          {
            "status": 409,
            "code": "responsible_unavailable",
            "meaning": "The member responsible for the workflow cannot act anymore (removed from the account, deactivated or without access), so it cannot be resumed; it stays paused. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then resume it again."
          },
          {
            "status": 409,
            "code": "workflow_under_commercial_review",
            "meaning": "The workflow is paused for a commercial review (the plan of the account no longer covers it, for example after losing CRM), and resuming does not lift that pause. Nothing changed. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds."
          }
        ]
      }
    },
    "/workflows/{uuid}/entry_state": {
      "put": {
        "operationId": "set_workflow_entry_state",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "Workflow resource updated",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow.jsonld-workflow.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workflow-workflow.read"
                }
              }
            },
            "links": {}
          },
          "400": {
            "description": "The body is not valid JSON or a field has the wrong type (`entry_state` or `trigger_uuid` that is not a text). Send a JSON object with the documented field types.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`automation_crm_required`: The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`workflow_state_conflict`: The workflow was never published, so it has no entries to open or pause, and nothing changed. Publish it first with `publish_workflow`.\n\n`trigger_not_published`: `trigger_uuid` is not a trigger of the published version (it may be only in the draft), and nothing changed. Use a `uuid` of `triggers` in `get_workflow`, or publish the draft first with `publish_workflow`.\n\n`responsible_unavailable`: Opening the entries needs a responsible who can act, and the member responsible for the workflow cannot anymore (removed from the account, deactivated or without access). Nothing changed; pausing them does not need it. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then open them again.\n\n`workflow_under_commercial_review`: The workflow is paused for a commercial review (the plan of the account no longer covers it, for example after losing CRM), and its entries cannot be opened now. Nothing changed. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations.\n\n`draft_version_conflict`: The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request.\n\n`workflow_busy`: The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: A field is not valid, and nothing changed (`violations[].propertyPath`): `entry_state` missing or other than `open` or `paused`, or `trigger_uuid` that is not a UUID.\n\n`workflow_rejected`: The change was refused for a reason this operation does not document yet (`reason`), and nothing changed. Read the workflow with `get_workflow` and check it in Easymailing › Automations.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Open or pause the entries of a workflow",
        "description": "Opens or pauses the entries of a published workflow, all of them or those of one trigger of its published version (`trigger_uuid`), and answers it as `get_workflow` reads it (`entries_open` and `triggers[].entry_state`). It publishes nothing. `entries_open` (the whole workflow) and each `triggers[].entry_state` (`open` or `paused`) are independent: without `trigger_uuid` it acts only on the whole workflow and does NOT reopen a trigger that was paused one by one; reopen that one with its `trigger_uuid`. It does not change `draft_version`.\n\n**When to use:** To stop new records from entering while those already inside finish, for example before replacing a trigger or after a campaign ends; or to stop one trigger only; and to open them again.\n\n**When not to use:** To also stop the executions already inside, use `pause_workflow`. To remove a trigger for good, remove it from the draft with `update_workflow` and publish.\n\n**Side effects:** `paused`: no new record enters through those entries, what is already inside goes on to the end, and the events that arrive meanwhile are not kept for later (reopening does not replay them). `open`: new events enter again from now on. Pausing the entries of the whole workflow prevails over each trigger. Pausing entries does not free a slot of the plan limit of automations (`pause_workflow` does), and it does not need a responsible who can act; opening does. Repeating the current state changes nothing.\n\n**Permissions:** Requires the `automations.manage` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "requestBody": {
          "description": "The updated Workflow resource",
          "content": {
            "application/ld+json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowEntryStateInput.jsonld"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Workflow.WorkflowEntryStateInput"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "x-mcp-class": "destructive",
        "x-mcp-keywords": {
          "en": [
            "pause workflow entries",
            "stop new entries",
            "close workflow entries",
            "open workflow entries",
            "pause workflow trigger",
            "resume workflow trigger"
          ],
          "es": [
            "pausar entradas del flujo",
            "cerrar entradas del flujo",
            "abrir entradas del flujo",
            "que no entre nadie más al flujo",
            "pausar desencadenante del flujo",
            "reanudar desencadenante del flujo"
          ]
        },
        "x-errors": [
          {
            "status": 400,
            "code": null,
            "meaning": "The body is not valid JSON or a field has the wrong type (`entry_state` or `trigger_uuid` that is not a text). Send a JSON object with the documented field types."
          },
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.manage` capability (the lifecycle of a workflow is managed, as in the app). Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 403,
            "code": "automation_crm_required",
            "meaning": "The account needs a plan with CRM for workflows of the new automation engine. Nothing changed and reads keep working; an administrator has to upgrade the plan."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 409,
            "code": "workflow_state_conflict",
            "meaning": "The workflow was never published, so it has no entries to open or pause, and nothing changed. Publish it first with `publish_workflow`."
          },
          {
            "status": 409,
            "code": "trigger_not_published",
            "meaning": "`trigger_uuid` is not a trigger of the published version (it may be only in the draft), and nothing changed. Use a `uuid` of `triggers` in `get_workflow`, or publish the draft first with `publish_workflow`."
          },
          {
            "status": 409,
            "code": "responsible_unavailable",
            "meaning": "Opening the entries needs a responsible who can act, and the member responsible for the workflow cannot anymore (removed from the account, deactivated or without access). Nothing changed; pausing them does not need it. Someone has to take over as its responsible in Easymailing › Automations (this API does not change the responsible); then open them again."
          },
          {
            "status": 409,
            "code": "workflow_under_commercial_review",
            "meaning": "The workflow is paused for a commercial review (the plan of the account no longer covers it, for example after losing CRM), and its entries cannot be opened now. Nothing changed. An administrator has to restore a plan with CRM, and someone has to review and reactivate the workflow in Easymailing › Automations."
          },
          {
            "status": 409,
            "code": "draft_version_conflict",
            "meaning": "The workflow kept changing while the request ran (someone was saving it), and nothing changed. Retry the same request."
          },
          {
            "status": 409,
            "code": "workflow_busy",
            "meaning": "The responsible of the workflow changed at the same time, and nothing changed. Retry the same request in a few seconds."
          },
          {
            "status": 422,
            "code": "validation_failed",
            "meaning": "A field is not valid, and nothing changed (`violations[].propertyPath`): `entry_state` missing or other than `open` or `paused`, or `trigger_uuid` that is not a UUID."
          },
          {
            "status": 422,
            "code": "workflow_rejected",
            "meaning": "The change was refused for a reason this operation does not document yet (`reason`), and nothing changed. Read the workflow with `get_workflow` and check it in Easymailing › Automations."
          }
        ]
      }
    },
    "/workflows/{uuid}/executions": {
      "get": {
        "operationId": "list_workflow_executions",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowExecution collection",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hydra:member": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowExecution.jsonld-workflow_execution.list"
                      }
                    },
                    "hydra:totalItems": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hydra:view": {
                      "type": "object",
                      "properties": {
                        "@id": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "@type": {
                          "type": "string"
                        },
                        "hydra:first": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:last": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:previous": {
                          "type": "string",
                          "format": "iri-reference"
                        },
                        "hydra:next": {
                          "type": "string",
                          "format": "iri-reference"
                        }
                      },
                      "example": {
                        "@id": "string",
                        "type": "string",
                        "hydra:first": "string",
                        "hydra:last": "string",
                        "hydra:previous": "string",
                        "hydra:next": "string"
                      }
                    },
                    "hydra:search": {
                      "type": "object",
                      "properties": {
                        "@type": {
                          "type": "string"
                        },
                        "hydra:template": {
                          "type": "string"
                        },
                        "hydra:variableRepresentation": {
                          "type": "string"
                        },
                        "hydra:mapping": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "@type": {
                                "type": "string"
                              },
                              "variable": {
                                "type": "string"
                              },
                              "property": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "required": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "hydra:member"
                  ]
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowExecution-workflow_execution.list"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A filter value is not valid: `state` or `subject_type` outside the allowed values, `subject_uuid` not a UUID, `search` longer than 120 characters, `revision` not a positive integer, an instant without its offset or a range that ends before it starts, `itemsPerPage` outside 1 to 50, or a `cursor[gt]` that was not taken unchanged from a `hydra:next` link (`cursor[lt]` is not supported). Read `violations[].propertyPath`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List the executions of a workflow",
        "description": "Lists the executions of one workflow of the new automation engine, newest first: for whom each one runs, on which published version, its state and, when it is blocked, stopped or canceled, why.\n\n**When to use:** To see what a workflow is doing: which executions are running, waiting or blocked, which ended and how, or whether a contact went through it (`subject_uuid`, or `search` by name). Then read one with `get_workflow_execution` to see its route step by step.\n\n**When not to use:** To know the state of the workflow itself (published, paused, how many executions are blocked) use `get_workflow` or `list_workflows`. Executions cannot be retried, skipped or canceled through the API: that happens in Easymailing.\n\n**Visibility:** Only the executions whose subject the user can read are listed (a contact needs `contacts.read`, a company or an opportunity the CRM read capabilities and a CRM seat, a received webhook request `automations.work`…). A subject the user can only partly read (an opportunity of a pipeline they cannot see) comes with `subject.state` `hidden` and no name: a protected record.\n\n**Filters:** All filters are optional and combine with AND.\n- `state`: only executions in that state (see `state` in the response).\n- `revision`: only executions running on that published version.\n- `subject_type`: only executions for that kind of subject (see `subject.type`).\n- `subject_uuid`: only executions for that record, for example a contact.\n- `search`: part of the name of the record (a contact by first name, last name, full name, email or phone; a company by its name; an opportunity by its title, only in the pipelines the user can read), case-insensitive and literal; tasks and webhook requests are not searched, and records that no longer exist never match.\n- `created_from` (included) and `created_before` (excluded): only executions that started in that range, ISO 8601 instants with their offset.\nSorting: fixed, the newest first; there is no `order` parameter.\nPagination: `itemsPerPage` (default 25, maximum 50) and an opaque `cursor[gt]`: to read the next page, call again with the same filters and the `cursor[gt]` of the `hydra:next` link of the previous response, and keep following `hydra:next` until a page comes back empty. An execution that starts meanwhile neither repeats nor shifts the following pages. There is no previous page. `hydra:totalItems` is not a total: it is the items of this page, plus one when another page follows.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          },
          {
            "name": "state",
            "in": "query",
            "description": "Only executions in this state.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/WorkflowExecutionState"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "blocked"
          },
          {
            "name": "revision",
            "in": "query",
            "description": "Only executions running on this published version (`versions[].revision` of `get_workflow`).",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 2
          },
          {
            "name": "subject_type",
            "in": "query",
            "description": "Only executions for this kind of subject.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "$ref": "#/components/schemas/WorkflowSubjectType"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "contact"
          },
          {
            "name": "subject_uuid",
            "in": "query",
            "description": "Only executions for this record (`subject.uuid`), for example a contact from `list_contacts`. Case-insensitive.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Part of the name of the record of the execution, case-insensitive and literal (`%` and `_` are plain characters). Up to 120 characters; surrounding spaces are ignored.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "ana"
          },
          {
            "name": "created_from",
            "in": "query",
            "description": "Only executions that started at this instant or later. ISO 8601 with its offset.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-01T00:00:00+00:00"
          },
          {
            "name": "created_before",
            "in": "query",
            "description": "Only executions that started before this instant (excluded). ISO 8601 with its offset; not before `created_from`.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "2026-11-11T00:00:00+00:00"
          },
          {
            "name": "itemsPerPage",
            "in": "query",
            "description": "Executions per page. Default 25, maximum 50.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 50
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": 25
          },
          {
            "name": "cursor[gt]",
            "in": "query",
            "description": "Opaque cursor of the next page, taken from the `hydra:next` link of the previous response. Use it only with the same workflow and filters.",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "allowReserved": false,
            "example": "MjAyNi0xMS0xMCAwOTowMDowMC4wMDAwMDB8NDI"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow executions",
            "automation runs",
            "who went through the workflow",
            "blocked executions",
            "workflow history",
            "automation log",
            "did this contact go through the workflow"
          ],
          "es": [
            "ejecuciones del flujo",
            "ejecuciones de la automatización",
            "quién pasó por el flujo",
            "ejecuciones bloqueadas",
            "historial del flujo",
            "registro de la automatización",
            "pasó este contacto por el flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          },
          {
            "status": 422,
            "code": null,
            "meaning": "A filter value is not valid: `state` or `subject_type` outside the allowed values, `subject_uuid` not a UUID, `search` longer than 120 characters, `revision` not a positive integer, an instant without its offset or a range that ends before it starts, `itemsPerPage` outside 1 to 50, or a `cursor[gt]` that was not taken unchanged from a `hydra:next` link (`cursor[lt]` is not supported). Read `violations[].propertyPath`."
          }
        ]
      }
    },
    "/workflows/{uuid}/executions/{executionUuid}": {
      "get": {
        "operationId": "get_workflow_execution",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowExecution resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExecution.jsonld-workflow_execution.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExecution-workflow_execution.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. Find the right one with `list_workflows`.\n\n`workflow_execution_not_found`: The execution does not exist in this workflow, or it runs for a record the user cannot read. An `executionUuid` that is not a valid UUID also gives 404. Find it with `list_workflow_executions`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Get a workflow execution",
        "description": "Reads one execution of a workflow with its exact route: a row per step (and per round of a «For each»), in the order they started, with the branch it took, its outputs and what it evaluated, plus who canceled it when no step row could keep it.\n\n**When to use:** To explain why an execution is blocked, stopped or took a branch, or what a step did for one contact.\n\n**When not to use:** To find the execution use `list_workflow_executions`. To read the workflow it runs, use `get_workflow` (the route names the steps by `node_uuid`, the `uuid` of `definition.nodes[]` of the version it runs on). Executions cannot be retried, skipped or canceled through the API.\n\n**Visibility:** An execution whose subject the user cannot read does not exist for them: 404 `workflow_execution_not_found`, the same as one of another workflow. Inside `outputs` and `trace`, a record the user cannot read is `{\"redacted\": true}`. 90 days after it ended the route is purged: `steps` is empty, `detail_purged` is true and `summary` keeps the counts.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          },
          {
            "name": "executionUuid",
            "in": "path",
            "description": "UUID of the execution. Get it from `list_workflow_executions`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "workflow execution",
            "execution route",
            "why is the execution blocked",
            "automation run details",
            "execution steps"
          ],
          "es": [
            "ejecución del flujo",
            "recorrido de la ejecución",
            "por qué está bloqueada",
            "detalle de la ejecución",
            "pasos de la ejecución"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. Find the right one with `list_workflows`."
          },
          {
            "status": 404,
            "code": "workflow_execution_not_found",
            "meaning": "The execution does not exist in this workflow, or it runs for a record the user cannot read. An `executionUuid` that is not a valid UUID also gives 404. Find it with `list_workflow_executions`."
          }
        ]
      }
    },
    "/workflows/{uuid}/validation": {
      "get": {
        "operationId": "get_workflow_validation",
        "tags": [
          "Workflows"
        ],
        "responses": {
          "200": {
            "description": "WorkflowValidation resource",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowValidation.jsonld-workflow_validation.read"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowValidation-workflow_validation.read"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, expired or deactivated credentials, or the account is not active, suspended or expired. An unknown API key or token answers `{\"message\": …}` as `application/json`; the other cases are problem+json with the reason in `detail`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing.\n\n`tenant_account_not_migrated`: The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`workflow_not_found`: The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests with the same API key (a fixed window of one minute). `Retry-After` says when to try again.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Moment from which to retry, as `Y-m-d H:i:s` in the server time zone (not seconds).",
                "schema": {
                  "type": "string",
                  "example": "2026-10-30 13:37:19"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "`tenant_account_not_ready`: The account access model is not ready yet. Retry later; if it persists, contact support.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Check if a workflow can be published",
        "description": "Reviews the SAVED draft of a workflow with exactly the rules of publishing and lists what is missing or wrong, node by node, with a `hint` that says how to fix each issue. `publishable` is true when no issue is `incomplete` or `error`; a `warning` does not block publishing. Nothing changes.\n\n**When to use:** Before publishing a workflow, or to see what still has to be filled in a draft someone else saved. `create_workflow` and `update_workflow` already answer this same review in `validation`: you only need this operation when you did not just save.\n\n**When not to use:** It reads the saved draft, not a document you are about to send: save it first with `update_workflow`. To read the document itself use `get_workflow`.\n\n**How to fix an issue:** `node_uuid` and `catalog_id` say which trigger or node of `definition` it is about (`null` for the whole workflow), `field` the path inside its `configuration` (`durationValue` is `configuration.durationValue`; or `next`, `branches.N.next`, `settings.…`), and `hint` what to change. The configuration each piece accepts is in the `automation_workflows_guide` guide of the MCP (`get_guide`) and in `list_workflow_pieces`. Then send the whole corrected document with `update_workflow`.\n\n**Permissions:** Requires the `automations.read` capability.",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "description": "UUID of the workflow. Get it from `list_workflows`.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          }
        ],
        "deprecated": false,
        "x-mcp-keywords": {
          "en": [
            "validate workflow",
            "check workflow",
            "can I publish the workflow",
            "workflow issues",
            "workflow errors",
            "what is missing in the workflow",
            "review workflow"
          ],
          "es": [
            "validar flujo",
            "revisar flujo",
            "puedo publicar el flujo",
            "incidencias del flujo",
            "errores del flujo",
            "qué le falta al flujo",
            "revisión del flujo"
          ]
        },
        "x-errors": [
          {
            "status": 403,
            "code": null,
            "meaning": "The key or token does not have the `automations.read` capability. Ask an administrator, or use a key or token that has it; the response does not say which permission is missing."
          },
          {
            "status": 503,
            "code": "tenant_account_not_ready",
            "meaning": "The account access model is not ready yet. Retry later; if it persists, contact support."
          },
          {
            "status": 403,
            "code": "tenant_account_not_migrated",
            "meaning": "The account still uses the previous Easymailing panel. Available once it moves to the new panel; retrying does not help."
          },
          {
            "status": 404,
            "code": "workflow_not_found",
            "meaning": "The workflow does not exist in this account, or it was deleted. A `uuid` that is not a valid UUID also gives 404. Find the right one with `list_workflows`."
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AccountMember-account_member.read": {
        "type": "object",
        "description": "`list_account_members` and `get_account_member` (condiciones de flujos, Task 6c): the users of the account with the uuid of their membership, the one\nthe workflows and the CRM take for a person. From `ListAutomationWorkflowMemberOptions` of CoreBundle, the catalog of the workflow\neditor's picker, under either of the two gates the panel already has for it: `account.users.read` (Settings) or `automations.work`\n(the workflow editor). Who is in each team (`teams`, `team`) only with the Settings gate, as in the panel.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user in the account (their membership): the one workflows, tasks, notes and the owners of records take for a person.",
            "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Full name of the user (their email when they have no name).",
            "example": "Laura Martín",
            "readOnly": true
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email with which the user signs in.",
            "example": "laura@acme.com",
            "readOnly": true
          },
          "status": {
            "default": "active",
            "example": "active",
            "type": "string",
            "$ref": "#/components/schemas/MembershipStatus",
            "description": "Whether the user can still be picked: a workflow only takes an `active` one where it chooses a person.",
            "readOnly": true
          },
          "teams": {
            "type": [
              "array",
              "null"
            ],
            "description": "`uuid` of each team of `list_account_teams` the user belongs to. `null` means that the key or token cannot see who is in each team (it has only `automations.work`, without `account.users.read` or `account.teams.read`), not that the user has no team: that is `[]`.",
            "example": [
              "5d2c8a41-7b3e-4f69-9a10-2e8c4b6d7f31"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "readOnly": true
          },
          "current": {
            "type": "boolean",
            "description": "`true` for the user who owns the key or token.",
            "example": false,
            "readOnly": true
          }
        }
      },
      "AccountMember.jsonld-account_member.read": {
        "type": "object",
        "description": "`list_account_members` and `get_account_member` (condiciones de flujos, Task 6c): the users of the account with the uuid of their membership, the one\nthe workflows and the CRM take for a person. From `ListAutomationWorkflowMemberOptions` of CoreBundle, the catalog of the workflow\neditor's picker, under either of the two gates the panel already has for it: `account.users.read` (Settings) or `automations.work`\n(the workflow editor). Who is in each team (`teams`, `team`) only with the Settings gate, as in the panel.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user in the account (their membership): the one workflows, tasks, notes and the owners of records take for a person.",
            "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Full name of the user (their email when they have no name).",
            "example": "Laura Martín",
            "readOnly": true
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email with which the user signs in.",
            "example": "laura@acme.com",
            "readOnly": true
          },
          "status": {
            "default": "active",
            "example": "active",
            "type": "string",
            "$ref": "#/components/schemas/MembershipStatus",
            "description": "Whether the user can still be picked: a workflow only takes an `active` one where it chooses a person.",
            "readOnly": true
          },
          "teams": {
            "type": [
              "array",
              "null"
            ],
            "description": "`uuid` of each team of `list_account_teams` the user belongs to. `null` means that the key or token cannot see who is in each team (it has only `automations.work`, without `account.users.read` or `account.teams.read`), not that the user has no team: that is `[]`.",
            "example": [
              "5d2c8a41-7b3e-4f69-9a10-2e8c4b6d7f31"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "readOnly": true
          },
          "current": {
            "type": "boolean",
            "description": "`true` for the user who owns the key or token.",
            "example": false,
            "readOnly": true
          }
        }
      },
      "AccountTeam-account_team.read": {
        "type": "object",
        "description": "`list_account_teams` (condiciones de flujos, Task 6c): the teams of the account with the uuid the workflows take for a team, from\n`ListAutomationWorkflowMemberOptions` of CoreBundle, under `account.teams.read` (Settings) or `automations.work` (the workflow editor).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the team: the one workflows take for a team.",
            "example": "5d2c8a41-7b3e-4f69-9a10-2e8c4b6d7f31",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the team.",
            "example": "Sales",
            "readOnly": true
          },
          "member_count": {
            "type": "integer",
            "minimum": 0,
            "description": "How many `active` users the team has: the people an approval, a notification or a round robin can reach.",
            "example": 4,
            "readOnly": true
          }
        }
      },
      "AccountTeam.jsonld-account_team.read": {
        "type": "object",
        "description": "`list_account_teams` (condiciones de flujos, Task 6c): the teams of the account with the uuid the workflows take for a team, from\n`ListAutomationWorkflowMemberOptions` of CoreBundle, under `account.teams.read` (Settings) or `automations.work` (the workflow editor).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the team: the one workflows take for a team.",
            "example": "5d2c8a41-7b3e-4f69-9a10-2e8c4b6d7f31",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the team.",
            "example": "Sales",
            "readOnly": true
          },
          "member_count": {
            "type": "integer",
            "minimum": 0,
            "description": "How many `active` users the team has: the people an approval, a notification or a round robin can reach.",
            "example": 4,
            "readOnly": true
          }
        }
      },
      "Activity-activity.list": {
        "type": "object",
        "description": "`list_activities` (fase 5): the activity timeline of one contact, company or opportunity, newest first. Generated\nfrom the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's.\n\nThe operation is open to whoever reads contacts, companies or opportunities (`security` with ` or `); the provider\nthen demands the barrier of the kind of record asked for, as the use case does. It pages forward only by cursor\n(`cursor[gt]`, decision 3 of the coordinator): {@see ForwardOnlyCursor} drops `hydra:previous`. A row has no item\noperation; API Platform still names it after the collection (`@id` `/activities/{uuid}`), an IRI that leads to no\nroute (404): it is not a link to follow and the documentation does not publish it.\n\n`data` is `{}` when the row is not available (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the activity row.",
            "example": "0c8e5b37-91d2-4a6f-b3e0-7d2a4f61c985",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "description": "Dotted type of the fact. Records and CRM: `contact.created`, `contact.fields_changed`, `contact.tags_changed`, `contact.company_unlinked`, `company.created`, `company.fields_changed`, `opportunity.created`, `opportunity.fields_changed`, `opportunity.stage_changed`, `opportunity.pipeline_changed`, `opportunity.company_unlinked`, `note.created`, `note.edited`, `note.deleted`, `task.created`, `task.completed`, `task.reopened`, `meeting.scheduled`, `meeting.rescheduled`, `meeting.cancelled`, `email.sent`, `email.received`, `file.uploaded`, `file.linked`, `file.removed`, `call.completed`, `call.unanswered`, `call.missed`, `call.voicemail` and `message.conversation`. Campaigns: `marketing.email.campaign`, `marketing.email.bounced`, `marketing.email.complaint`, `marketing.sms.campaign` and `marketing.sms.replied`. Audiences: `audience.email.status_changed`, `audience.sms.status_changed`, `audience.email.confirmation_sent`, `audience.sms.confirmation_sent`, `audience.email.revalidated`, `audience.groups_changed` and `audience.fields_changed`. Forms and surveys: `form.submitted`, `form.completed`, `survey.started` and `survey.completed`. Purchases: `ecommerce.customer.linked`, `ecommerce.order.placed`, `ecommerce.order.shipped`, `ecommerce.order.cancelled` and `ecommerce.order.refunded`. Notes from before the CRM: `legacy.note`. Automations: `automation.run`, `automation.workflow.started`, `automation.workflow.finished` and `automation.workflow.exited`. New types can appear, so do not treat the list as closed. It decides which keys `data` has.",
            "example": "opportunity.stage_changed",
            "readOnly": true
          },
          "category": {
            "type": "string",
            "$ref": "#/components/schemas/EntityActivityCategory",
            "description": "Area of the product the fact belongs to. `crm` groups everything about companies, opportunities, tasks, notes, files, emails and meetings.",
            "example": "crm",
            "readOnly": true
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivityChannel"
              },
              {
                "type": "null"
              }
            ],
            "description": "Channel the fact happened on, when it applies. `null` otherwise.",
            "example": "email",
            "readOnly": true
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it happened, ISO 8601. For a grouped row, the same as `last_occurred_at`.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "first_occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "First time the grouped fact happened, ISO 8601. Equal to `occurred_at` when `occurrence_count` is 1.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "last_occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last time the grouped fact happened, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "occurrence_count": {
            "type": "integer",
            "description": "How many times the same fact was grouped into this row (for example the opens of one campaign by the same person). 1 for a single fact.",
            "example": 1,
            "minimum": 1,
            "readOnly": true
          },
          "initiated_via": {
            "type": "string",
            "$ref": "#/components/schemas/CrmInitiatedVia",
            "description": "The way it was done: `ui` (the Customer App), `maia`, `api`, `import`, `sync` (a connected Google mailbox or calendar), `automation` or `system`. A change made through this API by Maia appears with the person as `actor` and `initiated_via` `maia`.",
            "example": "maia",
            "readOnly": true
          },
          "actor": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person of the account, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the person. `null` when the actor is not a person of the account or is no longer a member of it.",
                "example": "Sergio Gallego"
              }
            },
            "description": "Who did it. Rows that are not available to the user have kind `system` and no name. Never contains an email address.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "readOnly": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/ActivityAvailability",
            "description": "`available`: the row is complete. `unavailable`: it exists but the user cannot see its content (an email, meeting, task or note outside their access); `data` is empty. `deleted`: the email or meeting it pointed to was deleted for good; `data` is empty.",
            "example": "available",
            "readOnly": true
          },
          "data": {
            "description": "What the row shows, as an object whose keys depend on `type` (for example `opportunity.stage_changed` carries the old and new stage names, `note.created` the title of the note). It is `{}` when `availability` is not `available`. Free text typed by people (titles, names, subjects) is returned as written and must be escaped before showing it as HTML. Besides the keys of each type, the API adds these when they apply: `email` (rows `email.sent` and `email.received`), `meeting` (rows `meeting.*`), `campaign` (rows of email and SMS campaigns) and `reference` (the object the row is about). The start and the end of a workflow execution (`automation.workflow.started`, and `automation.workflow.finished` or, when it left through its exit conditions, `automation.workflow.exited`) carry `workflow_id`, `workflow_title` (as it was then), `revision` and `execution_id`; the end adds `outcome` (`completed`, `stopped` or `canceled`), `cause` when it has one and, for an exit, `exit` (the event that made it leave, or `filter`).",
            "type": "object",
            "properties": {
              "email": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the email message.",
                    "example": "d4c9a0e2-7b31-4f58-a6d2-18e5b3c70f94"
                  },
                  "access": {
                    "$ref": "#/components/schemas/EmailAccessLevel",
                    "description": "How much of the message the user can read: `metadata_only` (addresses and date), `subject_and_metadata` or `full_access`.",
                    "example": "full_access"
                  },
                  "content_state": {
                    "$ref": "#/components/schemas/EmailContentState",
                    "description": "Whether the body is stored: `index_only`, `hydrating` (still being downloaded from Google), `full` or `unavailable`.",
                    "example": "full"
                  },
                  "subject": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Subject. `null` with `metadata_only` access.",
                    "example": "Re: Annual plan"
                  },
                  "snippet": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Start of the message as stored.",
                    "example": "Thanks, we will confirm on Monday."
                  },
                  "preview": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The snippet without the quoted previous email and the unsubscribe footer. `null` without snippet.",
                    "example": "Thanks, we will confirm on Monday."
                  },
                  "sender_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name of the sender.",
                    "example": "Ana Torres"
                  },
                  "sender_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Email address of the sender.",
                    "example": "ana@example.com"
                  },
                  "sender_kind": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who the sender is in the account (a user, a contact, an unknown address).",
                    "example": "contact"
                  },
                  "sender_contact_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "description": "UUID of the contact when the sender is one.",
                    "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                  },
                  "sent_by_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Member who sent it from the CRM when the sender is a shared mailbox.",
                    "example": "Sergio Gallego"
                  },
                  "recipient_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name, or address if it has no name, of the first `to` recipient.",
                    "example": "Sergio Gallego"
                  },
                  "recipient_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Address of the first `to` recipient.",
                    "example": "sergio@acme.test"
                  },
                  "recipient_kind": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who the first recipient is in the account.",
                    "example": "user"
                  },
                  "recipient_contact_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "description": "UUID of the contact when the first recipient is one.",
                    "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                  },
                  "recipient_others": {
                    "type": "integer",
                    "description": "How many more `to` recipients there are.",
                    "example": 0
                  },
                  "attachment_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Number of attachments. `null` when unknown.",
                    "example": 0
                  },
                  "ai_summary": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "AI summary of the email. Only when `ai_summary_state` is `ready`.",
                    "example": "Ana will confirm the annual plan on Monday."
                  },
                  "ai_summary_state": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/EmailAiSummaryState"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "State of the AI summary; `null` unless the email is incoming, complete, readable with full access and AI summaries are available in the account.",
                    "example": null
                  }
                },
                "description": "The email message of an `email.sent` or `email.received` row, read when the page is served with the same privacy as the email itself: what appears depends on how much of the mailbox the user can read (`access`). Fields the user may not read are `null`.",
                "example": {
                  "id": "d4c9a0e2-7b31-4f58-a6d2-18e5b3c70f94",
                  "access": "full_access",
                  "content_state": "full",
                  "subject": "Re: Annual plan",
                  "preview": "Thanks, we will confirm on Monday.",
                  "sender_name": "Ana Torres",
                  "sender_address": "ana@example.com",
                  "recipient_name": "Sergio Gallego",
                  "recipient_address": "sergio@acme.test",
                  "recipient_others": 0,
                  "attachment_count": 0
                }
              },
              "meeting": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the meeting.",
                    "example": "b7f2c9a1-3e48-4d6b-8a05-c1d9e4f27b63"
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Title of the meeting.",
                    "example": "Annual plan review"
                  },
                  "conference_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Kind of video call, if any.",
                    "example": "google_meet"
                  },
                  "conference_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Join link of the video call.",
                    "example": "https://meet.google.com/abc-defg-hij"
                  },
                  "original_time_zone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IANA time zone of the meeting in its source calendar. `null` for an all-day meeting or when unknown.",
                    "example": "Europe/Madrid"
                  },
                  "location": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Physical location.",
                    "example": "Acme office, Madrid"
                  },
                  "participant_count": {
                    "type": "integer",
                    "description": "Number of participants.",
                    "example": 3
                  },
                  "organizer_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name of the organizer.",
                    "example": "Sergio Gallego"
                  },
                  "booking": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "page_title": {
                        "type": "string",
                        "description": "Title of the booking page.",
                        "example": "Product demo"
                      },
                      "guest_name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Name the guest wrote.",
                        "example": "Ana Torres"
                      }
                    },
                    "description": "The booking page that created the meeting. `null` when it does not come from a booking page. `guest_name` is the name the guest wrote (or their email), `null` once it was withdrawn.",
                    "example": null
                  }
                },
                "description": "The meeting of a `meeting.*` row, read when the page is served and only when the user can see that meeting in the calendars it is allowed to read.",
                "example": {
                  "id": "b7f2c9a1-3e48-4d6b-8a05-c1d9e4f27b63",
                  "title": "Annual plan review",
                  "conference_type": "google_meet",
                  "conference_url": "https://meet.google.com/abc-defg-hij",
                  "original_time_zone": "Europe/Madrid",
                  "location": null,
                  "participant_count": 3,
                  "organizer_name": "Sergio Gallego",
                  "booking": null
                }
              },
              "campaign": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the campaign.",
                    "example": "6e1a9d34-2c57-4b80-9f13-a4d7c2e85b01"
                  },
                  "subject": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Subject. `null` for an SMS campaign.",
                    "example": "Autumn offers"
                  },
                  "thumbnail_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Thumbnail of the campaign.",
                    "example": "https://cdn.easymailing.com/thumbnails/6e1a9d34.png"
                  },
                  "sent_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When it was sent, ISO 8601.",
                    "example": "2026-10-20T08:00:00+00:00"
                  }
                },
                "description": "The campaign of a campaign row (`marketing.email.campaign`, `marketing.sms.campaign`, `marketing.email.bounced`, `marketing.email.complaint`, `marketing.sms.replied`, `audience.email.revalidated`). Only for users who can read campaign reports and while the campaign still exists.",
                "example": {
                  "uuid": "6e1a9d34-2c57-4b80-9f13-a4d7c2e85b01",
                  "subject": "Autumn offers",
                  "thumbnail_url": null,
                  "sent_at": "2026-10-20T08:00:00+00:00"
                }
              },
              "reference": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "kind": {
                    "$ref": "#/components/schemas/ActivityReferenceKind",
                    "description": "Kind of object.",
                    "example": "note"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the object.",
                    "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
                  },
                  "execution_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Only for `automation_workflow`: UUID of the execution of the workflow that the row is about.",
                    "example": "3f9c1e72-6b0a-4d85-9e24-7a1c5d8b0f36"
                  },
                  "preview": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Small summary of the object, only for notes, tasks, contacts, companies and opportunities. Notes: title, author_name, updated_at, excerpt (plain text, up to 400 characters). Tasks: title, due_at, status, task_type, assignee_name. Companies: name, domain. Contacts: name, email, company_name. Opportunities: name, amount, currency, stage_name, pipeline_name.",
                    "example": {
                      "title": "Call with Ana, 30 Oct",
                      "excerpt": "Ana wants the annual plan.",
                      "author_name": "Sergio Gallego"
                    }
                  }
                },
                "description": "The object the row is about, so you can read it with its own operations. Only for users who can open that object and while it exists. Never on rows that are not available.",
                "example": {
                  "kind": "note",
                  "id": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62",
                  "preview": {
                    "title": "Call with Ana, 30 Oct",
                    "excerpt": "Ana wants the annual plan.",
                    "author_name": "Sergio Gallego"
                  }
                }
              }
            },
            "example": {
              "from_pipeline_name": "Sales",
              "to_pipeline_name": "Sales",
              "from_stage_name": "Proposal",
              "to_stage_name": "Negotiation",
              "from_stage_type": "open",
              "to_stage_type": "open",
              "transition_kind": "progressed",
              "amount": "12000.00",
              "currency": "EUR",
              "reference": {
                "kind": "opportunity",
                "id": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "preview": {
                  "name": "Acme annual plan",
                  "amount": "12000.00",
                  "currency": "EUR",
                  "stage_name": "Negotiation",
                  "pipeline_name": "Sales"
                }
              }
            },
            "readOnly": true
          },
          "causation_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the operation that caused the row. Rows with the same value are the effects of one intention (for example a bulk action). `null` for hidden rows and when the row has none.",
            "example": "4b7d1e92-5a30-4c68-8f15-e9a2c0d37b46",
            "readOnly": true
          }
        }
      },
      "Activity.jsonld-activity.list": {
        "type": "object",
        "description": "`list_activities` (fase 5): the activity timeline of one contact, company or opportunity, newest first. Generated\nfrom the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's.\n\nThe operation is open to whoever reads contacts, companies or opportunities (`security` with ` or `); the provider\nthen demands the barrier of the kind of record asked for, as the use case does. It pages forward only by cursor\n(`cursor[gt]`, decision 3 of the coordinator): {@see ForwardOnlyCursor} drops `hydra:previous`. A row has no item\noperation; API Platform still names it after the collection (`@id` `/activities/{uuid}`), an IRI that leads to no\nroute (404): it is not a link to follow and the documentation does not publish it.\n\n`data` is `{}` when the row is not available (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the activity row.",
            "example": "0c8e5b37-91d2-4a6f-b3e0-7d2a4f61c985",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "description": "Dotted type of the fact. Records and CRM: `contact.created`, `contact.fields_changed`, `contact.tags_changed`, `contact.company_unlinked`, `company.created`, `company.fields_changed`, `opportunity.created`, `opportunity.fields_changed`, `opportunity.stage_changed`, `opportunity.pipeline_changed`, `opportunity.company_unlinked`, `note.created`, `note.edited`, `note.deleted`, `task.created`, `task.completed`, `task.reopened`, `meeting.scheduled`, `meeting.rescheduled`, `meeting.cancelled`, `email.sent`, `email.received`, `file.uploaded`, `file.linked`, `file.removed`, `call.completed`, `call.unanswered`, `call.missed`, `call.voicemail` and `message.conversation`. Campaigns: `marketing.email.campaign`, `marketing.email.bounced`, `marketing.email.complaint`, `marketing.sms.campaign` and `marketing.sms.replied`. Audiences: `audience.email.status_changed`, `audience.sms.status_changed`, `audience.email.confirmation_sent`, `audience.sms.confirmation_sent`, `audience.email.revalidated`, `audience.groups_changed` and `audience.fields_changed`. Forms and surveys: `form.submitted`, `form.completed`, `survey.started` and `survey.completed`. Purchases: `ecommerce.customer.linked`, `ecommerce.order.placed`, `ecommerce.order.shipped`, `ecommerce.order.cancelled` and `ecommerce.order.refunded`. Notes from before the CRM: `legacy.note`. Automations: `automation.run`, `automation.workflow.started`, `automation.workflow.finished` and `automation.workflow.exited`. New types can appear, so do not treat the list as closed. It decides which keys `data` has.",
            "example": "opportunity.stage_changed",
            "readOnly": true
          },
          "category": {
            "type": "string",
            "$ref": "#/components/schemas/EntityActivityCategory",
            "description": "Area of the product the fact belongs to. `crm` groups everything about companies, opportunities, tasks, notes, files, emails and meetings.",
            "example": "crm",
            "readOnly": true
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivityChannel"
              },
              {
                "type": "null"
              }
            ],
            "description": "Channel the fact happened on, when it applies. `null` otherwise.",
            "example": "email",
            "readOnly": true
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it happened, ISO 8601. For a grouped row, the same as `last_occurred_at`.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "first_occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "First time the grouped fact happened, ISO 8601. Equal to `occurred_at` when `occurrence_count` is 1.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "last_occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last time the grouped fact happened, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "occurrence_count": {
            "type": "integer",
            "description": "How many times the same fact was grouped into this row (for example the opens of one campaign by the same person). 1 for a single fact.",
            "example": 1,
            "minimum": 1,
            "readOnly": true
          },
          "initiated_via": {
            "type": "string",
            "$ref": "#/components/schemas/CrmInitiatedVia",
            "description": "The way it was done: `ui` (the Customer App), `maia`, `api`, `import`, `sync` (a connected Google mailbox or calendar), `automation` or `system`. A change made through this API by Maia appears with the person as `actor` and `initiated_via` `maia`.",
            "example": "maia",
            "readOnly": true
          },
          "actor": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person of the account, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the person. `null` when the actor is not a person of the account or is no longer a member of it.",
                "example": "Sergio Gallego"
              }
            },
            "description": "Who did it. Rows that are not available to the user have kind `system` and no name. Never contains an email address.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "readOnly": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/ActivityAvailability",
            "description": "`available`: the row is complete. `unavailable`: it exists but the user cannot see its content (an email, meeting, task or note outside their access); `data` is empty. `deleted`: the email or meeting it pointed to was deleted for good; `data` is empty.",
            "example": "available",
            "readOnly": true
          },
          "data": {
            "description": "What the row shows, as an object whose keys depend on `type` (for example `opportunity.stage_changed` carries the old and new stage names, `note.created` the title of the note). It is `{}` when `availability` is not `available`. Free text typed by people (titles, names, subjects) is returned as written and must be escaped before showing it as HTML. Besides the keys of each type, the API adds these when they apply: `email` (rows `email.sent` and `email.received`), `meeting` (rows `meeting.*`), `campaign` (rows of email and SMS campaigns) and `reference` (the object the row is about). The start and the end of a workflow execution (`automation.workflow.started`, and `automation.workflow.finished` or, when it left through its exit conditions, `automation.workflow.exited`) carry `workflow_id`, `workflow_title` (as it was then), `revision` and `execution_id`; the end adds `outcome` (`completed`, `stopped` or `canceled`), `cause` when it has one and, for an exit, `exit` (the event that made it leave, or `filter`).",
            "type": "object",
            "properties": {
              "email": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the email message.",
                    "example": "d4c9a0e2-7b31-4f58-a6d2-18e5b3c70f94"
                  },
                  "access": {
                    "$ref": "#/components/schemas/EmailAccessLevel",
                    "description": "How much of the message the user can read: `metadata_only` (addresses and date), `subject_and_metadata` or `full_access`.",
                    "example": "full_access"
                  },
                  "content_state": {
                    "$ref": "#/components/schemas/EmailContentState",
                    "description": "Whether the body is stored: `index_only`, `hydrating` (still being downloaded from Google), `full` or `unavailable`.",
                    "example": "full"
                  },
                  "subject": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Subject. `null` with `metadata_only` access.",
                    "example": "Re: Annual plan"
                  },
                  "snippet": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Start of the message as stored.",
                    "example": "Thanks, we will confirm on Monday."
                  },
                  "preview": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The snippet without the quoted previous email and the unsubscribe footer. `null` without snippet.",
                    "example": "Thanks, we will confirm on Monday."
                  },
                  "sender_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name of the sender.",
                    "example": "Ana Torres"
                  },
                  "sender_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Email address of the sender.",
                    "example": "ana@example.com"
                  },
                  "sender_kind": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who the sender is in the account (a user, a contact, an unknown address).",
                    "example": "contact"
                  },
                  "sender_contact_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "description": "UUID of the contact when the sender is one.",
                    "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                  },
                  "sent_by_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Member who sent it from the CRM when the sender is a shared mailbox.",
                    "example": "Sergio Gallego"
                  },
                  "recipient_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name, or address if it has no name, of the first `to` recipient.",
                    "example": "Sergio Gallego"
                  },
                  "recipient_address": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Address of the first `to` recipient.",
                    "example": "sergio@acme.test"
                  },
                  "recipient_kind": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Who the first recipient is in the account.",
                    "example": "user"
                  },
                  "recipient_contact_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid",
                    "description": "UUID of the contact when the first recipient is one.",
                    "example": "3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                  },
                  "recipient_others": {
                    "type": "integer",
                    "description": "How many more `to` recipients there are.",
                    "example": 0
                  },
                  "attachment_count": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Number of attachments. `null` when unknown.",
                    "example": 0
                  },
                  "ai_summary": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "AI summary of the email. Only when `ai_summary_state` is `ready`.",
                    "example": "Ana will confirm the annual plan on Monday."
                  },
                  "ai_summary_state": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/EmailAiSummaryState"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "State of the AI summary; `null` unless the email is incoming, complete, readable with full access and AI summaries are available in the account.",
                    "example": null
                  }
                },
                "description": "The email message of an `email.sent` or `email.received` row, read when the page is served with the same privacy as the email itself: what appears depends on how much of the mailbox the user can read (`access`). Fields the user may not read are `null`.",
                "example": {
                  "id": "d4c9a0e2-7b31-4f58-a6d2-18e5b3c70f94",
                  "access": "full_access",
                  "content_state": "full",
                  "subject": "Re: Annual plan",
                  "preview": "Thanks, we will confirm on Monday.",
                  "sender_name": "Ana Torres",
                  "sender_address": "ana@example.com",
                  "recipient_name": "Sergio Gallego",
                  "recipient_address": "sergio@acme.test",
                  "recipient_others": 0,
                  "attachment_count": 0
                }
              },
              "meeting": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the meeting.",
                    "example": "b7f2c9a1-3e48-4d6b-8a05-c1d9e4f27b63"
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Title of the meeting.",
                    "example": "Annual plan review"
                  },
                  "conference_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Kind of video call, if any.",
                    "example": "google_meet"
                  },
                  "conference_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Join link of the video call.",
                    "example": "https://meet.google.com/abc-defg-hij"
                  },
                  "original_time_zone": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "IANA time zone of the meeting in its source calendar. `null` for an all-day meeting or when unknown.",
                    "example": "Europe/Madrid"
                  },
                  "location": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Physical location.",
                    "example": "Acme office, Madrid"
                  },
                  "participant_count": {
                    "type": "integer",
                    "description": "Number of participants.",
                    "example": 3
                  },
                  "organizer_name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Name of the organizer.",
                    "example": "Sergio Gallego"
                  },
                  "booking": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "page_title": {
                        "type": "string",
                        "description": "Title of the booking page.",
                        "example": "Product demo"
                      },
                      "guest_name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Name the guest wrote.",
                        "example": "Ana Torres"
                      }
                    },
                    "description": "The booking page that created the meeting. `null` when it does not come from a booking page. `guest_name` is the name the guest wrote (or their email), `null` once it was withdrawn.",
                    "example": null
                  }
                },
                "description": "The meeting of a `meeting.*` row, read when the page is served and only when the user can see that meeting in the calendars it is allowed to read.",
                "example": {
                  "id": "b7f2c9a1-3e48-4d6b-8a05-c1d9e4f27b63",
                  "title": "Annual plan review",
                  "conference_type": "google_meet",
                  "conference_url": "https://meet.google.com/abc-defg-hij",
                  "original_time_zone": "Europe/Madrid",
                  "location": null,
                  "participant_count": 3,
                  "organizer_name": "Sergio Gallego",
                  "booking": null
                }
              },
              "campaign": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "uuid": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the campaign.",
                    "example": "6e1a9d34-2c57-4b80-9f13-a4d7c2e85b01"
                  },
                  "subject": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Subject. `null` for an SMS campaign.",
                    "example": "Autumn offers"
                  },
                  "thumbnail_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Thumbnail of the campaign.",
                    "example": "https://cdn.easymailing.com/thumbnails/6e1a9d34.png"
                  },
                  "sent_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When it was sent, ISO 8601.",
                    "example": "2026-10-20T08:00:00+00:00"
                  }
                },
                "description": "The campaign of a campaign row (`marketing.email.campaign`, `marketing.sms.campaign`, `marketing.email.bounced`, `marketing.email.complaint`, `marketing.sms.replied`, `audience.email.revalidated`). Only for users who can read campaign reports and while the campaign still exists.",
                "example": {
                  "uuid": "6e1a9d34-2c57-4b80-9f13-a4d7c2e85b01",
                  "subject": "Autumn offers",
                  "thumbnail_url": null,
                  "sent_at": "2026-10-20T08:00:00+00:00"
                }
              },
              "reference": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "kind": {
                    "$ref": "#/components/schemas/ActivityReferenceKind",
                    "description": "Kind of object.",
                    "example": "note"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "UUID of the object.",
                    "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
                  },
                  "execution_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Only for `automation_workflow`: UUID of the execution of the workflow that the row is about.",
                    "example": "3f9c1e72-6b0a-4d85-9e24-7a1c5d8b0f36"
                  },
                  "preview": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Small summary of the object, only for notes, tasks, contacts, companies and opportunities. Notes: title, author_name, updated_at, excerpt (plain text, up to 400 characters). Tasks: title, due_at, status, task_type, assignee_name. Companies: name, domain. Contacts: name, email, company_name. Opportunities: name, amount, currency, stage_name, pipeline_name.",
                    "example": {
                      "title": "Call with Ana, 30 Oct",
                      "excerpt": "Ana wants the annual plan.",
                      "author_name": "Sergio Gallego"
                    }
                  }
                },
                "description": "The object the row is about, so you can read it with its own operations. Only for users who can open that object and while it exists. Never on rows that are not available.",
                "example": {
                  "kind": "note",
                  "id": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62",
                  "preview": {
                    "title": "Call with Ana, 30 Oct",
                    "excerpt": "Ana wants the annual plan.",
                    "author_name": "Sergio Gallego"
                  }
                }
              }
            },
            "example": {
              "from_pipeline_name": "Sales",
              "to_pipeline_name": "Sales",
              "from_stage_name": "Proposal",
              "to_stage_name": "Negotiation",
              "from_stage_type": "open",
              "to_stage_type": "open",
              "transition_kind": "progressed",
              "amount": "12000.00",
              "currency": "EUR",
              "reference": {
                "kind": "opportunity",
                "id": "5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "preview": {
                  "name": "Acme annual plan",
                  "amount": "12000.00",
                  "currency": "EUR",
                  "stage_name": "Negotiation",
                  "pipeline_name": "Sales"
                }
              }
            },
            "readOnly": true
          },
          "causation_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifier of the operation that caused the row. Rows with the same value are the effects of one intention (for example a bulk action). `null` for hidden rows and when the row has none.",
            "example": "4b7d1e92-5a30-4c68-8f15-e9a2c0d37b46",
            "readOnly": true
          }
        }
      },
      "ActivityHistoryStatus-activity_history_status.read": {
        "type": "object",
        "description": "`get_activity_history_status` (fase 5): whether the earlier activity of the account is still being copied into the\nnew timeline. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's. A\nsingleton of the account: no identifier in the path.",
        "deprecated": false,
        "properties": {
          "loading": {
            "type": "boolean",
            "description": "`true` while the earlier history is still being loaded in the background; `false` when it is complete, and also for accounts that never had an old history to load.",
            "example": false,
            "readOnly": true
          }
        }
      },
      "ActivityHistoryStatus.jsonld-activity_history_status.read": {
        "type": "object",
        "description": "`get_activity_history_status` (fase 5): whether the earlier activity of the account is still being copied into the\nnew timeline. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's. A\nsingleton of the account: no identifier in the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "loading": {
            "type": "boolean",
            "description": "`true` while the earlier history is still being loaded in the background; `false` when it is complete, and also for accounts that never had an old history to load.",
            "example": false,
            "readOnly": true
          }
        }
      },
      "AddToGroupAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is added to, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "AddToGroupAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is added to, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "AddToGroupAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "group": {
            "description": "IRI of the group the contact is added to, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "AddToGroupAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is added to, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "AiAgent-ai_agent.list": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the agent.",
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Empty while the draft has no name; publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the agent's icon (colourless icon of the Easymailing catalog). Default `agent-spark`.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentStatus",
            "description": "`draft`: never published. `published`: has a published version that can be asked. `archived`: retired; it cannot change or be asked, and the automations that use it stop with `agent_unavailable`.",
            "example": "published",
            "readOnly": true
          },
          "published_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of the current published version; `null` while never published.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the current published version (always true while never published). What runs, when someone asks the agent or an automation uses it, is the published version.",
            "example": false,
            "readOnly": true
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent: `team` = everyone who edits automations; `managers` = only those who manage them.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Spend cap of this agent per billing period, `{amount, currency}` in EUR; `null` = no cap of its own. The account may also have a cap for all agents; both apply.",
            "example": null
          },
          "tool_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`type` of each tool of the draft, in order.",
            "example": [
              "web_search",
              "read_page",
              "crm_read"
            ],
            "readOnly": true
          },
          "used_in": {
            "type": "integer",
            "description": "Published automations whose current version uses the agent.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "spent_last_30_days": {
            "type": "object",
            "description": "What the agent spent in the last 30 days, in executions and tests, `{amount, currency}` in EUR.",
            "example": {
              "amount": "4.82",
              "currency": "EUR"
            },
            "readOnly": true
          },
          "created_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who created it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "updated_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who changed it last.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created, ISO 8601.",
            "example": "2026-11-12T09:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it changed last, ISO 8601.",
            "example": "2026-11-14T16:05:00+00:00",
            "readOnly": true
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was archived; `null` if it is not.",
            "example": "2026-11-20T10:00:00+00:00",
            "readOnly": true
          }
        }
      },
      "AiAgent-ai_agent.read": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the agent.",
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Empty while the draft has no name; publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the agent's icon (colourless icon of the Easymailing catalog). Default `agent-spark`.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentStatus",
            "description": "`draft`: never published. `published`: has a published version that can be asked. `archived`: retired; it cannot change or be asked, and the automations that use it stop with `agent_unavailable`.",
            "example": "published",
            "readOnly": true
          },
          "published_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of the current published version; `null` while never published.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the current published version (always true while never published). What runs, when someone asks the agent or an automation uses it, is the published version.",
            "example": false,
            "readOnly": true
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent: `team` = everyone who edits automations; `managers` = only those who manage them.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Spend cap of this agent per billing period, `{amount, currency}` in EUR; `null` = no cap of its own. The account may also have a cap for all agents; both apply.",
            "example": null
          },
          "tool_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`type` of each tool of the draft, in order.",
            "example": [
              "web_search",
              "read_page",
              "crm_read"
            ],
            "readOnly": true
          },
          "draft": {
            "type": "object",
            "description": "The definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            },
            "readOnly": false
          },
          "published": {
            "type": [
              "object",
              "null"
            ],
            "description": "The version that is current, `{number, definition, published_by, published_at}`, with `definition` in the same shape as `draft`; `null` while never published. What actually runs.",
            "example": null,
            "readOnly": true
          },
          "used_in": {
            "type": "integer",
            "description": "Published automations whose current version uses the agent.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "spent_last_30_days": {
            "type": "object",
            "description": "What the agent spent in the last 30 days, in executions and tests, `{amount, currency}` in EUR.",
            "example": {
              "amount": "4.82",
              "currency": "EUR"
            },
            "readOnly": true
          },
          "created_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who created it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "updated_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who changed it last.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created, ISO 8601.",
            "example": "2026-11-12T09:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it changed last, ISO 8601.",
            "example": "2026-11-14T16:05:00+00:00",
            "readOnly": true
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was archived; `null` if it is not.",
            "example": "2026-11-20T10:00:00+00:00",
            "readOnly": true
          }
        }
      },
      "AiAgent.AiAgentCreateInput": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Surrounding spaces are removed. A draft can be saved without name, but publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters. Shown in the agent selector of the automation step and wherever the agent is listed.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the icon; default `agent-spark`.",
            "example": "agent-spark",
            "default": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "draft": {
            "type": "object",
            "description": "The definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent. Default `team`.",
            "example": "team",
            "default": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Optional spend cap of this agent per billing period, `{amount, currency}` in EUR. Missing or `null` = no cap of its own.",
            "example": {
              "amount": "15.00",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgent.AiAgentCreateInput.jsonld": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Surrounding spaces are removed. A draft can be saved without name, but publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters. Shown in the agent selector of the automation step and wherever the agent is listed.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the icon; default `agent-spark`.",
            "example": "agent-spark",
            "default": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "draft": {
            "type": "object",
            "description": "The definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent. Default `team`.",
            "example": "team",
            "default": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Optional spend cap of this agent per billing period, `{amount, currency}` in EUR. Missing or `null` = no cap of its own.",
            "example": {
              "amount": "15.00",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgent.AiAgentUpdateInput": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, up to 120 characters. Surrounding spaces are removed. Missing = unchanged.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "New description, up to 500 characters. Missing = unchanged.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "New icon key. Missing = unchanged.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "draft": {
            "type": "object",
            "description": "The keys of the draft to change: each key sent (`instructions`, `tools`, `limits`) REPLACES that key of the draft as a whole (a `tools` list replaces the whole list; `limits` replaces the three limits, and a limit missing in it takes its default); the keys not sent are kept. Missing `draft` = the definition is not touched.\n\nThe definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent. Missing = unchanged.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "New own cap per period, `{amount, currency}` in EUR. `null` removes it; missing keeps it.",
            "example": {
              "amount": "15.00",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgent.AiAgentUpdateInput.jsonld": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, up to 120 characters. Surrounding spaces are removed. Missing = unchanged.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "New description, up to 500 characters. Missing = unchanged.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "New icon key. Missing = unchanged.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "draft": {
            "type": "object",
            "description": "The keys of the draft to change: each key sent (`instructions`, `tools`, `limits`) REPLACES that key of the draft as a whole (a `tools` list replaces the whole list; `limits` replaces the three limits, and a limit missing in it takes its default); the keys not sent are kept. Missing `draft` = the definition is not touched.\n\nThe definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent. Missing = unchanged.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "New own cap per period, `{amount, currency}` in EUR. `null` removes it; missing keeps it.",
            "example": {
              "amount": "15.00",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgent.jsonld-ai_agent.list": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the agent.",
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Empty while the draft has no name; publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the agent's icon (colourless icon of the Easymailing catalog). Default `agent-spark`.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentStatus",
            "description": "`draft`: never published. `published`: has a published version that can be asked. `archived`: retired; it cannot change or be asked, and the automations that use it stop with `agent_unavailable`.",
            "example": "published",
            "readOnly": true
          },
          "published_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of the current published version; `null` while never published.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the current published version (always true while never published). What runs, when someone asks the agent or an automation uses it, is the published version.",
            "example": false,
            "readOnly": true
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent: `team` = everyone who edits automations; `managers` = only those who manage them.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Spend cap of this agent per billing period, `{amount, currency}` in EUR; `null` = no cap of its own. The account may also have a cap for all agents; both apply.",
            "example": null
          },
          "tool_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`type` of each tool of the draft, in order.",
            "example": [
              "web_search",
              "read_page",
              "crm_read"
            ],
            "readOnly": true
          },
          "used_in": {
            "type": "integer",
            "description": "Published automations whose current version uses the agent.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "spent_last_30_days": {
            "type": "object",
            "description": "What the agent spent in the last 30 days, in executions and tests, `{amount, currency}` in EUR.",
            "example": {
              "amount": "4.82",
              "currency": "EUR"
            },
            "readOnly": true
          },
          "created_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who created it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "updated_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who changed it last.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created, ISO 8601.",
            "example": "2026-11-12T09:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it changed last, ISO 8601.",
            "example": "2026-11-14T16:05:00+00:00",
            "readOnly": true
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was archived; `null` if it is not.",
            "example": "2026-11-20T10:00:00+00:00",
            "readOnly": true
          }
        }
      },
      "AiAgent.jsonld-ai_agent.read": {
        "type": "object",
        "description": "AI agents of the public API (ADR-0195). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n\nEvery operation checks its capability in the provider or processor before the use case ({@see \\App\\Application\\Automation\\ApiAiAgentAccess}),\nbecause API Platform evaluates `security` after the provider; the rules live in the CoreBundle use cases (`Service\\App\\AiAgent`), the\nsame the internal API runs. The definition travels in snake_case ({@see \\App\\Api\\State\\Mapper\\Automation\\AiAgentDefinitionTranslator}).\n`/ai_agents/actions/propose` is propose_ai_agent, not an agent.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the agent.",
            "example": "6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the agent, up to 120 characters. Empty while the draft has no name; publishing needs one.",
            "example": "Investigador de empresas",
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "description": "What the agent is for, up to 500 characters.",
            "example": "Investiga empresas en internet y en el CRM, con fuentes.",
            "maxLength": 500
          },
          "icon": {
            "type": "string",
            "description": "Key of the agent's icon (colourless icon of the Easymailing catalog). Default `agent-spark`.",
            "example": "agent-spark",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentStatus",
            "description": "`draft`: never published. `published`: has a published version that can be asked. `archived`: retired; it cannot change or be asked, and the automations that use it stop with `agent_unavailable`.",
            "example": "published",
            "readOnly": true
          },
          "published_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of the current published version; `null` while never published.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the current published version (always true while never published). What runs, when someone asks the agent or an automation uses it, is the published version.",
            "example": false,
            "readOnly": true
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Who can use the agent: `team` = everyone who edits automations; `managers` = only those who manage them.",
            "example": "team"
          },
          "period_cap": {
            "type": [
              "object",
              "null"
            ],
            "description": "Spend cap of this agent per billing period, `{amount, currency}` in EUR; `null` = no cap of its own. The account may also have a cap for all agents; both apply.",
            "example": null
          },
          "tool_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`type` of each tool of the draft, in order.",
            "example": [
              "web_search",
              "read_page",
              "crm_read"
            ],
            "readOnly": true
          },
          "draft": {
            "type": "object",
            "description": "The definition of the agent, with three keys, all optional on write (what is missing takes its default):\n- `instructions` (string, up to 8,000 characters): who the agent is and how it works: role, goal, method and what it never does. It does NOT describe one task: the task is given each time the agent is asked.\n- `tools` (list): `{type, config, mode}`. Each type at most once, except `mcp`, once per connection. Reading tools (`mode` is `read`, the only one they have): `web_search` (search the internet, with sources), `read_page` (open public https pages that appear in the task, in a search result or in a record it read; `config.allowed_domains` is an optional list of up to 20 domains, lowercase, without scheme, port or path; empty = any public domain), `crm_read` (search and read contacts, companies, opportunities, tasks, notes and their activity, with the permissions of whoever asks; of emails only subject, date and sender), `business_context` (deprecated: the business context now reaches every agent; the tool is still accepted and ignored), `files` (`config.files`: UUIDs of up to 20 files uploaded to the agent in Easymailing) and `calendar_availability` (free slots of a booking page, `config.booking_page`: its UUID). Tools that write, with `mode` `approval` (ask for approval, the default) or `auto` (automatic): `crm_create_note`, `crm_create_task`, `crm_update_opportunity`, `crm_move_opportunity` and `email_draft` (a draft, never sent). `mcp` uses an app connected in Easymailing: `config.connection` (its UUID) and `config.tools` (`{name, fingerprint, mode}`, up to 20 in all; `read` for tools of the app that only read). Writing tools only write inside automations: in a run started with `run_ai_agent` they never write (see there). `config` is `{}` for the tools without settings.\n- `limits` (per task): `max_tool_calls` (integer 1-30, default 10), `max_seconds` (integer 10-600, default 120; counts only the agent's own work, not queues or waits) and `max_cost` (`{amount, currency}` in EUR, from 0.01 to 5.00, default 0.25).\nUnknown keys, unknown tool types, repeated tools and out-of-range values are rejected, never corrected silently.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            },
            "readOnly": false
          },
          "published": {
            "type": [
              "object",
              "null"
            ],
            "description": "The version that is current, `{number, definition, published_by, published_at}`, with `definition` in the same shape as `draft`; `null` while never published. What actually runs.",
            "example": null,
            "readOnly": true
          },
          "used_in": {
            "type": "integer",
            "description": "Published automations whose current version uses the agent.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "spent_last_30_days": {
            "type": "object",
            "description": "What the agent spent in the last 30 days, in executions and tests, `{amount, currency}` in EUR.",
            "example": {
              "amount": "4.82",
              "currency": "EUR"
            },
            "readOnly": true
          },
          "created_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who created it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "updated_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who changed it last.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created, ISO 8601.",
            "example": "2026-11-12T09:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it changed last, ISO 8601.",
            "example": "2026-11-14T16:05:00+00:00",
            "readOnly": true
          },
          "archived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was archived; `null` if it is not.",
            "example": "2026-11-20T10:00:00+00:00",
            "readOnly": true
          }
        }
      },
      "AiAgentProposal-ai_agent_proposal.read": {
        "type": "object",
        "description": "`propose_ai_agent` (ADR-0195): a proposal of agent from a description, never saved. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA POST that answers 200: it creates nothing, so the proposal has no identifier.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Proposed name.",
            "example": "Investigador de empresas"
          },
          "description": {
            "type": "string",
            "description": "Proposed description.",
            "example": "Investiga las empresas que entran por el formulario web y valora si encajan."
          },
          "icon": {
            "type": "string",
            "description": "Proposed icon key.",
            "example": "agent-spark"
          },
          "draft": {
            "type": "object",
            "description": "Proposed definition (`instructions`, `tools`, `limits`), in the shape described in `create_ai_agent`.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Proposed access; always `team` (the default). Change it with the body of `create_ai_agent`.",
            "example": "team"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "What the description asked for and the proposal could not include, as `{code, message}`: `tool_unavailable` (a tool or connection that does not exist in the account), `file_upload_needed` (files that only a person can upload). Empty when everything fit.",
            "example": [
              {
                "code": "tool_unavailable",
                "message": "Writing the result to Notion is not available: agents can only read for now."
              }
            ]
          },
          "spent": {
            "type": "object",
            "description": "What this call cost, `{amount, currency}` in EUR, already charged to the balance.",
            "example": {
              "amount": "0.0210",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgentProposal.AiAgentProposeInput": {
        "type": "object",
        "description": "`propose_ai_agent` (ADR-0195): a proposal of agent from a description, never saved. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA POST that answers 200: it creates nothing, so the proposal has no identifier.",
        "deprecated": false,
        "required": [
          "description"
        ],
        "properties": {
          "description": {
            "type": "string",
            "description": "What the agent should do, in your own words, up to 2,000 characters. The more it says about the goal, the sources to trust and what the agent must never do, the better the proposal.",
            "example": "Que investigue las empresas que entran por el formulario web: a qué se dedican, tamaño, novedades recientes y si encajan con lo que vendemos. Que cite siempre las fuentes.",
            "maxLength": 2000
          }
        }
      },
      "AiAgentProposal.AiAgentProposeInput.jsonld": {
        "type": "object",
        "description": "`propose_ai_agent` (ADR-0195): a proposal of agent from a description, never saved. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA POST that answers 200: it creates nothing, so the proposal has no identifier.",
        "deprecated": false,
        "required": [
          "description"
        ],
        "properties": {
          "description": {
            "type": "string",
            "description": "What the agent should do, in your own words, up to 2,000 characters. The more it says about the goal, the sources to trust and what the agent must never do, the better the proposal.",
            "example": "Que investigue las empresas que entran por el formulario web: a qué se dedican, tamaño, novedades recientes y si encajan con lo que vendemos. Que cite siempre las fuentes.",
            "maxLength": 2000
          }
        }
      },
      "AiAgentProposal.jsonld-ai_agent_proposal.read": {
        "type": "object",
        "description": "`propose_ai_agent` (ADR-0195): a proposal of agent from a description, never saved. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA POST that answers 200: it creates nothing, so the proposal has no identifier.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Proposed name.",
            "example": "Investigador de empresas"
          },
          "description": {
            "type": "string",
            "description": "Proposed description.",
            "example": "Investiga las empresas que entran por el formulario web y valora si encajan."
          },
          "icon": {
            "type": "string",
            "description": "Proposed icon key.",
            "example": "agent-spark"
          },
          "draft": {
            "type": "object",
            "description": "Proposed definition (`instructions`, `tools`, `limits`), in the shape described in `create_ai_agent`.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentAccess",
            "description": "Proposed access; always `team` (the default). Change it with the body of `create_ai_agent`.",
            "example": "team"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "What the description asked for and the proposal could not include, as `{code, message}`: `tool_unavailable` (a tool or connection that does not exist in the account), `file_upload_needed` (files that only a person can upload). Empty when everything fit.",
            "example": [
              {
                "code": "tool_unavailable",
                "message": "Writing the result to Notion is not available: agents can only read for now."
              }
            ]
          },
          "spent": {
            "type": "object",
            "description": "What this call cost, `{amount, currency}` in EUR, already charged to the balance.",
            "example": {
              "amount": "0.0210",
              "currency": "EUR"
            }
          }
        }
      },
      "AiAgentRun-ai_agent_run.read": {
        "type": "object",
        "description": "Runs of an AI agent asked through the public API (ADR-0195): asynchronous tasks on the same engine as the «Test» panel and the\n«AI agent» step (`AiAgentTestRun` with origin `api` and its `AiAgentRun`). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n`agentUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the run. Read it with `get_ai_agent_run`.",
            "example": "d4a8f3c1-7b52-4e09-8c16-5a2e9d0b4f73",
            "readOnly": true
          },
          "agent": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the agent that was asked.",
            "example": "/ai_agents/6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          },
          "agent_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Version of the agent that ran, frozen when the run started; `null` for a run of the draft.",
            "example": 3,
            "minimum": 1
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunSource",
            "description": "`published` or `draft`: what was run. A run of the draft is a test.",
            "example": "published"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunState",
            "description": "`queued`: waiting for a turn (an account has at most 5 agents working at the same time). `running`: the agent is working. `waiting_approval`: reserved for runs that wait for a person to approve something that writes; a run asked through the API does not write, so it does not happen today. `completed`: finished with an answer. `stopped`: ended without a valid complete answer; see `stop_cause`.",
            "example": "completed"
          },
          "stop_cause": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiAgentRunStopCause"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `stopped` run ended; `null` otherwise. `ai_credits_exhausted`, `ai_overage_exhausted`, `ai_agents_cap_reached`, `ai_agent_cap_reached`, `ai_credits_insufficient`, `ai_overage_unlimited`, `ai_payment_pending`: balance or caps, with the same meaning and remedy as in the errors of `run_ai_agent`. `economic_entitlement_unavailable`: the account lost CRM Pro. `agent_unavailable`: the agent was archived or the person can no longer use it. `ai_unavailable`: the AI provider failed after three attempts. `ai_output_invalid`: with `response_format: fields`, the answer did not fit the fields; it is charged and `answer_fields` is `null`.",
            "example": null
          },
          "limit_reached": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiAgentRunLimit"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set when the agent hit one of its limits and had to answer with what it had (the answer is still given and the run is `completed`): `cost` (it reached `limits.max_cost`), `tool_calls` or `time`. `null` otherwise.",
            "example": null
          },
          "task": {
            "type": "string",
            "description": "The task as it was sent.",
            "example": "Investiga Grupo Arenal Salud (arenalsalud.es). Mira si ya la tenemos en el CRM y evalúa si encaja con lo que vendemos."
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the task is about; `null` if none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "response_format": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunResponseFormat",
            "description": "`text` or `fields`, as requested.",
            "example": "fields"
          },
          "answer_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The answer when `response_format` is `text`; `null` while the run is not `completed`, and with `fields`.",
            "example": "Grupo Arenal Salud es un grupo sanitario privado con centros asistenciales. Encaje alto con lo que vendemos."
          },
          "answer_fields": {
            "type": [
              "object",
              "null"
            ],
            "description": "The answer when `response_format` is `fields`: one key per requested field, validated. `null` while the run is not `completed`, with `text`, and when `ai_output_invalid`.",
            "example": null
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Pages the agent used, as `{title, url}`. Empty when it used no web search or page.",
            "example": [
              {
                "title": "Grupo Arenal Salud",
                "url": "https://arenalsalud.es/"
              }
            ]
          },
          "tools_used": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One entry per tool call, in order: `{type, detail, result, at}`. `detail` and `result` are short texts. For `crm_read` they only appear when the person who asked can read that record; otherwise they are `null`. No internal reasoning is included.",
            "example": [
              {
                "type": "crm_read",
                "detail": "Search companies by domain arenalsalud.es",
                "result": "No company found",
                "at": "2026-11-15T10:40:04+00:00"
              },
              {
                "type": "web_search",
                "detail": "Grupo Arenal Salud",
                "result": "6 results",
                "at": "2026-11-15T10:40:07+00:00"
              }
            ]
          },
          "spent": {
            "type": "object",
            "description": "What the run has cost so far, `{amount, currency}` in EUR. It is charged turn by turn, so it grows while the run is going and is final when it ends.",
            "example": {
              "amount": "0.0830",
              "currency": "EUR"
            }
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Time the agent worked, in milliseconds; it does not count queue time or waits. `null` until it ends.",
            "example": 41200,
            "minimum": 0
          },
          "retry_after_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "While the run is `queued` or `running`, how long to wait before asking again; `null` when it has ended or waits for approval.",
            "example": 3000,
            "minimum": 0
          },
          "created_by": {
            "type": "object",
            "description": "Who asked, `{kind, name}`; `kind` is `user`, and a run asked by Maia is marked as made via Maia.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the run was requested, ISO 8601.",
            "example": "2026-11-15T10:40:00+00:00"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the agent started working; `null` while queued.",
            "example": "2026-11-15T10:40:02+00:00"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it ended; `null` while it has not.",
            "example": "2026-11-15T10:40:43+00:00"
          },
          "kept_until": {
            "type": "string",
            "description": "Until when the run can be read, ISO 8601 date and time; after that `get_ai_agent_run` answers 404. Copy what you need before.",
            "example": "2026-12-15T10:40:00+00:00"
          }
        }
      },
      "AiAgentRun.AiAgentRunInput": {
        "type": "object",
        "description": "Runs of an AI agent asked through the public API (ADR-0195): asynchronous tasks on the same engine as the «Test» panel and the\n«AI agent» step (`AiAgentTestRun` with origin `api` and its `AiAgentRun`). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n`agentUuid` is only the path.",
        "deprecated": false,
        "required": [
          "task"
        ],
        "properties": {
          "task": {
            "type": "string",
            "description": "What the agent has to do now, up to 4,000 characters. Write it as a complete request: the agent has no other context than its instructions, this task and what it reads.",
            "example": "Investiga Grupo Arenal Salud (arenalsalud.es). Mira si ya la tenemos en el CRM y evalúa si encaja con lo que vendemos.",
            "maxLength": 4000
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a CRM record the task is about: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The agent reads it with its CRM tool, so the agent must have `crm_read`. Optional.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "response_format": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentRunResponseFormat",
            "description": "`text` (default): free text in `answer_text`. `fields`: one value per field of `fields` in `answer_fields`, validated; use it when another step will read the answer.",
            "example": "fields",
            "default": "text"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Required when `response_format` is `fields`, up to 30 items, each `{path, type, required, items}`. `path` is the name of the field (letters, digits and `_`, up to 64 characters, no repeats); `type` is `text`, `number`, `date`, `boolean`, `object` or `list`; `required` says whether the answer must have it; `items` (only for `list`) is the type of each element. The answer is an object with those fields.",
            "example": [
              {
                "path": "a_que_se_dedica",
                "type": "text",
                "required": true
              },
              {
                "path": "sector",
                "type": "text",
                "required": true
              },
              {
                "path": "encaje",
                "type": "number",
                "required": true
              },
              {
                "path": "motivo_encaje",
                "type": "text",
                "required": false
              }
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentRunSource",
            "description": "`published` (default): the current published version, the one automations use. `draft`: the draft, to try changes before publishing; needs `automations.manage`.",
            "example": "published",
            "default": "published"
          },
          "client_request_id": {
            "type": "string",
            "description": "Optional key you choose (up to 64 characters, a UUID is fine) to repeat the request safely: the same key with the same body returns the run already created instead of starting and charging another one. The same key with a different body is 409 `client_request_reused`.",
            "example": "7f3c1a52-9b4d-4e60-a1c8-2d5e8f0b6a39",
            "maxLength": 64
          },
          "confirmed": {
            "type": "boolean",
            "description": "Reserved for when a run asked through the API can write (with approval). Then Maia (header `x-easymailing-agent: maia`) will send `true` once the person confirmed in the chat, when the version that runs has a tool that writes in `auto` (automatic) mode, and without it the answer will be 409 `ai_agent_run_confirmation_required`. Today a run never writes, so the field is ignored and that error does not happen. Default `false`.",
            "example": false,
            "default": false
          }
        }
      },
      "AiAgentRun.AiAgentRunInput.jsonld": {
        "type": "object",
        "description": "Runs of an AI agent asked through the public API (ADR-0195): asynchronous tasks on the same engine as the «Test» panel and the\n«AI agent» step (`AiAgentTestRun` with origin `api` and its `AiAgentRun`). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n`agentUuid` is only the path.",
        "deprecated": false,
        "required": [
          "task"
        ],
        "properties": {
          "task": {
            "type": "string",
            "description": "What the agent has to do now, up to 4,000 characters. Write it as a complete request: the agent has no other context than its instructions, this task and what it reads.",
            "example": "Investiga Grupo Arenal Salud (arenalsalud.es). Mira si ya la tenemos en el CRM y evalúa si encaja con lo que vendemos.",
            "maxLength": 4000
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a CRM record the task is about: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The agent reads it with its CRM tool, so the agent must have `crm_read`. Optional.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "response_format": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentRunResponseFormat",
            "description": "`text` (default): free text in `answer_text`. `fields`: one value per field of `fields` in `answer_fields`, validated; use it when another step will read the answer.",
            "example": "fields",
            "default": "text"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Required when `response_format` is `fields`, up to 30 items, each `{path, type, required, items}`. `path` is the name of the field (letters, digits and `_`, up to 64 characters, no repeats); `type` is `text`, `number`, `date`, `boolean`, `object` or `list`; `required` says whether the answer must have it; `items` (only for `list`) is the type of each element. The answer is an object with those fields.",
            "example": [
              {
                "path": "a_que_se_dedica",
                "type": "text",
                "required": true
              },
              {
                "path": "sector",
                "type": "text",
                "required": true
              },
              {
                "path": "encaje",
                "type": "number",
                "required": true
              },
              {
                "path": "motivo_encaje",
                "type": "text",
                "required": false
              }
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AiAgentRunSource",
            "description": "`published` (default): the current published version, the one automations use. `draft`: the draft, to try changes before publishing; needs `automations.manage`.",
            "example": "published",
            "default": "published"
          },
          "client_request_id": {
            "type": "string",
            "description": "Optional key you choose (up to 64 characters, a UUID is fine) to repeat the request safely: the same key with the same body returns the run already created instead of starting and charging another one. The same key with a different body is 409 `client_request_reused`.",
            "example": "7f3c1a52-9b4d-4e60-a1c8-2d5e8f0b6a39",
            "maxLength": 64
          },
          "confirmed": {
            "type": "boolean",
            "description": "Reserved for when a run asked through the API can write (with approval). Then Maia (header `x-easymailing-agent: maia`) will send `true` once the person confirmed in the chat, when the version that runs has a tool that writes in `auto` (automatic) mode, and without it the answer will be 409 `ai_agent_run_confirmation_required`. Today a run never writes, so the field is ignored and that error does not happen. Default `false`.",
            "example": false,
            "default": false
          }
        }
      },
      "AiAgentRun.jsonld-ai_agent_run.read": {
        "type": "object",
        "description": "Runs of an AI agent asked through the public API (ADR-0195): asynchronous tasks on the same engine as the «Test» panel and the\n«AI agent» step (`AiAgentTestRun` with origin `api` and its `AiAgentRun`). Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\n`agentUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the run. Read it with `get_ai_agent_run`.",
            "example": "d4a8f3c1-7b52-4e09-8c16-5a2e9d0b4f73",
            "readOnly": true
          },
          "agent": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the agent that was asked.",
            "example": "/ai_agents/6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40"
          },
          "agent_version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Version of the agent that ran, frozen when the run started; `null` for a run of the draft.",
            "example": 3,
            "minimum": 1
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunSource",
            "description": "`published` or `draft`: what was run. A run of the draft is a test.",
            "example": "published"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunState",
            "description": "`queued`: waiting for a turn (an account has at most 5 agents working at the same time). `running`: the agent is working. `waiting_approval`: reserved for runs that wait for a person to approve something that writes; a run asked through the API does not write, so it does not happen today. `completed`: finished with an answer. `stopped`: ended without a valid complete answer; see `stop_cause`.",
            "example": "completed"
          },
          "stop_cause": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiAgentRunStopCause"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `stopped` run ended; `null` otherwise. `ai_credits_exhausted`, `ai_overage_exhausted`, `ai_agents_cap_reached`, `ai_agent_cap_reached`, `ai_credits_insufficient`, `ai_overage_unlimited`, `ai_payment_pending`: balance or caps, with the same meaning and remedy as in the errors of `run_ai_agent`. `economic_entitlement_unavailable`: the account lost CRM Pro. `agent_unavailable`: the agent was archived or the person can no longer use it. `ai_unavailable`: the AI provider failed after three attempts. `ai_output_invalid`: with `response_format: fields`, the answer did not fit the fields; it is charged and `answer_fields` is `null`.",
            "example": null
          },
          "limit_reached": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiAgentRunLimit"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set when the agent hit one of its limits and had to answer with what it had (the answer is still given and the run is `completed`): `cost` (it reached `limits.max_cost`), `tool_calls` or `time`. `null` otherwise.",
            "example": null
          },
          "task": {
            "type": "string",
            "description": "The task as it was sent.",
            "example": "Investiga Grupo Arenal Salud (arenalsalud.es). Mira si ya la tenemos en el CRM y evalúa si encaja con lo que vendemos."
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the task is about; `null` if none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "response_format": {
            "type": "string",
            "$ref": "#/components/schemas/AiAgentRunResponseFormat",
            "description": "`text` or `fields`, as requested.",
            "example": "fields"
          },
          "answer_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The answer when `response_format` is `text`; `null` while the run is not `completed`, and with `fields`.",
            "example": "Grupo Arenal Salud es un grupo sanitario privado con centros asistenciales. Encaje alto con lo que vendemos."
          },
          "answer_fields": {
            "type": [
              "object",
              "null"
            ],
            "description": "The answer when `response_format` is `fields`: one key per requested field, validated. `null` while the run is not `completed`, with `text`, and when `ai_output_invalid`.",
            "example": null
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Pages the agent used, as `{title, url}`. Empty when it used no web search or page.",
            "example": [
              {
                "title": "Grupo Arenal Salud",
                "url": "https://arenalsalud.es/"
              }
            ]
          },
          "tools_used": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One entry per tool call, in order: `{type, detail, result, at}`. `detail` and `result` are short texts. For `crm_read` they only appear when the person who asked can read that record; otherwise they are `null`. No internal reasoning is included.",
            "example": [
              {
                "type": "crm_read",
                "detail": "Search companies by domain arenalsalud.es",
                "result": "No company found",
                "at": "2026-11-15T10:40:04+00:00"
              },
              {
                "type": "web_search",
                "detail": "Grupo Arenal Salud",
                "result": "6 results",
                "at": "2026-11-15T10:40:07+00:00"
              }
            ]
          },
          "spent": {
            "type": "object",
            "description": "What the run has cost so far, `{amount, currency}` in EUR. It is charged turn by turn, so it grows while the run is going and is final when it ends.",
            "example": {
              "amount": "0.0830",
              "currency": "EUR"
            }
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Time the agent worked, in milliseconds; it does not count queue time or waits. `null` until it ends.",
            "example": 41200,
            "minimum": 0
          },
          "retry_after_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "While the run is `queued` or `running`, how long to wait before asking again; `null` when it has ended or waits for approval.",
            "example": 3000,
            "minimum": 0
          },
          "created_by": {
            "type": "object",
            "description": "Who asked, `{kind, name}`; `kind` is `user`, and a run asked by Maia is marked as made via Maia.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the run was requested, ISO 8601.",
            "example": "2026-11-15T10:40:00+00:00"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the agent started working; `null` while queued.",
            "example": "2026-11-15T10:40:02+00:00"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it ended; `null` while it has not.",
            "example": "2026-11-15T10:40:43+00:00"
          },
          "kept_until": {
            "type": "string",
            "description": "Until when the run can be read, ISO 8601 date and time; after that `get_ai_agent_run` answers 404. Copy what you need before.",
            "example": "2026-12-15T10:40:00+00:00"
          }
        }
      },
      "AiAgentVersion-ai_agent_version.read": {
        "type": "object",
        "description": "`list_ai_agent_versions` (ADR-0195): the published versions of an agent, newest first. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA version has no reading of its own: the item route only names its `@id`, never exposed. `agentUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "number": {
            "type": "integer",
            "description": "Number of the version, from 1.",
            "example": 3,
            "minimum": 1
          },
          "definition": {
            "type": "object",
            "description": "The definition frozen when it was published, in the same shape as `draft` of `get_ai_agent`.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "published_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was published, ISO 8601.",
            "example": "2026-11-14T16:10:00+00:00"
          }
        }
      },
      "AiAgentVersion.jsonld-ai_agent_version.read": {
        "type": "object",
        "description": "`list_ai_agent_versions` (ADR-0195): the published versions of an agent, newest first. Generated from the approved proposal (2026-11-16) by trabajo/2026-11-15-agentes-ia/fase-4-api-publica/tools/gen_ai_agents_api.py;\nthe texts are the proposal's, with the deviations the code imposes (notas.md § 10).\nA version has no reading of its own: the item route only names its `@id`, never exposed. `agentUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "number": {
            "type": "integer",
            "description": "Number of the version, from 1.",
            "example": 3,
            "minimum": 1
          },
          "definition": {
            "type": "object",
            "description": "The definition frozen when it was published, in the same shape as `draft` of `get_ai_agent`.",
            "example": {
              "instructions": "Eres analista comercial. Investigas empresas con su web y fuentes de los últimos 12 meses. Si no estás seguro de un dato, lo dices. Nunca inventas cifras.",
              "tools": [
                {
                  "type": "web_search",
                  "config": {},
                  "mode": "read"
                },
                {
                  "type": "read_page",
                  "config": {
                    "allowed_domains": []
                  },
                  "mode": "read"
                },
                {
                  "type": "crm_read",
                  "config": {},
                  "mode": "read"
                }
              ],
              "limits": {
                "max_tool_calls": 10,
                "max_seconds": 120,
                "max_cost": {
                  "amount": "0.25",
                  "currency": "EUR"
                }
              }
            }
          },
          "published_by": {
            "type": "string",
            "format": "uuid",
            "description": "Membership UUID of who published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was published, ISO 8601.",
            "example": "2026-11-14T16:10:00+00:00"
          }
        }
      },
      "AsyncTask-async_task.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type",
            "example": "group.export"
          },
          "status": {
            "default": "pending",
            "example": "completed",
            "type": "string",
            "description": "Current status",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 100
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": {
              "exported": 150,
              "fileName": "export_65f1a2b3.xlsx",
              "groupUuid": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            }
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "AsyncTask.jsonld-async_task.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type",
            "example": "group.export"
          },
          "status": {
            "default": "pending",
            "example": "completed",
            "type": "string",
            "description": "Current status",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 100
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": {
              "exported": 150,
              "fileName": "export_65f1a2b3.xlsx",
              "groupUuid": "419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            }
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "Audience-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Audience title",
            "example": "My audience"
          },
          "description": {
            "type": "string",
            "description": "Audience description",
            "example": "My audience description"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "audience_stats": {
            "description": "Subscriber totals and deliverability scores of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceStatsDto-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "audience_resources": {
            "description": "How many items of the account use this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceResourcesDto-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferences": {
            "description": "Default sender settings for campaigns sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "description": "Company details printed in the footer of emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_segments": {
            "description": "Segments defined in the audience.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegment-audience.read"
            }
          },
          "list_fields": {
            "description": "Custom fields defined in the audience.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListField-audience.read"
            }
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-audience.read"
            }
          },
          "list_gdpr": {
            "description": "GDPR configuration of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_suscribers": {
            "type": "integer",
            "description": "Total subscribers"
          },
          "active_suscribers": {
            "type": "integer",
            "description": "Active subscribers"
          },
          "unsuscribed": {
            "type": "integer",
            "description": "Total unsubscribed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ]
      },
      "Audience-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the audience, shown in the panel.",
            "example": "Newsletter customers"
          },
          "description": {
            "type": "string",
            "description": "Short description of who is in the audience.",
            "example": "People who buy from our online shop and accepted the newsletter"
          },
          "currency": {
            "type": "string",
            "description": "Currency code (ISO 4217) used for the ecommerce figures of this audience.",
            "example": "EUR"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA) used for dates and sending times of this audience.",
            "example": "Europe/Madrid"
          },
          "preferences": {
            "description": "Default sender settings. If you send this object, send all three fields: `from_name`, `from_email` and `reply_to` are each required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "from_name": "Acme",
              "from_email": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77",
              "reply_to": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
            }
          },
          "company": {
            "description": "Company details printed in the footer of the emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_gdpr": {
            "description": "GDPR settings. If you send this object, also send `enabled`: it is applied every time and defaults to false, which turns GDPR off. `treatment_purposes` replaces the current list only when it is not empty.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "enabled": true,
              "privacy_url": "https://www.acme.example/privacy",
              "treatment_purposes": [
                "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
              ],
              "data_manager": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
            }
          }
        }
      },
      "Audience.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Audience title",
            "example": "My audience"
          },
          "description": {
            "type": "string",
            "description": "Audience description",
            "example": "My audience description"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "audience_stats": {
            "description": "Subscriber totals and deliverability scores of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceStatsDto.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "audience_resources": {
            "description": "How many items of the account use this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceResourcesDto.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferences": {
            "description": "Default sender settings for campaigns sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "description": "Company details printed in the footer of emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_segments": {
            "description": "Segments defined in the audience.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegment.jsonld-audience.read"
            }
          },
          "list_fields": {
            "description": "Custom fields defined in the audience.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListField.jsonld-audience.read"
            }
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-audience.read"
            }
          },
          "list_gdpr": {
            "description": "GDPR configuration of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_suscribers": {
            "type": "integer",
            "description": "Total subscribers"
          },
          "active_suscribers": {
            "type": "integer",
            "description": "Active subscribers"
          },
          "unsuscribed": {
            "type": "integer",
            "description": "Total unsubscribed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ]
      },
      "Audience.jsonld-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the audience, shown in the panel.",
            "example": "Newsletter customers"
          },
          "description": {
            "type": "string",
            "description": "Short description of who is in the audience.",
            "example": "People who buy from our online shop and accepted the newsletter"
          },
          "currency": {
            "type": "string",
            "description": "Currency code (ISO 4217) used for the ecommerce figures of this audience.",
            "example": "EUR"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA) used for dates and sending times of this audience.",
            "example": "Europe/Madrid"
          },
          "preferences": {
            "description": "Default sender settings. If you send this object, send all three fields: `from_name`, `from_email` and `reply_to` are each required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "from_name": "Acme",
              "from_email": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77",
              "reply_to": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
            }
          },
          "company": {
            "description": "Company details printed in the footer of the emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_gdpr": {
            "description": "GDPR settings. If you send this object, also send `enabled`: it is applied every time and defaults to false, which turns GDPR off. `treatment_purposes` replaces the current list only when it is not empty.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "enabled": true,
              "privacy_url": "https://www.acme.example/privacy",
              "treatment_purposes": [
                "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
              ],
              "data_manager": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
            }
          }
        }
      },
      "AudienceCompanyDto-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "company_name": {
            "description": "Legal name of the company.",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "description": "Street address.",
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "description": "Postal code.",
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "description": "City.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "State or province.",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "description": "Country.",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "description": "Contact phone number.",
            "type": [
              "string",
              "null"
            ]
          },
          "website_url": {
            "format": "uri",
            "description": "Company website.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "logo_url": {
            "description": "URL of the company logo.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "AudienceCompanyDto-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "company_name": {
            "description": "Legal name of the company.",
            "type": [
              "string",
              "null"
            ],
            "example": "Acme S.L."
          },
          "address": {
            "description": "Street address.",
            "type": [
              "string",
              "null"
            ],
            "example": "Calle Mayor 1"
          },
          "postal_code": {
            "description": "Postal code.",
            "type": [
              "string",
              "null"
            ],
            "example": "28001"
          },
          "city": {
            "description": "City.",
            "type": [
              "string",
              "null"
            ],
            "example": "Madrid"
          },
          "state": {
            "description": "State or province.",
            "type": [
              "string",
              "null"
            ],
            "example": "Madrid"
          },
          "country": {
            "description": "Country.",
            "type": [
              "string",
              "null"
            ],
            "example": "Spain"
          },
          "phone": {
            "description": "Contact phone number.",
            "type": [
              "string",
              "null"
            ],
            "example": "+34910000000"
          },
          "website_url": {
            "format": "uri",
            "description": "Company website, a full URL.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "https://www.acme.example"
          }
        }
      },
      "AudienceCompanyDto.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "company_name": {
            "description": "Legal name of the company.",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "description": "Street address.",
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "description": "Postal code.",
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "description": "City.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "State or province.",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "description": "Country.",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "description": "Contact phone number.",
            "type": [
              "string",
              "null"
            ]
          },
          "website_url": {
            "format": "uri",
            "description": "Company website.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "logo_url": {
            "description": "URL of the company logo.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "AudienceCompanyDto.jsonld-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "company_name": {
            "description": "Legal name of the company.",
            "type": [
              "string",
              "null"
            ],
            "example": "Acme S.L."
          },
          "address": {
            "description": "Street address.",
            "type": [
              "string",
              "null"
            ],
            "example": "Calle Mayor 1"
          },
          "postal_code": {
            "description": "Postal code.",
            "type": [
              "string",
              "null"
            ],
            "example": "28001"
          },
          "city": {
            "description": "City.",
            "type": [
              "string",
              "null"
            ],
            "example": "Madrid"
          },
          "state": {
            "description": "State or province.",
            "type": [
              "string",
              "null"
            ],
            "example": "Madrid"
          },
          "country": {
            "description": "Country.",
            "type": [
              "string",
              "null"
            ],
            "example": "Spain"
          },
          "phone": {
            "description": "Contact phone number.",
            "type": [
              "string",
              "null"
            ],
            "example": "+34910000000"
          },
          "website_url": {
            "format": "uri",
            "description": "Company website, a full URL.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "https://www.acme.example"
          }
        }
      },
      "AudienceNotificationsDto-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "opt_in": {
            "description": "Email opt-in mode of the audience: single or double opt-in.",
            "type": [
              "string",
              "null"
            ]
          },
          "opt_out": {
            "description": "Unsubscribe mode of the audience.",
            "type": [
              "string",
              "null"
            ]
          },
          "opt_in_notify_email": {
            "format": "email",
            "description": "Address notified when someone subscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "opt_out_notify_email": {
            "format": "email",
            "description": "Address notified when someone unsubscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "welcome_email": {
            "description": "Whether a welcome email is sent when a member becomes confirmed.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "unsubscribe_hard_bounces": {
            "description": "Whether members whose email hard-bounces are unsubscribed automatically.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "unsubscribe_soft_bounces": {
            "description": "Whether members whose email soft-bounces repeatedly are unsubscribed automatically.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "Default SMS sender IRI used by SMS double opt-in forms.",
            "example": "/sms_senders/1"
          }
        }
      },
      "AudienceNotificationsDto-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "opt_in": {
            "description": "Email opt-in mode: `single.opt.in` subscribes people at once; `double.opt.in` sends a confirmation email first. The value is stored as sent, so use exactly one of these two.",
            "type": [
              "string",
              "null"
            ],
            "example": "double.opt.in"
          },
          "opt_out": {
            "description": "Unsubscribe mode of the audience. The panel fixes it to `single.opt.out` (unsubscribing needs no confirmation); there is no other mode.",
            "type": [
              "string",
              "null"
            ],
            "example": "single.opt.out"
          },
          "opt_in_notify_email": {
            "format": "email",
            "description": "Address that receives a notification when someone subscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "team@acme.example"
          },
          "opt_out_notify_email": {
            "format": "email",
            "description": "Address that receives a notification when someone unsubscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "team@acme.example"
          },
          "welcome_email": {
            "description": "Send a welcome email when a member becomes confirmed.",
            "type": [
              "boolean",
              "null"
            ],
            "example": true
          },
          "unsubscribe_hard_bounces": {
            "description": "Unsubscribe members automatically when their email hard-bounces.",
            "type": [
              "boolean",
              "null"
            ],
            "example": true
          },
          "unsubscribe_soft_bounces": {
            "description": "Unsubscribe members automatically when their email soft-bounces repeatedly.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the active SMS sender (`/sms_senders/{id}`) used by SMS double opt-in forms. A missing or inactive sender is rejected.",
            "example": "/sms_senders/1"
          }
        }
      },
      "AudienceNotificationsDto.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "opt_in": {
            "description": "Email opt-in mode of the audience: single or double opt-in.",
            "type": [
              "string",
              "null"
            ]
          },
          "opt_out": {
            "description": "Unsubscribe mode of the audience.",
            "type": [
              "string",
              "null"
            ]
          },
          "opt_in_notify_email": {
            "format": "email",
            "description": "Address notified when someone subscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "opt_out_notify_email": {
            "format": "email",
            "description": "Address notified when someone unsubscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ]
          },
          "welcome_email": {
            "description": "Whether a welcome email is sent when a member becomes confirmed.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "unsubscribe_hard_bounces": {
            "description": "Whether members whose email hard-bounces are unsubscribed automatically.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "unsubscribe_soft_bounces": {
            "description": "Whether members whose email soft-bounces repeatedly are unsubscribed automatically.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "Default SMS sender IRI used by SMS double opt-in forms.",
            "example": "/sms_senders/1"
          }
        }
      },
      "AudienceNotificationsDto.jsonld-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "opt_in": {
            "description": "Email opt-in mode: `single.opt.in` subscribes people at once; `double.opt.in` sends a confirmation email first. The value is stored as sent, so use exactly one of these two.",
            "type": [
              "string",
              "null"
            ],
            "example": "double.opt.in"
          },
          "opt_out": {
            "description": "Unsubscribe mode of the audience. The panel fixes it to `single.opt.out` (unsubscribing needs no confirmation); there is no other mode.",
            "type": [
              "string",
              "null"
            ],
            "example": "single.opt.out"
          },
          "opt_in_notify_email": {
            "format": "email",
            "description": "Address that receives a notification when someone subscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "team@acme.example"
          },
          "opt_out_notify_email": {
            "format": "email",
            "description": "Address that receives a notification when someone unsubscribes.",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": [
              "string",
              "null"
            ],
            "example": "team@acme.example"
          },
          "welcome_email": {
            "description": "Send a welcome email when a member becomes confirmed.",
            "type": [
              "boolean",
              "null"
            ],
            "example": true
          },
          "unsubscribe_hard_bounces": {
            "description": "Unsubscribe members automatically when their email hard-bounces.",
            "type": [
              "boolean",
              "null"
            ],
            "example": true
          },
          "unsubscribe_soft_bounces": {
            "description": "Unsubscribe members automatically when their email soft-bounces repeatedly.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the active SMS sender (`/sms_senders/{id}`) used by SMS double opt-in forms. A missing or inactive sender is rejected.",
            "example": "/sms_senders/1"
          }
        }
      },
      "AudiencePreferencesDto-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email",
          "reply_to"
        ],
        "properties": {
          "from_name": {
            "description": "Default sender display name.",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "Default sender address (a confirmed sender).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Sender-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to": {
            "description": "Default reply-to address (a confirmed sender).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Sender-audience.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AudiencePreferencesDto-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email",
          "reply_to"
        ],
        "properties": {
          "from_name": {
            "description": "Display name of the default sender, for example your brand.",
            "type": [
              "string",
              "null"
            ],
            "example": "Acme"
          },
          "from_email": {
            "description": "IRI of a confirmed sender (`/senders/{uuid}`) used as the default From address. Get it from the senders list; an unconfirmed sender is rejected.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
          },
          "reply_to": {
            "description": "IRI of a confirmed sender (`/senders/{uuid}`) used as the default reply-to address. An unconfirmed sender is rejected.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
          }
        }
      },
      "AudiencePreferencesDto.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email",
          "reply_to"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "from_name": {
            "description": "Default sender display name.",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "Default sender address (a confirmed sender).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Sender.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "reply_to": {
            "description": "Default reply-to address (a confirmed sender).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Sender.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AudiencePreferencesDto.jsonld-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email",
          "reply_to"
        ],
        "properties": {
          "from_name": {
            "description": "Display name of the default sender, for example your brand.",
            "type": [
              "string",
              "null"
            ],
            "example": "Acme"
          },
          "from_email": {
            "description": "IRI of a confirmed sender (`/senders/{uuid}`) used as the default From address. Get it from the senders list; an unconfirmed sender is rejected.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
          },
          "reply_to": {
            "description": "IRI of a confirmed sender (`/senders/{uuid}`) used as the default reply-to address. An unconfirmed sender is rejected.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
          }
        }
      },
      "AudienceResourcesDto-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaigns": {
            "description": "Number of campaigns that use this audience.",
            "type": "integer"
          },
          "automations": {
            "description": "Number of automations that use this audience.",
            "type": "integer"
          },
          "subscription_forms": {
            "description": "Number of subscription forms that write to this audience.",
            "type": "integer"
          },
          "landing_pages": {
            "deprecated": true,
            "type": "integer",
            "description": "Number of landing pages linked to this audience."
          }
        }
      },
      "AudienceResourcesDto.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "campaigns": {
            "description": "Number of campaigns that use this audience.",
            "type": "integer"
          },
          "automations": {
            "description": "Number of automations that use this audience.",
            "type": "integer"
          },
          "subscription_forms": {
            "description": "Number of subscription forms that write to this audience.",
            "type": "integer"
          },
          "landing_pages": {
            "deprecated": true,
            "type": "integer",
            "description": "Number of landing pages linked to this audience."
          }
        }
      },
      "AudienceStatsDto-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "score": {
            "description": "Email reputation score of the audience.",
            "type": [
              "integer",
              "null"
            ]
          },
          "sms_score": {
            "description": "SMS reputation score of the audience.",
            "type": [
              "integer",
              "null"
            ]
          },
          "total": {
            "description": "Total members.",
            "type": "integer"
          },
          "active": {
            "description": "Members with a confirmed email subscription.",
            "type": "integer"
          },
          "canceled": {
            "description": "Members who unsubscribed.",
            "type": "integer"
          }
        }
      },
      "AudienceStatsDto.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "score": {
            "description": "Email reputation score of the audience.",
            "type": [
              "integer",
              "null"
            ]
          },
          "sms_score": {
            "description": "SMS reputation score of the audience.",
            "type": [
              "integer",
              "null"
            ]
          },
          "total": {
            "description": "Total members.",
            "type": "integer"
          },
          "active": {
            "description": "Members with a confirmed email subscription.",
            "type": "integer"
          },
          "canceled": {
            "description": "Members who unsubscribed.",
            "type": "integer"
          }
        }
      },
      "AuthenticatedUser-my_suscription.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "firstname": {
            "type": "string",
            "description": "Firstname of the user"
          },
          "lastname": {
            "type": "string",
            "description": "Lastname of the user"
          },
          "email": {
            "type": "string",
            "description": "Email of the user"
          },
          "role": {
            "type": "string",
            "description": "Role of the user"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone of the user"
          }
        }
      },
      "AuthenticatedUser.jsonld-my_suscription.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "firstname": {
            "type": "string",
            "description": "Firstname of the user"
          },
          "lastname": {
            "type": "string",
            "description": "Lastname of the user"
          },
          "email": {
            "type": "string",
            "description": "Email of the user"
          },
          "role": {
            "type": "string",
            "description": "Role of the user"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone of the user"
          }
        }
      },
      "Automation-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationStatus"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationMetric-automation.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationTrigger-automation.read"
            }
          },
          "first_step": {
            "description": "First step of the automation workflow.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "orphan_steps": {
            "description": "Steps not connected to the workflow (orphans). Can be reassigned using move_position.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Automation-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationStatus"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationMetric-automation.read_automation.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationTrigger-automation.read_automation.read.detail"
            }
          },
          "first_step": {
            "description": "First step of the automation workflow.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep-automation.read_automation.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "orphan_steps": {
            "description": "Steps not connected to the workflow (orphans). Can be reassigned using move_position.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationStep-automation.read_automation.read.detail"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Automation-automation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "audience"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "New name of the automation.",
            "example": "Welcome series 2026"
          },
          "description": {
            "type": "string",
            "description": "New notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Required by the schema but ignored on update: the audience of an automation cannot be changed. Send the automation's own audience.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "Automation.jsonld-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationStatus"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationMetric.jsonld-automation.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation.read"
            }
          },
          "first_step": {
            "description": "First step of the automation workflow.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "orphan_steps": {
            "description": "Steps not connected to the workflow (orphans). Can be reassigned using move_position.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Automation.jsonld-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationStatus"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationMetric.jsonld-automation.read_automation.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation_triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation.read_automation.read.detail"
            }
          },
          "first_step": {
            "description": "First step of the automation workflow.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep.jsonld-automation.read_automation.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "orphan_steps": {
            "description": "Steps not connected to the workflow (orphans). Can be reassigned using move_position.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationStep.jsonld-automation.read_automation.read.detail"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Automation.jsonld-automation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "audience"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "New name of the automation.",
            "example": "Welcome series 2026"
          },
          "description": {
            "type": "string",
            "description": "New notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Required by the schema but ignored on update: the audience of an automation cannot be changed. Send the automation's own audience.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "AutomationConditionItem-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the condition field to check, as returned by `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "Comparison operator. The valid operators depend on the field: read the `operators` property of the condition field.",
            "type": "string",
            "example": "is"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the field.",
            "example": "ana@example.com"
          }
        }
      },
      "AutomationConditionItem-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the condition field to check, as returned by `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "Comparison operator. The valid operators depend on the field: read the `operators` property of the condition field.",
            "type": "string",
            "example": "is"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the field.",
            "example": "ana@example.com"
          }
        }
      },
      "AutomationConditionItem.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "field": {
            "description": "IRI of the condition field to check, as returned by `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "Comparison operator. The valid operators depend on the field: read the `operators` property of the condition field.",
            "type": "string",
            "example": "is"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the field.",
            "example": "ana@example.com"
          }
        }
      },
      "AutomationConditionItem.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the condition field to check, as returned by `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "Comparison operator. The valid operators depend on the field: read the `operators` property of the condition field.",
            "type": "string",
            "example": "is"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the field.",
            "example": "ana@example.com"
          }
        }
      },
      "AutomationMetric": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationMetric-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationMetric-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationMetric.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationMetric.jsonld-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationMetric.jsonld-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "completed": {
            "type": "integer",
            "description": "Number of subscribers completed the automation"
          },
          "in_queue": {
            "type": "integer",
            "description": "Number of subscribers in progress"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of subscribers canceled the automation"
          }
        }
      },
      "AutomationQueue-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationQueueStatus"
          },
          "automation_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationTrigger-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "member": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Member-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Automation"
          }
        }
      },
      "AutomationQueue.AutomationQueueTriggerInput-automation_queue.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email",
          "automation_trigger"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the contact to start. It must belong to the audience of the automation and be confirmed.",
            "example": "ana@example.com"
          },
          "automation_trigger": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the `custom_api` trigger that starts the automation, as returned by `list_automation_triggers`.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_triggers/9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        }
      },
      "AutomationQueue.AutomationQueueTriggerInput.jsonld-automation_queue.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email",
          "automation_trigger"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the contact to start. It must belong to the audience of the automation and be confirmed.",
            "example": "ana@example.com"
          },
          "automation_trigger": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the `custom_api` trigger that starts the automation, as returned by `list_automation_triggers`.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_triggers/9c2e7a14-6b3d-4d58-8f1a-5e0b3a7c4d21"
          }
        }
      },
      "AutomationQueue.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/AutomationQueueStatus"
          },
          "automation_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationTrigger.jsonld-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "member": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Member.jsonld-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Automation"
          }
        }
      },
      "AutomationStep-automation.read_automation.read.detail": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type."
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\"."
          }
        }
      },
      "AutomationStep-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type."
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\"."
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroup-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroup.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroupResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroupResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepCondition-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepCondition.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepConditionResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenCondition-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepConditionResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenCondition.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepDelay-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepDelay.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepDelayResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepDelayResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStep-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStep.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStepResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "target_step_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStepResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "target_step_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepPosition-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "first": {
            "description": "Set to true to make this step the first of the flow; the previous first step follows it. Send at most one position field.",
            "type": "boolean",
            "example": true
          },
          "parent": {
            "description": "IRI of the step after which this one is placed. It cannot be a condition step. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepPosition.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "first": {
            "description": "Set to true to make this step the first of the flow; the previous first step follows it. Send at most one position field.",
            "type": "boolean",
            "example": true
          },
          "parent": {
            "description": "IRI of the step after which this one is placed. It cannot be a condition step. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroup-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroup.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroupResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroupResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaign-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaign.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaignResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaignResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendNotification-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendNotification.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendNotificationResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendNotificationResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendSmsResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendSmsAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendSmsResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendSmsAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhook-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhook.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhookResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhookResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomation-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomation.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomationResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomationResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribe-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step. This step has none: omit it or send an empty object.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribe.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step. This step has none: omit it or send an empty object.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribeResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribeResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomField-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomField.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomFieldResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomFieldResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScore-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScore.jsonld-automation_step.write": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "IRI of the step after which this one is placed (/automations/{uuid}/automation_steps/{uuid}). It cannot be a condition step: use `parent_yes` or `parent_no` for those. Send at most one of `parent`, `parent_yes` and `parent_no`; send none to make this the first step, which is only possible while the automation has no first step.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "IRI of a condition step; this step is placed in its 'yes' branch (contacts that meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "IRI of a condition step; this step is placed in its 'no' branch (contacts that do not meet the condition). Only valid for condition steps. Send at most one position field.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScoreResource-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScoreResource.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure varies by step_type.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure varies by step_type: normal steps have \"next\", condition steps have \"yes\"/\"no\".",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.jsonld-automation.read_automation.read.detail": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure depends on step_type:\n\n- **step.delay**: DelayAction (delay_value, delay_unit, time settings)\n- **step.condition**: ConditionAction (match, conditions array)\n- **step.send.campaign**: SendCampaignAction (subject, from_name, template_html, etc.)\n- **step.send.sms**: SendSmsAction (title, message, sms_sender, tracking fields)\n- **step.add.to.group**: AddToGroupAction (group IRI)\n- **step.remove.from.group**: RemoveFromGroupAction (group IRI)\n- **step.update.custom.field**: UpdateCustomFieldAction (field IRI, value)\n- **step.update.score**: UpdateScoreAction (value -5..5)\n- **step.send.notification**: SendNotificationAction (emails, subject, body)\n- **step.trigger.automation**: TriggerAutomationAction (automation IRI)\n- **step.unsuscribe**: UnsubscribeAction (empty object)\n- **step.move.to.step**: MoveToStepAction (target step IRI)\n- **step.send.webhook**: SendWebhookAction (url, secret, payload_items)",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/ConditionAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/DelayAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/MoveToStepAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendCampaignAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendNotificationAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendSmsAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendWebhookAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/TriggerAutomationAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UnsubscribeAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UpdateScoreAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure depends on step_type:\n\n- **Normal steps** (delay, send_campaign, etc.): `{ \"next\": AutomationStep | null }`\n- **Condition steps**: `{ \"yes\": AutomationStep | null, \"no\": AutomationStep | null }`",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenCondition.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStep.jsonld-automation_step.read": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "step_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "count_automation_queue_items_completed": {
            "type": "integer"
          },
          "count_automation_queue_items_in_queue": {
            "type": "integer"
          },
          "action": {
            "description": "Action configuration. Structure depends on step_type:\n\n- **step.delay**: DelayAction (delay_value, delay_unit, time settings)\n- **step.condition**: ConditionAction (match, conditions array)\n- **step.send.campaign**: SendCampaignAction (subject, from_name, template_html, etc.)\n- **step.send.sms**: SendSmsAction (title, message, sms_sender, tracking fields)\n- **step.add.to.group**: AddToGroupAction (group IRI)\n- **step.remove.from.group**: RemoveFromGroupAction (group IRI)\n- **step.update.custom.field**: UpdateCustomFieldAction (field IRI, value)\n- **step.update.score**: UpdateScoreAction (value -5..5)\n- **step.send.notification**: SendNotificationAction (emails, subject, body)\n- **step.trigger.automation**: TriggerAutomationAction (automation IRI)\n- **step.unsuscribe**: UnsubscribeAction (empty object)\n- **step.move.to.step**: MoveToStepAction (target step IRI)\n- **step.send.webhook**: SendWebhookAction (url, secret, payload_items)",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/ConditionAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/DelayAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/MoveToStepAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendCampaignAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendNotificationAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendSmsAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/SendWebhookAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/TriggerAutomationAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UnsubscribeAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/UpdateScoreAction.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "description": "Child steps. Structure depends on step_type:\n\n- **Normal steps** (delay, send_campaign, etc.): `{ \"next\": AutomationStep | null }`\n- **Condition steps**: `{ \"yes\": AutomationStep | null, \"no\": AutomationStep | null }`",
            "oneOf": [
              {
                "$ref": "#/components/schemas/AutomationStepChildrenCondition.jsonld-automation_step.read"
              },
              {
                "$ref": "#/components/schemas/AutomationStepChildrenNormal.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStepChildrenCondition-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "yes": {
            "description": "Step for contacts that match the condition (yes branch).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "no": {
            "description": "Step for contacts that do not match the condition (no branch).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStepChildrenCondition.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "yes": {
            "description": "Step for contacts that match the condition (yes branch).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "no": {
            "description": "Step for contacts that do not match the condition (no branch).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStepChildrenNormal-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "next": {
            "description": "Next step in the workflow.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStepChildrenNormal.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "next": {
            "description": "Next step in the workflow.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutomationStep.jsonld-automation_step.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationTrigger-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "AutomationTrigger-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "AutomationTrigger-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {}
        }
      },
      "AutomationTrigger-automation_trigger.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Automation"
          },
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAbandonedCart-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "delay_value",
          "delay_unit",
          "condition"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "How long the cart must stay unfinished, in units of `delay_unit` (at most 1 month in total).",
            "example": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "minute",
              "hour",
              "day"
            ],
            "type": "string",
            "description": "Unit of `delay_value`.",
            "example": "hour"
          },
          "condition": {
            "enum": [
              "any.product",
              "specific.products",
              "specific.categories"
            ],
            "type": "string",
            "description": "Which carts qualify: any cart, only carts with the selected products, or only carts with products of the selected categories.",
            "example": "any.product"
          },
          "products": {
            "description": "IRIs of the products to match. Required when `condition` selects specific products.",
            "example": [
              "/stores/acme-shop/products/winter-boots"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product-automation_trigger.write"
            }
          },
          "categories": {
            "description": "IRIs of the product categories to match. Required when `condition` selects specific categories.",
            "example": [
              "/stores/acme-shop/categories/outdoor"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category-automation_trigger.write"
            }
          },
          "exclude": {
            "type": "boolean",
            "description": "If true, carts that do NOT contain the selected products or categories qualify instead of those that do.",
            "example": false
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAbandonedCart.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "delay_value",
          "delay_unit",
          "condition"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "How long the cart must stay unfinished, in units of `delay_unit` (at most 1 month in total).",
            "example": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "minute",
              "hour",
              "day"
            ],
            "type": "string",
            "description": "Unit of `delay_value`.",
            "example": "hour"
          },
          "condition": {
            "enum": [
              "any.product",
              "specific.products",
              "specific.categories"
            ],
            "type": "string",
            "description": "Which carts qualify: any cart, only carts with the selected products, or only carts with products of the selected categories.",
            "example": "any.product"
          },
          "products": {
            "description": "IRIs of the products to match. Required when `condition` selects specific products.",
            "example": [
              "/stores/acme-shop/products/winter-boots"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product.jsonld-automation_trigger.write"
            }
          },
          "categories": {
            "description": "IRIs of the product categories to match. Required when `condition` selects specific categories.",
            "example": [
              "/stores/acme-shop/categories/outdoor"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category.jsonld-automation_trigger.write"
            }
          },
          "exclude": {
            "type": "boolean",
            "description": "If true, carts that do NOT contain the selected products or categories qualify instead of those that do.",
            "example": false
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAdminManual-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAdminManual.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAniversaryDate-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the date custom field whose day and month are used, as returned by `list_audience_custom_fields`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay": {
            "description": "If true, the automation starts before the date instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": true,
            "type": "boolean"
          },
          "delay_value": {
            "description": "How long before the date the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again, but never within 6 months of its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerAniversaryDate.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the date custom field whose day and month are used, as returned by `list_audience_custom_fields`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay": {
            "description": "If true, the automation starts before the date instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": true,
            "type": "boolean"
          },
          "delay_value": {
            "description": "How long before the date the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again, but never within 6 months of its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerBuyAProduct-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "condition"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "condition": {
            "enum": [
              "any.product",
              "specific.products",
              "specific.categories"
            ],
            "type": "string",
            "description": "Which orders qualify: any order, only orders with the selected products, or only orders with products of the selected categories.",
            "example": "specific.products"
          },
          "products": {
            "description": "IRIs of the products to match. Required when `condition` selects specific products.",
            "example": [
              "/stores/acme-shop/products/winter-boots"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product-automation_trigger.write"
            }
          },
          "categories": {
            "description": "IRIs of the product categories to match. Required when `condition` selects specific categories.",
            "example": [
              "/stores/acme-shop/categories/outdoor"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category-automation_trigger.write"
            }
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerBuyAProduct.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "condition"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "condition": {
            "enum": [
              "any.product",
              "specific.products",
              "specific.categories"
            ],
            "type": "string",
            "description": "Which orders qualify: any order, only orders with the selected products, or only orders with products of the selected categories.",
            "example": "specific.products"
          },
          "products": {
            "description": "IRIs of the products to match. Required when `condition` selects specific products.",
            "example": [
              "/stores/acme-shop/products/winter-boots"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product.jsonld-automation_trigger.write"
            }
          },
          "categories": {
            "description": "IRIs of the product categories to match. Required when `condition` selects specific categories.",
            "example": [
              "/stores/acme-shop/categories/outdoor"
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category.jsonld-automation_trigger.write"
            }
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerClickOnCampaign-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign whose clicks start the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerClickOnCampaign.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign whose clicks start the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerClickOnCampaignLink-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign": {
            "description": "Optional email campaign, as returned by `list_campaigns`. If omitted, the link counts in any campaign of the audience. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "url": {
            "format": "uri",
            "description": "Exact destination URL of the link in the email, including its query string.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "example": "https://acme.com/pricing?plan=pro",
            "type": [
              "string",
              "null"
            ]
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        },
        "required": [
          "url"
        ]
      },
      "AutomationTrigger.AutomationTriggerClickOnCampaignLink.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign": {
            "description": "Optional email campaign, as returned by `list_campaigns`. If omitted, the link counts in any campaign of the audience. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "url": {
            "format": "uri",
            "description": "Exact destination URL of the link in the email, including its query string.",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "example": "https://acme.com/pricing?plan=pro",
            "type": [
              "string",
              "null"
            ]
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        },
        "required": [
          "url"
        ]
      },
      "AutomationTrigger.AutomationTriggerContactAddedToGroup-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "group"
        ],
        "properties": {
          "group": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the group, as returned by `list_audience_groups`. A contact added to this group starts the automation.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerContactAddedToGroup.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "group"
        ],
        "properties": {
          "group": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the group, as returned by `list_audience_groups`. A contact added to this group starts the automation.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerContactRemovedFromGroup-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "group"
        ],
        "properties": {
          "group": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the group, as returned by `list_audience_groups`. A contact removed from this group starts the automation.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerContactRemovedFromGroup.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "group"
        ],
        "properties": {
          "group": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the group, as returned by `list_audience_groups`. A contact removed from this group starts the automation.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerContactSubscribed-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "type": "array",
            "description": "Origins of the subscription that start the automation: contacts added in the app, added through the API or subscribed through a form. Contacts from any other origin do not start it.",
            "items": {
              "type": "string",
              "enum": [
                "suscriber.source.manual",
                "suscriber.source.api",
                "suscriber.source.webform"
              ]
            },
            "example": [
              "suscriber.source.api",
              "suscriber.source.webform"
            ]
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerContactSubscribed.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "type": "array",
            "description": "Origins of the subscription that start the automation: contacts added in the app, added through the API or subscribed through a form. Contacts from any other origin do not start it.",
            "items": {
              "type": "string",
              "enum": [
                "suscriber.source.manual",
                "suscriber.source.api",
                "suscriber.source.webform"
              ]
            },
            "example": [
              "suscriber.source.api",
              "suscriber.source.webform"
            ]
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerCustomApi-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerCustomApi.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerFormCompleted-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "suscription_form"
        ],
        "properties": {
          "suscription_form": {
            "description": "IRI of the subscription form, as returned by `list_audience_forms`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/suscription_forms/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerFormCompleted.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "suscription_form"
        ],
        "properties": {
          "suscription_form": {
            "description": "IRI of the subscription form, as returned by `list_audience_forms`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/suscription_forms/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerNotClickOnCampaign-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign, as returned by `list_campaigns`. Contacts who received it and did not click are started about 24 hours after it finished sending. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerNotClickOnCampaign.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign, as returned by `list_campaigns`. Contacts who received it and did not click are started about 24 hours after it finished sending. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerNotOpenOnCampaign-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign, as returned by `list_campaigns`. Contacts who received it and did not open it are started about 24 hours after it finished sending. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerNotOpenOnCampaign.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign, as returned by `list_campaigns`. Contacts who received it and did not open it are started about 24 hours after it finished sending. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOpenOnCampaign-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign whose opens start the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOpenOnCampaign.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "type": "string",
            "format": "iri-reference",
            "description": "Email campaign whose opens start the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderCancelled-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderCancelled.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderPaid-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderPaid.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderProcessed-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderProcessed.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderRefunded-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderRefunded.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderShipped-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerOrderShipped.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerPaymentReminder-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "delay_value",
          "delay_unit"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "How long the order must stay unpaid after it was processed, in units of `delay_unit` (at most 1 month in total).",
            "example": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "minute",
              "hour",
              "day"
            ],
            "type": "string",
            "description": "Unit of `delay_value`.",
            "example": "hour"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerPaymentReminder.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store",
          "delay_value",
          "delay_unit"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "How long the order must stay unpaid after it was processed, in units of `delay_unit` (at most 1 month in total).",
            "example": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "minute",
              "hour",
              "day"
            ],
            "type": "string",
            "description": "Unit of `delay_value`.",
            "example": "hour"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSendACampaign-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "description": "Email campaign whose delivery starts the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSendACampaign.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "campaign"
        ],
        "properties": {
          "campaign": {
            "description": "Email campaign whose delivery starts the automation, as returned by `list_campaigns`. It should belong to the automation's audience: otherwise the trigger never fires.",
            "example": "/campaigns/6f1d2a3b-8c4e-4a57-9b10-2e7d5c3f9a48",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSpecificDate-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the date custom field whose value is used, as returned by `list_audience_custom_fields`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay": {
            "description": "If true, the automation starts before the date instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": true,
            "type": "boolean"
          },
          "delay_value": {
            "description": "How long before the date the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSpecificDate.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the date custom field whose value is used, as returned by `list_audience_custom_fields`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay": {
            "description": "If true, the automation starts before the date instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": true,
            "type": "boolean"
          },
          "delay_value": {
            "description": "How long before the date the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": false
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSuscriberRevalidation-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSuscriberRevalidation.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSuscriptionDate-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "delay": {
            "type": "boolean",
            "description": "If true, the automation starts before the anniversary instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": false
          },
          "delay_value": {
            "description": "How long before the anniversary the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again, but never within 6 months of its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerSuscriptionDate.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "delay": {
            "type": "boolean",
            "description": "If true, the automation starts before the anniversary instead of on it; set how long before with `delay_value` and `delay_unit`.",
            "example": false
          },
          "delay_value": {
            "description": "How long before the anniversary the automation starts, in units of `delay_unit` (at most 3 months in total). Required when `delay` is true.",
            "example": 3,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "day",
              "week"
            ],
            "type": "string",
            "description": "Unit of `delay_value`. Required when `delay` is true.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again, but never within 6 months of its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerTimeSinceLastPurchase-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "Required. How long after the order was placed the automation starts, in units of `delay_unit` (at most 3 months in total).",
            "example": 30,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day",
              "week"
            ],
            "type": "string",
            "description": "Required. Unit of `delay_value`.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.AutomationTriggerTimeSinceLastPurchase.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "store"
        ],
        "properties": {
          "store": {
            "description": "IRI of the store the trigger watches, as returned by `list_stores`.",
            "example": "/stores/acme-shop",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "delay_value": {
            "description": "Required. How long after the order was placed the automation starts, in units of `delay_unit` (at most 3 months in total).",
            "example": 30,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day",
              "week"
            ],
            "type": "string",
            "description": "Required. Unit of `delay_value`.",
            "example": "day"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Whether a contact can go through the automation again after finishing it. If false (the default), each contact runs through it once; if true, it can enter again once at least 24 hours have passed since its previous run.",
            "example": true
          }
        }
      },
      "AutomationTrigger.jsonld-automation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "AutomationTrigger.jsonld-automation.read_automation.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "AutomationTrigger.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {}
        }
      },
      "AutomationTrigger.jsonld-automation_trigger.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "automation": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Automation"
          },
          "trigger_type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/TriggerType"
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "workflow_repeat": {
            "type": "boolean",
            "description": "Contact can repeat workflow?"
          },
          "trigger": {},
          "count_automation_queues": {
            "type": "integer"
          },
          "count_completed_automation_queues": {
            "type": "integer"
          },
          "count_queued_automation_queues": {
            "type": "integer"
          },
          "count_canceled_automation_queues": {
            "type": "integer"
          }
        }
      },
      "BatchOperation-batch_operation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "$ref": "#/components/schemas/BatchOperationStatus"
          },
          "total": {
            "type": "integer",
            "description": "Total number of operations"
          },
          "finished": {
            "type": "integer",
            "description": "Number of operations finished"
          },
          "errored": {
            "type": "integer",
            "description": "Number of operations errored"
          },
          "finished_at": {
            "type": "string",
            "format": "datetime",
            "description": "Date of operations finished"
          },
          "response_body_url": {
            "type": "string",
            "format": "uri",
            "description": "Url to download all the operations responses. Download is only available for 15 minutes after the batch is finished. To regenerate the response body url, use `/batch_operations/{uuid}/actions/regenerate_response_body_url`"
          }
        }
      },
      "BatchOperation-batch_operation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "operations": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Operation-batch_operation.write"
            },
            "description": "The calls to run, in order (1 to 500). Each is checked with the permissions of the token that creates the batch.",
            "example": [
              {
                "method": "POST",
                "path": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members",
                "body": "{\"email\": \"ana@example.com\"}",
                "external_identifier": "row-1"
              }
            ]
          }
        }
      },
      "BatchOperation.jsonld-batch_operation.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "$ref": "#/components/schemas/BatchOperationStatus"
          },
          "total": {
            "type": "integer",
            "description": "Total number of operations"
          },
          "finished": {
            "type": "integer",
            "description": "Number of operations finished"
          },
          "errored": {
            "type": "integer",
            "description": "Number of operations errored"
          },
          "finished_at": {
            "type": "string",
            "format": "datetime",
            "description": "Date of operations finished"
          },
          "response_body_url": {
            "type": "string",
            "format": "uri",
            "description": "Url to download all the operations responses. Download is only available for 15 minutes after the batch is finished. To regenerate the response body url, use `/batch_operations/{uuid}/actions/regenerate_response_body_url`"
          }
        }
      },
      "BatchOperation.jsonld-batch_operation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "operations": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Operation.jsonld-batch_operation.write"
            },
            "description": "The calls to run, in order (1 to 500). Each is checked with the permissions of the token that creates the batch.",
            "example": [
              {
                "method": "POST",
                "path": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members",
                "body": "{\"email\": \"ana@example.com\"}",
                "external_identifier": "row-1"
              }
            ]
          }
        }
      },
      "BatchOperationResource": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "operations": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "$ref": "#/components/schemas/BatchOperationStatus"
          },
          "total": {
            "type": "integer",
            "description": "Total number of operations"
          },
          "finished": {
            "type": "integer",
            "description": "Number of operations finished"
          },
          "errored": {
            "type": "integer",
            "description": "Number of operations errored"
          },
          "finished_at": {
            "type": "string",
            "format": "datetime",
            "description": "Date of operations finished"
          },
          "response_body_url": {
            "type": "string",
            "format": "uri",
            "description": "Url to download all the operations responses. Download is only available for 15 minutes after the batch is finished. To regenerate the response body url, use `/batch_operations/{uuid}/actions/regenerate_response_body_url`"
          }
        }
      },
      "BatchOperationResource.BatchOperationErrorsResource-batch_operation_errors.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "total_operations": {
            "type": "integer",
            "description": "Total number of operations in the batch"
          },
          "success_count": {
            "type": "integer",
            "description": "Number of successful operations"
          },
          "total_errors": {
            "type": "integer",
            "description": "Number of failed operations"
          },
          "errors": {
            "type": "array",
            "description": "List of failed operations with error details",
            "items": {
              "type": "object",
              "properties": {
                "externalIdentifier": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "path": {
                  "type": "string"
                },
                "method": {
                  "type": "string"
                },
                "status": {
                  "type": "integer"
                },
                "errorType": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                }
              }
            }
          },
          "grouped_by_message": {
            "type": "object",
            "description": "Errors grouped by message with count",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer"
                },
                "status": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "BatchOperationResource.BatchOperationErrorsResource.jsonld-batch_operation_errors.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "total_operations": {
            "type": "integer",
            "description": "Total number of operations in the batch"
          },
          "success_count": {
            "type": "integer",
            "description": "Number of successful operations"
          },
          "total_errors": {
            "type": "integer",
            "description": "Number of failed operations"
          },
          "errors": {
            "type": "array",
            "description": "List of failed operations with error details",
            "items": {
              "type": "object",
              "properties": {
                "externalIdentifier": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "path": {
                  "type": "string"
                },
                "method": {
                  "type": "string"
                },
                "status": {
                  "type": "integer"
                },
                "errorType": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "type": "string"
                }
              }
            }
          },
          "grouped_by_message": {
            "type": "object",
            "description": "Errors grouped by message with count",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer"
                },
                "status": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "BatchOperationResource.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "operations": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "$ref": "#/components/schemas/BatchOperationStatus"
          },
          "total": {
            "type": "integer",
            "description": "Total number of operations"
          },
          "finished": {
            "type": "integer",
            "description": "Number of operations finished"
          },
          "errored": {
            "type": "integer",
            "description": "Number of operations errored"
          },
          "finished_at": {
            "type": "string",
            "format": "datetime",
            "description": "Date of operations finished"
          },
          "response_body_url": {
            "type": "string",
            "format": "uri",
            "description": "Url to download all the operations responses. Download is only available for 15 minutes after the batch is finished. To regenerate the response body url, use `/batch_operations/{uuid}/actions/regenerate_response_body_url`"
          }
        }
      },
      "BookingCalendar-booking_calendar.read": {
        "type": "object",
        "description": "`list_booking_calendars` (fase 5): the own Google calendars a booking page can use (BookingCalendarAccess::forOwner).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. Same identifiers as `list_meeting_calendars` (decisión 24): both read the\n`google_calendar` rows of `integration_resource`; `uuid` is that row, the one the configuration stores.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the calendar. Use it in `destination_calendar_resource_uuid` and `availability_calendar_resource_uuids`.",
            "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
          },
          "connection_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the Google connection (the Google account) that holds the calendar; the same `connection_uuid` as in `list_meeting_calendars`.",
            "example": "e4b7d1a9-6c23-4f58-b0e1-5a9c3d7f2b86"
          },
          "calendar_id": {
            "type": "string",
            "description": "Google calendar ID (usually an email address), the same `calendar_id` as in `list_meeting_calendars`.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": "string",
            "description": "Name of the Google calendar, or its `calendar_id` when it has none.",
            "example": "Sergio - Work"
          },
          "account_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The connected Google account, as `account_email` in `list_meeting_calendars`. `null` when unknown.",
            "example": "sergio@acme.com"
          },
          "writable": {
            "type": "boolean",
            "description": "Whether meetings can be created in it. Only a writable calendar can be the destination.",
            "example": true
          }
        }
      },
      "BookingCalendar.jsonld-booking_calendar.read": {
        "type": "object",
        "description": "`list_booking_calendars` (fase 5): the own Google calendars a booking page can use (BookingCalendarAccess::forOwner).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. Same identifiers as `list_meeting_calendars` (decisión 24): both read the\n`google_calendar` rows of `integration_resource`; `uuid` is that row, the one the configuration stores.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the calendar. Use it in `destination_calendar_resource_uuid` and `availability_calendar_resource_uuids`.",
            "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
          },
          "connection_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the Google connection (the Google account) that holds the calendar; the same `connection_uuid` as in `list_meeting_calendars`.",
            "example": "e4b7d1a9-6c23-4f58-b0e1-5a9c3d7f2b86"
          },
          "calendar_id": {
            "type": "string",
            "description": "Google calendar ID (usually an email address), the same `calendar_id` as in `list_meeting_calendars`.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": "string",
            "description": "Name of the Google calendar, or its `calendar_id` when it has none.",
            "example": "Sergio - Work"
          },
          "account_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The connected Google account, as `account_email` in `list_meeting_calendars`. `null` when unknown.",
            "example": "sergio@acme.com"
          },
          "writable": {
            "type": "boolean",
            "description": "Whether meetings can be created in it. Only a writable calendar can be the destination.",
            "example": true
          }
        }
      },
      "BookingEmailDesign-booking_email_design.read": {
        "type": "object",
        "description": "`restore_booking_email_default` (fase 5): the design of one booking email back to the default (RestoreBookingEmailDefault).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. The design itself (Beefree) is not published.",
        "deprecated": false,
        "properties": {
          "page": {
            "type": "string",
            "description": "IRI of the booking page.",
            "example": "/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/BookingEmailType",
            "description": "Which email.",
            "example": "confirmation"
          },
          "content_revision": {
            "type": "string",
            "description": "Revision of the design after restoring (the default's).",
            "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
          },
          "default": {
            "type": "boolean",
            "description": "Always `true`: the design is the shipped default.",
            "example": true
          }
        }
      },
      "BookingEmailDesign.BookingEmailRestoreInput": {
        "type": "object",
        "description": "`restore_booking_email_default` (fase 5): the design of one booking email back to the default (RestoreBookingEmailDefault).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. The design itself (Beefree) is not published.",
        "deprecated": false,
        "required": [
          "revision"
        ],
        "properties": {
          "revision": {
            "type": "string",
            "description": "The `content_revision` of that email in `get_booking_email_settings`. If the design changed since, nothing is restored.",
            "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
          }
        }
      },
      "BookingEmailDesign.BookingEmailRestoreInput.jsonld": {
        "type": "object",
        "description": "`restore_booking_email_default` (fase 5): the design of one booking email back to the default (RestoreBookingEmailDefault).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. The design itself (Beefree) is not published.",
        "deprecated": false,
        "required": [
          "revision"
        ],
        "properties": {
          "revision": {
            "type": "string",
            "description": "The `content_revision` of that email in `get_booking_email_settings`. If the design changed since, nothing is restored.",
            "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
          }
        }
      },
      "BookingEmailDesign.jsonld-booking_email_design.read": {
        "type": "object",
        "description": "`restore_booking_email_default` (fase 5): the design of one booking email back to the default (RestoreBookingEmailDefault).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. The design itself (Beefree) is not published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "page": {
            "type": "string",
            "description": "IRI of the booking page.",
            "example": "/booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/BookingEmailType",
            "description": "Which email.",
            "example": "confirmation"
          },
          "content_revision": {
            "type": "string",
            "description": "Revision of the design after restoring (the default's).",
            "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
          },
          "default": {
            "type": "boolean",
            "description": "Always `true`: the design is the shipped default.",
            "example": true
          }
        }
      },
      "BookingEmailSenderCatalog-booking_email_sender_catalog.read": {
        "type": "object",
        "description": "`list_booking_email_senders` (fase 5): the confirmed senders that can send booking emails (ListBookingSenders). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "senders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the sender; use `/senders/{uuid}` as `sender` in `update_booking_email_settings`.",
                  "example": "9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
                },
                "email": {
                  "type": "string",
                  "description": "Email address of the sender.",
                  "example": "sergio@acme.com"
                },
                "domain": {
                  "type": "string",
                  "description": "Domain of the address.",
                  "example": "acme.com"
                },
                "mode": {
                  "$ref": "#/components/schemas/BookingSendableSenderMode",
                  "description": "`direct` when the domain is authenticated and the email is signed with it, `mailbyem` when it leaves from the Easymailing fallback address.",
                  "example": "direct"
                },
                "effective_sender": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "$ref": "#/components/schemas/BookingEffectiveSenderSource",
                      "description": "`selected` or `fallback`.",
                      "example": "selected"
                    },
                    "email": {
                      "type": "string",
                      "description": "The address that appears as sender.",
                      "example": "sergio@acme.com"
                    }
                  },
                  "required": [
                    "source",
                    "email"
                  ],
                  "description": "The address that will appear as sender.",
                  "example": {
                    "source": "selected",
                    "email": "sergio@acme.com"
                  }
                },
                "authentication_notice": {
                  "$ref": "#/components/schemas/BookingSenderAuthenticationNotice",
                  "description": "State of the domain: `authenticated`, `not-authenticated` or `not-created` (it still sends through the fallback address), `free-provider` (a free mailbox such as Gmail).",
                  "example": "authenticated"
                }
              },
              "required": [
                "uuid",
                "email",
                "domain",
                "mode",
                "effective_sender",
                "authentication_notice"
              ]
            },
            "description": "Senders that can be chosen, by email address.",
            "example": [
              {
                "uuid": "9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36",
                "email": "sergio@acme.com",
                "domain": "acme.com",
                "mode": "direct",
                "effective_sender": {
                  "source": "selected",
                  "email": "sergio@acme.com"
                },
                "authentication_notice": "authenticated"
              }
            ]
          },
          "excluded_count": {
            "type": "integer",
            "description": "Confirmed senders left out because their domain needs authentication before they can send.",
            "example": 1
          }
        }
      },
      "BookingEmailSenderCatalog.jsonld-booking_email_sender_catalog.read": {
        "type": "object",
        "description": "`list_booking_email_senders` (fase 5): the confirmed senders that can send booking emails (ListBookingSenders). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "senders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the sender; use `/senders/{uuid}` as `sender` in `update_booking_email_settings`.",
                  "example": "9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
                },
                "email": {
                  "type": "string",
                  "description": "Email address of the sender.",
                  "example": "sergio@acme.com"
                },
                "domain": {
                  "type": "string",
                  "description": "Domain of the address.",
                  "example": "acme.com"
                },
                "mode": {
                  "$ref": "#/components/schemas/BookingSendableSenderMode",
                  "description": "`direct` when the domain is authenticated and the email is signed with it, `mailbyem` when it leaves from the Easymailing fallback address.",
                  "example": "direct"
                },
                "effective_sender": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "$ref": "#/components/schemas/BookingEffectiveSenderSource",
                      "description": "`selected` or `fallback`.",
                      "example": "selected"
                    },
                    "email": {
                      "type": "string",
                      "description": "The address that appears as sender.",
                      "example": "sergio@acme.com"
                    }
                  },
                  "required": [
                    "source",
                    "email"
                  ],
                  "description": "The address that will appear as sender.",
                  "example": {
                    "source": "selected",
                    "email": "sergio@acme.com"
                  }
                },
                "authentication_notice": {
                  "$ref": "#/components/schemas/BookingSenderAuthenticationNotice",
                  "description": "State of the domain: `authenticated`, `not-authenticated` or `not-created` (it still sends through the fallback address), `free-provider` (a free mailbox such as Gmail).",
                  "example": "authenticated"
                }
              },
              "required": [
                "uuid",
                "email",
                "domain",
                "mode",
                "effective_sender",
                "authentication_notice"
              ]
            },
            "description": "Senders that can be chosen, by email address.",
            "example": [
              {
                "uuid": "9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36",
                "email": "sergio@acme.com",
                "domain": "acme.com",
                "mode": "direct",
                "effective_sender": {
                  "source": "selected",
                  "email": "sergio@acme.com"
                },
                "authentication_notice": "authenticated"
              }
            ]
          },
          "excluded_count": {
            "type": "integer",
            "description": "Confirmed senders left out because their domain needs authentication before they can send.",
            "example": 1
          }
        }
      },
      "BookingEmailSettings-booking_email_settings.read": {
        "type": "object",
        "description": "Sender, sender name and subjects of the two booking emails of a page (fase 5): `get_booking_email_settings` and\n`update_booking_email_settings`. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "sender": {
            "type": [
              "string",
              "null"
            ],
            "description": "IRI of the sender the booking emails leave from. `null` when the page has none.",
            "example": "/senders/9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
          },
          "sender_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address of that sender; `null` when there is no sender.",
            "example": "sergio@acme.com"
          },
          "sender_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name stored for the sender. `null` means the host's name (`default_sender_name`) is used.",
            "example": "Sergio from Acme"
          },
          "default_sender_name": {
            "type": "string",
            "description": "Name used when `sender_name` is `null`: the host's name.",
            "example": "Sergio Gallego"
          },
          "sender_mode": {
            "type": "string",
            "$ref": "#/components/schemas/BookingEmailSenderMode",
            "description": "How the emails leave: `direct` (signed with the sender's authenticated domain), `mailbyem` (sent from the Easymailing fallback address on behalf of the sender), `needs_authentication` (the sender's domain must be authenticated first) or `unavailable` (no sender, deleted or unconfirmed). Only `direct` and `mailbyem` can send.",
            "example": "direct"
          },
          "effective_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "source": {
                "$ref": "#/components/schemas/BookingEffectiveSenderSource",
                "description": "`selected` when the emails leave from the chosen sender, `fallback` when from the Easymailing fallback address.",
                "example": "selected"
              },
              "email": {
                "type": "string",
                "description": "The address that appears as sender.",
                "example": "sergio@acme.com"
              }
            },
            "required": [
              "source",
              "email"
            ],
            "description": "The address that will appear as sender. `null` without a usable sender. Replies always go to the sender's own address.",
            "example": {
              "source": "selected",
              "email": "sergio@acme.com"
            }
          },
          "emails": {
            "type": "object",
            "properties": {
              "confirmation": {
                "type": "object",
                "properties": {
                  "persisted": {
                    "type": "boolean",
                    "description": "`false` while the email still uses the default design and subject and nothing is stored for it yet.",
                    "example": true
                  },
                  "locale": {
                    "type": "string",
                    "description": "Language of the email, such as `es_ES` or `en_US`. It is fixed when the email is created, from the account language.",
                    "example": "es_ES"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Subject of the email. It may contain variables like `{{ booking.host_name }}`.",
                    "example": "Your meeting with {{ booking.host_name }} is booked"
                  },
                  "content_revision": {
                    "type": "string",
                    "description": "Fingerprint of the current design (64 hex characters). `restore_booking_email_default` needs it.",
                    "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
                  },
                  "updated_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When the email was last saved; `null` while it is not persisted.",
                    "example": "2026-11-02T09:15:00+00:00"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "`true` while the design is the shipped default of its type and language.",
                    "example": true
                  }
                },
                "required": [
                  "persisted",
                  "locale",
                  "subject",
                  "content_revision",
                  "updated_at",
                  "default"
                ],
                "description": "Sent to the person booking, when the page asks them to confirm their email, with the link that creates the meeting.",
                "example": {
                  "persisted": true,
                  "locale": "en_US",
                  "subject": "Confirm your meeting with {{ booking.host_name }}",
                  "content_revision": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10",
                  "updated_at": "2026-11-02T09:15:00+00:00",
                  "default": true
                }
              },
              "data_check": {
                "type": "object",
                "properties": {
                  "persisted": {
                    "type": "boolean",
                    "description": "`false` while the email still uses the default design and subject and nothing is stored for it yet.",
                    "example": true
                  },
                  "locale": {
                    "type": "string",
                    "description": "Language of the email, such as `es_ES` or `en_US`. It is fixed when the email is created, from the account language.",
                    "example": "es_ES"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Subject of the email. It may contain variables like `{{ booking.host_name }}`.",
                    "example": "Your meeting with {{ booking.host_name }} is booked"
                  },
                  "content_revision": {
                    "type": "string",
                    "description": "Fingerprint of the current design (64 hex characters). `restore_booking_email_default` needs it.",
                    "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
                  },
                  "updated_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When the email was last saved; `null` while it is not persisted.",
                    "example": "2026-11-02T09:15:00+00:00"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "`true` while the design is the shipped default of its type and language.",
                    "example": true
                  }
                },
                "required": [
                  "persisted",
                  "locale",
                  "subject",
                  "content_revision",
                  "updated_at",
                  "default"
                ],
                "description": "Sent to the person booking, after they book, to confirm their email when it already belongs to a contact, with a verification link.",
                "example": {
                  "persisted": true,
                  "locale": "en_US",
                  "subject": "Your meeting with {{ booking.host_name }} is booked",
                  "content_revision": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3",
                  "updated_at": "2026-11-02T09:15:00+00:00",
                  "default": true
                }
              }
            },
            "required": [
              "confirmation",
              "data_check"
            ],
            "description": "The two booking emails of the page.",
            "example": {
              "confirmation": {
                "persisted": true,
                "locale": "en_US",
                "subject": "Confirm your meeting with {{ booking.host_name }}",
                "content_revision": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10",
                "updated_at": "2026-11-02T09:15:00+00:00",
                "default": true
              },
              "data_check": {
                "persisted": true,
                "locale": "en_US",
                "subject": "Your meeting with {{ booking.host_name }} is booked",
                "content_revision": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3",
                "updated_at": "2026-11-02T09:15:00+00:00",
                "default": true
              }
            }
          },
          "settings_revision": {
            "type": "string",
            "description": "Fingerprint of the sender, sender name and subjects (64 hex characters). Send it as `base_revision` to detect concurrent changes.",
            "example": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3"
          }
        }
      },
      "BookingEmailSettings.BookingEmailSettingsInput": {
        "type": "object",
        "description": "Sender, sender name and subjects of the two booking emails of a page (fase 5): `get_booking_email_settings` and\n`update_booking_email_settings`. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "sender": {
            "type": [
              "string",
              "null"
            ],
            "description": "IRI of the sender to use (`/senders/{uuid}` from `list_booking_email_senders`), or `null` to remove it. A page that is published, or that asks people to confirm their email, cannot lose its sender. Omit to keep the current one.",
            "example": "/senders/9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
          },
          "sender_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the sender, up to 255 characters on one line. `null` or empty falls back to the host's name. Omit to keep the current one.",
            "example": "Sergio from Acme"
          },
          "confirmation_subject": {
            "type": "string",
            "description": "Subject of the confirmation email, 1 to 255 characters on one line, with variables such as `{{ booking.host_name }}`, `{{ booking.title }}`, `{{ booking.starts_at }}`, `{{ booking.duration }}`, `{{ booking.location }}`, `{{ booking.invitee_name }}`. It cannot contain the links. Omit to keep it.",
            "example": "Confirm your meeting with {{ booking.host_name }}"
          },
          "data_check_subject": {
            "type": "string",
            "description": "Subject of the data-check email, same rules as `confirmation_subject` plus `{{ booking.verification_expires_at }}`. Omit to keep it.",
            "example": "Your meeting with {{ booking.host_name }} is booked"
          },
          "base_revision": {
            "type": "string",
            "description": "The `settings_revision` you read. Optional: if you send it and the settings changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied over the current settings.",
            "example": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3"
          }
        }
      },
      "BookingEmailSettings.BookingEmailSettingsInput.jsonld": {
        "type": "object",
        "description": "Sender, sender name and subjects of the two booking emails of a page (fase 5): `get_booking_email_settings` and\n`update_booking_email_settings`. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "sender": {
            "type": [
              "string",
              "null"
            ],
            "description": "IRI of the sender to use (`/senders/{uuid}` from `list_booking_email_senders`), or `null` to remove it. A page that is published, or that asks people to confirm their email, cannot lose its sender. Omit to keep the current one.",
            "example": "/senders/9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
          },
          "sender_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the sender, up to 255 characters on one line. `null` or empty falls back to the host's name. Omit to keep the current one.",
            "example": "Sergio from Acme"
          },
          "confirmation_subject": {
            "type": "string",
            "description": "Subject of the confirmation email, 1 to 255 characters on one line, with variables such as `{{ booking.host_name }}`, `{{ booking.title }}`, `{{ booking.starts_at }}`, `{{ booking.duration }}`, `{{ booking.location }}`, `{{ booking.invitee_name }}`. It cannot contain the links. Omit to keep it.",
            "example": "Confirm your meeting with {{ booking.host_name }}"
          },
          "data_check_subject": {
            "type": "string",
            "description": "Subject of the data-check email, same rules as `confirmation_subject` plus `{{ booking.verification_expires_at }}`. Omit to keep it.",
            "example": "Your meeting with {{ booking.host_name }} is booked"
          },
          "base_revision": {
            "type": "string",
            "description": "The `settings_revision` you read. Optional: if you send it and the settings changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied over the current settings.",
            "example": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3"
          }
        }
      },
      "BookingEmailSettings.jsonld-booking_email_settings.read": {
        "type": "object",
        "description": "Sender, sender name and subjects of the two booking emails of a page (fase 5): `get_booking_email_settings` and\n`update_booking_email_settings`. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sender": {
            "type": [
              "string",
              "null"
            ],
            "description": "IRI of the sender the booking emails leave from. `null` when the page has none.",
            "example": "/senders/9c3e6a1d-7b52-4f08-a4d9-2e5b8c1f7a36"
          },
          "sender_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address of that sender; `null` when there is no sender.",
            "example": "sergio@acme.com"
          },
          "sender_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name stored for the sender. `null` means the host's name (`default_sender_name`) is used.",
            "example": "Sergio from Acme"
          },
          "default_sender_name": {
            "type": "string",
            "description": "Name used when `sender_name` is `null`: the host's name.",
            "example": "Sergio Gallego"
          },
          "sender_mode": {
            "type": "string",
            "$ref": "#/components/schemas/BookingEmailSenderMode",
            "description": "How the emails leave: `direct` (signed with the sender's authenticated domain), `mailbyem` (sent from the Easymailing fallback address on behalf of the sender), `needs_authentication` (the sender's domain must be authenticated first) or `unavailable` (no sender, deleted or unconfirmed). Only `direct` and `mailbyem` can send.",
            "example": "direct"
          },
          "effective_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "source": {
                "$ref": "#/components/schemas/BookingEffectiveSenderSource",
                "description": "`selected` when the emails leave from the chosen sender, `fallback` when from the Easymailing fallback address.",
                "example": "selected"
              },
              "email": {
                "type": "string",
                "description": "The address that appears as sender.",
                "example": "sergio@acme.com"
              }
            },
            "required": [
              "source",
              "email"
            ],
            "description": "The address that will appear as sender. `null` without a usable sender. Replies always go to the sender's own address.",
            "example": {
              "source": "selected",
              "email": "sergio@acme.com"
            }
          },
          "emails": {
            "type": "object",
            "properties": {
              "confirmation": {
                "type": "object",
                "properties": {
                  "persisted": {
                    "type": "boolean",
                    "description": "`false` while the email still uses the default design and subject and nothing is stored for it yet.",
                    "example": true
                  },
                  "locale": {
                    "type": "string",
                    "description": "Language of the email, such as `es_ES` or `en_US`. It is fixed when the email is created, from the account language.",
                    "example": "es_ES"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Subject of the email. It may contain variables like `{{ booking.host_name }}`.",
                    "example": "Your meeting with {{ booking.host_name }} is booked"
                  },
                  "content_revision": {
                    "type": "string",
                    "description": "Fingerprint of the current design (64 hex characters). `restore_booking_email_default` needs it.",
                    "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
                  },
                  "updated_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When the email was last saved; `null` while it is not persisted.",
                    "example": "2026-11-02T09:15:00+00:00"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "`true` while the design is the shipped default of its type and language.",
                    "example": true
                  }
                },
                "required": [
                  "persisted",
                  "locale",
                  "subject",
                  "content_revision",
                  "updated_at",
                  "default"
                ],
                "description": "Sent to the person booking, when the page asks them to confirm their email, with the link that creates the meeting.",
                "example": {
                  "persisted": true,
                  "locale": "en_US",
                  "subject": "Confirm your meeting with {{ booking.host_name }}",
                  "content_revision": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10",
                  "updated_at": "2026-11-02T09:15:00+00:00",
                  "default": true
                }
              },
              "data_check": {
                "type": "object",
                "properties": {
                  "persisted": {
                    "type": "boolean",
                    "description": "`false` while the email still uses the default design and subject and nothing is stored for it yet.",
                    "example": true
                  },
                  "locale": {
                    "type": "string",
                    "description": "Language of the email, such as `es_ES` or `en_US`. It is fixed when the email is created, from the account language.",
                    "example": "es_ES"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Subject of the email. It may contain variables like `{{ booking.host_name }}`.",
                    "example": "Your meeting with {{ booking.host_name }} is booked"
                  },
                  "content_revision": {
                    "type": "string",
                    "description": "Fingerprint of the current design (64 hex characters). `restore_booking_email_default` needs it.",
                    "example": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10"
                  },
                  "updated_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When the email was last saved; `null` while it is not persisted.",
                    "example": "2026-11-02T09:15:00+00:00"
                  },
                  "default": {
                    "type": "boolean",
                    "description": "`true` while the design is the shipped default of its type and language.",
                    "example": true
                  }
                },
                "required": [
                  "persisted",
                  "locale",
                  "subject",
                  "content_revision",
                  "updated_at",
                  "default"
                ],
                "description": "Sent to the person booking, after they book, to confirm their email when it already belongs to a contact, with a verification link.",
                "example": {
                  "persisted": true,
                  "locale": "en_US",
                  "subject": "Your meeting with {{ booking.host_name }} is booked",
                  "content_revision": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3",
                  "updated_at": "2026-11-02T09:15:00+00:00",
                  "default": true
                }
              }
            },
            "required": [
              "confirmation",
              "data_check"
            ],
            "description": "The two booking emails of the page.",
            "example": {
              "confirmation": {
                "persisted": true,
                "locale": "en_US",
                "subject": "Confirm your meeting with {{ booking.host_name }}",
                "content_revision": "3b5d5c3712955042212316173ccf37be0c3a4bd4d61c1f1f4a3c9e8b7d2a6f10",
                "updated_at": "2026-11-02T09:15:00+00:00",
                "default": true
              },
              "data_check": {
                "persisted": true,
                "locale": "en_US",
                "subject": "Your meeting with {{ booking.host_name }} is booked",
                "content_revision": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3",
                "updated_at": "2026-11-02T09:15:00+00:00",
                "default": true
              }
            }
          },
          "settings_revision": {
            "type": "string",
            "description": "Fingerprint of the sender, sender name and subjects (64 hex characters). Send it as `base_revision` to detect concurrent changes.",
            "example": "9f2c1e7a4b8d3056a1c4e9d27b6f0a53c8e1d4b7a290f3c6e5d8b1a47c0e92f3"
          }
        }
      },
      "BookingField-booking_field.read": {
        "type": "object",
        "description": "`list_booking_fields` (fase 5): the contact and company fields a booking form can ask. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nThe label of a built-in field is its stable code, not the key of the app's translations (decisión 23).",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable identifier of the catalog entry: `<entity>:<kind>:<key or attribute id>`.",
            "example": "contact:structural:email"
          },
          "field_reference": {
            "type": "object",
            "properties": {
              "entity": {
                "$ref": "#/components/schemas/BookingFieldEntity",
                "description": "Record the field belongs to.",
                "example": "contact"
              },
              "kind": {
                "$ref": "#/components/schemas/BookingFieldReferenceKind",
                "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                "example": "structural"
              },
              "key": {
                "type": "string",
                "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                "example": "email"
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
              }
            },
            "required": [
              "entity",
              "kind"
            ],
            "description": "Reference to copy into `configuration.fields[].field_reference`.",
            "example": {
              "entity": "contact",
              "kind": "structural",
              "key": "email"
            }
          },
          "contract_version": {
            "type": "integer",
            "description": "Version of the field definition.",
            "example": 1
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/BookingFieldEntity",
            "description": "Whether the answer is saved on a contact or on a company.",
            "example": "contact"
          },
          "label": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/BookingFieldLabelKind",
                "description": "`i18n` or `tenant_text`.",
                "example": "i18n"
              },
              "key": {
                "type": "string",
                "description": "Stable code of the built-in field; with `kind` `i18n`.",
                "example": "email"
              },
              "text": {
                "type": "string",
                "description": "Account's own text; with `kind` `tenant_text`.",
                "example": "Preferred language"
              },
              "resource_type": {
                "type": "string",
                "description": "Kind of resource that owns the text, when there is one.",
                "example": "crm_attribute"
              },
              "resource_id": {
                "type": "string",
                "description": "Identifier of that resource.",
                "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
              },
              "resource_version": {
                "type": "integer",
                "description": "Version of that resource.",
                "example": 2
              }
            },
            "required": [
              "kind"
            ],
            "description": "Name of the field. `kind` `i18n` is a built-in field: `key` is its stable code (the `field_reference.key` of the field), not a translated text; `tenant_text` carries the account's own `text`.",
            "example": {
              "kind": "i18n",
              "key": "email"
            }
          },
          "semantic_type": {
            "type": "string",
            "description": "Type of the value (`text`, `email`, `phone`, `enum`, `money`, `date`...).",
            "example": "email"
          },
          "control": {
            "type": "string",
            "description": "Input control to use in `configuration.fields[].control`.",
            "example": "email"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value saved on the record.",
                  "example": "es"
                },
                "label": {
                  "type": "string",
                  "description": "Text shown.",
                  "example": "Spanish"
                }
              }
            },
            "description": "Allowed answers for `select` and `multi-select` controls; empty otherwise.",
            "example": []
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency of a `money` field; `null` for other types.",
            "example": "EUR"
          },
          "required": {
            "type": "boolean",
            "description": "`true` for the contact `first_name` and `email` fields: the form must include them.",
            "example": true
          }
        }
      },
      "BookingField.jsonld-booking_field.read": {
        "type": "object",
        "description": "`list_booking_fields` (fase 5): the contact and company fields a booking form can ask. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nThe label of a built-in field is its stable code, not the key of the app's translations (decisión 23).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Stable identifier of the catalog entry: `<entity>:<kind>:<key or attribute id>`.",
            "example": "contact:structural:email"
          },
          "field_reference": {
            "type": "object",
            "properties": {
              "entity": {
                "$ref": "#/components/schemas/BookingFieldEntity",
                "description": "Record the field belongs to.",
                "example": "contact"
              },
              "kind": {
                "$ref": "#/components/schemas/BookingFieldReferenceKind",
                "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                "example": "structural"
              },
              "key": {
                "type": "string",
                "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                "example": "email"
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
              }
            },
            "required": [
              "entity",
              "kind"
            ],
            "description": "Reference to copy into `configuration.fields[].field_reference`.",
            "example": {
              "entity": "contact",
              "kind": "structural",
              "key": "email"
            }
          },
          "contract_version": {
            "type": "integer",
            "description": "Version of the field definition.",
            "example": 1
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/BookingFieldEntity",
            "description": "Whether the answer is saved on a contact or on a company.",
            "example": "contact"
          },
          "label": {
            "type": "object",
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/BookingFieldLabelKind",
                "description": "`i18n` or `tenant_text`.",
                "example": "i18n"
              },
              "key": {
                "type": "string",
                "description": "Stable code of the built-in field; with `kind` `i18n`.",
                "example": "email"
              },
              "text": {
                "type": "string",
                "description": "Account's own text; with `kind` `tenant_text`.",
                "example": "Preferred language"
              },
              "resource_type": {
                "type": "string",
                "description": "Kind of resource that owns the text, when there is one.",
                "example": "crm_attribute"
              },
              "resource_id": {
                "type": "string",
                "description": "Identifier of that resource.",
                "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
              },
              "resource_version": {
                "type": "integer",
                "description": "Version of that resource.",
                "example": 2
              }
            },
            "required": [
              "kind"
            ],
            "description": "Name of the field. `kind` `i18n` is a built-in field: `key` is its stable code (the `field_reference.key` of the field), not a translated text; `tenant_text` carries the account's own `text`.",
            "example": {
              "kind": "i18n",
              "key": "email"
            }
          },
          "semantic_type": {
            "type": "string",
            "description": "Type of the value (`text`, `email`, `phone`, `enum`, `money`, `date`...).",
            "example": "email"
          },
          "control": {
            "type": "string",
            "description": "Input control to use in `configuration.fields[].control`.",
            "example": "email"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value saved on the record.",
                  "example": "es"
                },
                "label": {
                  "type": "string",
                  "description": "Text shown.",
                  "example": "Spanish"
                }
              }
            },
            "description": "Allowed answers for `select` and `multi-select` controls; empty otherwise.",
            "example": []
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency of a `money` field; `null` for other types.",
            "example": "EUR"
          },
          "required": {
            "type": "boolean",
            "description": "`true` for the contact `first_name` and `email` fields: the form must include them.",
            "example": true
          }
        }
      },
      "BookingOffer-booking_offer.read": {
        "type": "object",
        "description": "`create_booking_offer` (fase 5): up to 10 exact times of a published booking page, one link each (CreateBookingOffer).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. An offer is not readable afterwards: the links are only in this answer.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the offer.",
            "example": "c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47"
          },
          "page": {
            "type": "string",
            "description": "IRI of the booking page the offer belongs to.",
            "example": "/usable_booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "duration_minutes": {
            "type": "integer",
            "description": "Meeting length in minutes.",
            "example": 30
          },
          "time_zone": {
            "type": "string",
            "description": "Time zone sent with the request.",
            "example": "America/Mexico_City"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the offer expires: the start of the last option. After it no link works.",
            "example": "2026-11-10T16:00:00+00:00"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the option, UTC.",
                  "example": "2026-11-09T09:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the option, UTC.",
                  "example": "2026-11-09T09:30:00+00:00"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Link that opens the booking page with this time pre-selected for the person who receives it.",
                  "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-09T09%3A00%3A00%2B00%3A00"
                }
              },
              "required": [
                "starts_at",
                "ends_at",
                "url"
              ]
            },
            "description": "One booking link per option, in time order. Each link is secret and is shown only in this response: it cannot be recovered later.",
            "example": [
              {
                "starts_at": "2026-11-09T09:00:00+00:00",
                "ends_at": "2026-11-09T09:30:00+00:00",
                "url": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-09T09%3A00%3A00%2B00%3A00"
              },
              {
                "starts_at": "2026-11-10T16:00:00+00:00",
                "ends_at": "2026-11-10T16:30:00+00:00",
                "url": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-10T16%3A00%3A00%2B00%3A00"
              }
            ]
          }
        }
      },
      "BookingOffer.BookingOfferInput": {
        "type": "object",
        "description": "`create_booking_offer` (fase 5): up to 10 exact times of a published booking page, one link each (CreateBookingOffer).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. An offer is not readable afterwards: the links are only in this answer.",
        "deprecated": false,
        "required": [
          "starts_at",
          "duration_minutes",
          "time_zone"
        ],
        "properties": {
          "starts_at": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Start times of the proposed options, 1 to 10, ISO 8601 with seconds and time zone. They cannot overlap and the last one must be in the future. Each must be a free time returned by `get_booking_page_availability` (or, with `allow_outside_hours`, a free time outside the opening hours).",
            "example": [
              "2026-11-09T09:00:00Z",
              "2026-11-10T16:00:00Z"
            ]
          },
          "duration_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "$ref": "#/components/schemas/BookingDuration",
            "description": "Meeting length in minutes, one of the page's durations.",
            "example": 30
          },
          "time_zone": {
            "type": "string",
            "description": "IANA time zone of the person who will receive the links, kept with the offer for display.",
            "example": "America/Mexico_City"
          },
          "allow_outside_hours": {
            "type": "boolean",
            "description": "Allow options outside the weekly opening hours of the page (not outside busy times, buffers, notice, horizon or the daily limit). Only on the user's own pages. Default `false`.",
            "example": false
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingOffer.BookingOfferInput.jsonld": {
        "type": "object",
        "description": "`create_booking_offer` (fase 5): up to 10 exact times of a published booking page, one link each (CreateBookingOffer).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. An offer is not readable afterwards: the links are only in this answer.",
        "deprecated": false,
        "required": [
          "starts_at",
          "duration_minutes",
          "time_zone"
        ],
        "properties": {
          "starts_at": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Start times of the proposed options, 1 to 10, ISO 8601 with seconds and time zone. They cannot overlap and the last one must be in the future. Each must be a free time returned by `get_booking_page_availability` (or, with `allow_outside_hours`, a free time outside the opening hours).",
            "example": [
              "2026-11-09T09:00:00Z",
              "2026-11-10T16:00:00Z"
            ]
          },
          "duration_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "$ref": "#/components/schemas/BookingDuration",
            "description": "Meeting length in minutes, one of the page's durations.",
            "example": 30
          },
          "time_zone": {
            "type": "string",
            "description": "IANA time zone of the person who will receive the links, kept with the offer for display.",
            "example": "America/Mexico_City"
          },
          "allow_outside_hours": {
            "type": "boolean",
            "description": "Allow options outside the weekly opening hours of the page (not outside busy times, buffers, notice, horizon or the daily limit). Only on the user's own pages. Default `false`.",
            "example": false
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingOffer.jsonld-booking_offer.read": {
        "type": "object",
        "description": "`create_booking_offer` (fase 5): up to 10 exact times of a published booking page, one link each (CreateBookingOffer).\nGenerated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's. An offer is not readable afterwards: the links are only in this answer.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the offer.",
            "example": "c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47"
          },
          "page": {
            "type": "string",
            "description": "IRI of the booking page the offer belongs to.",
            "example": "/usable_booking_pages/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "duration_minutes": {
            "type": "integer",
            "description": "Meeting length in minutes.",
            "example": 30
          },
          "time_zone": {
            "type": "string",
            "description": "Time zone sent with the request.",
            "example": "America/Mexico_City"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the offer expires: the start of the last option. After it no link works.",
            "example": "2026-11-10T16:00:00+00:00"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the option, UTC.",
                  "example": "2026-11-09T09:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the option, UTC.",
                  "example": "2026-11-09T09:30:00+00:00"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Link that opens the booking page with this time pre-selected for the person who receives it.",
                  "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-09T09%3A00%3A00%2B00%3A00"
                }
              },
              "required": [
                "starts_at",
                "ends_at",
                "url"
              ]
            },
            "description": "One booking link per option, in time order. Each link is secret and is shown only in this response: it cannot be recovered later.",
            "example": [
              {
                "starts_at": "2026-11-09T09:00:00+00:00",
                "ends_at": "2026-11-09T09:30:00+00:00",
                "url": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-09T09%3A00%3A00%2B00%3A00"
              },
              {
                "starts_at": "2026-11-10T16:00:00+00:00",
                "ends_at": "2026-11-10T16:30:00+00:00",
                "url": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84#offer=c5a8e1f4-3d79-4b26-a0c3-9e6b2d8f1a47.9b1d4e7a2c5f8b3d6a0e1c4f7b2a5d8e3c6f9a1b4d7e0c3f6a9b2d5e8c1f4a7b&startsAt=2026-11-10T16%3A00%3A00%2B00%3A00"
              }
            ]
          }
        }
      },
      "BookingPage-booking_page.read": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the page.",
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageState",
            "description": "`draft` (never published), `published` (public link works), `paused` (link closed, can be published again) or `archived` (final).",
            "example": "draft"
          },
          "version": {
            "type": "integer",
            "description": "Version of the page. It grows with every change of configuration, state or sharing and when Google is reconnected and the page is re-linked to its calendar. Send it as `expected_version` to make sure nobody changed the page in between.",
            "example": 1
          },
          "configuration": {
            "description": "Everything that defines the page. Keys that were never set are absent. Fields that bind to the CRM carry no internal data here.",
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "example": {
              "schema_version": 1,
              "title": "Intro call with Sergio",
              "description": "A 30-minute call to see how Easymailing fits your team.",
              "custom_host": false,
              "location": "google_meet",
              "location_value": "",
              "allowed_durations": [
                30
              ],
              "default_duration": 30,
              "allow_duration_selection": false,
              "require_email_verification": false,
              "hour_format": "24h",
              "time_zone": "Europe/Madrid",
              "weekly_ranges": [
                {
                  "day": 1,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 2,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 3,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 4,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 5,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                }
              ],
              "dated_exceptions": [
                {
                  "date": "2026-12-25",
                  "closed": true,
                  "ranges": []
                }
              ],
              "notice_minutes": 240,
              "horizon_days": 60,
              "buffer_before_minutes": 0,
              "buffer_after_minutes": 15,
              "daily_limit": 4,
              "destination_calendar_resource_uuid": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13",
              "availability_calendar_resource_uuids": [
                "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              ],
              "fields": [
                {
                  "id": "booking_field_first_name",
                  "source": "contact",
                  "label": "Name",
                  "control": "text",
                  "required": true,
                  "field_reference": {
                    "entity": "contact",
                    "kind": "structural",
                    "key": "first_name"
                  }
                },
                {
                  "id": "booking_field_email",
                  "source": "contact",
                  "label": "Email",
                  "control": "email",
                  "required": true,
                  "field_reference": {
                    "entity": "contact",
                    "kind": "structural",
                    "key": "email"
                  }
                },
                {
                  "id": "booking_field_topic",
                  "source": "question",
                  "label": "What would you like to talk about?",
                  "control": "textarea",
                  "required": false
                }
              ],
              "contact_policy": "preserve",
              "company_policy": "preserve"
            }
          },
          "host_name": {
            "type": "string",
            "description": "Name shown as host: the owner's name or `configuration.host_name`.",
            "example": "Sergio Gallego"
          },
          "host_image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo shown as host. `null` when there is none.",
            "example": "https://cdn.easymailing.com/avatars/sergio.jpg"
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of `configuration.logo_asset_uuid`. `null` when there is none.",
            "example": "https://cdn.easymailing.com/acme/meeting-booking/images/4f2a9c1e7b3d.png"
          },
          "public_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link people use to book. Only present while `state` is `published`; `null` otherwise.",
            "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "sharing": {
            "type": "object",
            "properties": {
              "mode": {
                "$ref": "#/components/schemas/BookingSharingMode",
                "description": "Who can use the page in their emails: `owner_only`, every user of the account (`account`) or the users and teams listed (`selected`).",
                "example": "owner_only"
              },
              "user_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the users with access when `mode` is `selected`.",
                "example": []
              },
              "team_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the teams with access when `mode` is `selected`.",
                "example": []
              },
              "subjects": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the user (`subject_type` = `user`) or team (`team`).",
                      "example": "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
                    },
                    "subject_type": {
                      "$ref": "#/components/schemas/BookingSharingSubjectType",
                      "description": "Kind of subject.",
                      "example": "user"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the user or team.",
                      "example": "Marta Ruiz"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the user; `null` for teams or without photo.",
                      "example": "https://cdn.easymailing.com/avatars/marta.jpg"
                    },
                    "selectable": {
                      "type": "boolean",
                      "description": "Whether the subject can be given access now. A suspended user keeps an existing grant but cannot be added.",
                      "example": true
                    },
                    "status": {
                      "$ref": "#/components/schemas/BookingSharingSubjectStatus",
                      "description": "`suspended` when the user no longer has CRM access.",
                      "example": "active"
                    },
                    "selected": {
                      "type": "boolean",
                      "description": "Whether the subject currently has access.",
                      "example": true
                    }
                  },
                  "required": [
                    "id",
                    "subject_type",
                    "name",
                    "avatar_url",
                    "selectable",
                    "status",
                    "selected"
                  ]
                },
                "description": "The users and teams that have access, with their names. Empty unless `mode` is `selected`.",
                "example": []
              }
            },
            "required": [
              "mode",
              "user_ids",
              "team_ids",
              "subjects"
            ],
            "description": "Who else can use this page in their emails.",
            "example": {
              "mode": "owner_only",
              "user_ids": [],
              "team_ids": [],
              "subjects": []
            }
          },
          "calendar_status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageCheckStatus",
            "description": "`missing` when the destination calendar or an availability calendar of the page is no longer in an active Google connection of the owner. `ok` otherwise, also when the page has no calendar yet.",
            "example": "ok",
            "readOnly": true
          },
          "sender_status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageCheckStatus",
            "description": "`missing` when the page has no sender that can send its booking emails (none, deleted, unconfirmed or needing domain authentication). `ok` otherwise.",
            "example": "missing",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page was created, ISO 8601.",
            "example": "2026-11-02T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page last changed, ISO 8601.",
            "example": "2026-11-02T09:15:00+00:00"
          }
        }
      },
      "BookingPage.BookingPageCreateInput": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "configuration"
        ],
        "properties": {
          "configuration": {
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "description": "Configuration of the page. Only `schema_version` is required to save a draft; every other key can be added later with `update_booking_page`, but a page can only be published when all keys marked \"Required to publish\" are set. The server applies no defaults, so send complete values (the Easymailing app proposes: Monday to Friday 09:00-17:00, 30 minutes, 240 minutes notice, 60 days ahead, 15 minutes after, 4 per day).",
            "example": {
              "schema_version": 1,
              "title": "Intro call with Sergio"
            }
          }
        }
      },
      "BookingPage.BookingPageCreateInput.jsonld": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "configuration"
        ],
        "properties": {
          "configuration": {
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "description": "Configuration of the page. Only `schema_version` is required to save a draft; every other key can be added later with `update_booking_page`, but a page can only be published when all keys marked \"Required to publish\" are set. The server applies no defaults, so send complete values (the Easymailing app proposes: Monday to Friday 09:00-17:00, 30 minutes, 240 minutes notice, 60 days ahead, 15 minutes after, 4 per day).",
            "example": {
              "schema_version": 1,
              "title": "Intro call with Sergio"
            }
          }
        }
      },
      "BookingPage.BookingPageSharingInput": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/BookingSharingMode",
            "description": "`owner_only` (only you), `account` (every user of the account, including future ones) or `selected` (the users and teams in `user_ids` and `team_ids`).",
            "example": "selected"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the users to give access, from `list_booking_page_sharing_candidates`. Required and non-empty (together with `team_ids`) when `mode` is `selected`; must be empty otherwise.",
            "example": [
              "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
            ]
          },
          "team_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the teams to give access, from `list_booking_page_sharing_candidates`. A user who belongs to a selected team gets access.",
            "example": []
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.BookingPageSharingInput.jsonld": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/BookingSharingMode",
            "description": "`owner_only` (only you), `account` (every user of the account, including future ones) or `selected` (the users and teams in `user_ids` and `team_ids`).",
            "example": "selected"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the users to give access, from `list_booking_page_sharing_candidates`. Required and non-empty (together with `team_ids`) when `mode` is `selected`; must be empty otherwise.",
            "example": [
              "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
            ]
          },
          "team_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the teams to give access, from `list_booking_page_sharing_candidates`. A user who belongs to a selected team gets access.",
            "example": []
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.BookingPageStateInput": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.BookingPageStateInput.jsonld": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.BookingPageUpdateInput": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "configuration"
        ],
        "properties": {
          "configuration": {
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "description": "The keys to change; keys you do not send keep their value. Lists (`allowed_durations`, `weekly_ranges`, `dated_exceptions`, `availability_calendar_resource_uuids`, `fields`) are replaced as a whole. `null` is only accepted for `host_image_asset_uuid`, `logo_asset_uuid` and `destination_calendar_resource_uuid`.",
            "example": {
              "title": "Intro call (30 min)",
              "buffer_after_minutes": 10
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.BookingPageUpdateInput.jsonld": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "required": [
          "configuration"
        ],
        "properties": {
          "configuration": {
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "description": "The keys to change; keys you do not send keep their value. Lists (`allowed_durations`, `weekly_ranges`, `dated_exceptions`, `availability_calendar_resource_uuids`, `fields`) are replaced as a whole. `null` is only accepted for `host_image_asset_uuid`, `logo_asset_uuid` and `destination_calendar_resource_uuid`.",
            "example": {
              "title": "Intro call (30 min)",
              "buffer_after_minutes": 10
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the page you read (`version`). Optional: if you send it and the page has changed since, nothing is saved and you get `meeting_booking_version_conflict`; if you leave it out, the change is applied to the current version.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "BookingPage.jsonld-booking_page.read": {
        "type": "object",
        "description": "Booking pages of the public API (fase 5), managed by their owner. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\n\nEvery operation checks the CRM access in its provider or processor first (`crm.contacts_companies.write` with a seat,\nalso to read: BookingPageAccess::writer), because API Platform evaluates `security` after the provider. The view is\nprojected by {@see \\App\\Api\\State\\Mapper\\Crm\\BookingPageMapper}, as the panel's MeetingBookingPageProjector does.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the page.",
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageState",
            "description": "`draft` (never published), `published` (public link works), `paused` (link closed, can be published again) or `archived` (final).",
            "example": "draft"
          },
          "version": {
            "type": "integer",
            "description": "Version of the page. It grows with every change of configuration, state or sharing and when Google is reconnected and the page is re-linked to its calendar. Send it as `expected_version` to make sure nobody changed the page in between.",
            "example": 1
          },
          "configuration": {
            "description": "Everything that defines the page. Keys that were never set are absent. Fields that bind to the CRM carry no internal data here.",
            "type": "object",
            "properties": {
              "schema_version": {
                "$ref": "#/components/schemas/BookingConfigurationSchemaVersion",
                "description": "Version of the configuration format. Always `1`.",
                "example": 1
              },
              "title": {
                "type": "string",
                "description": "Name of the meeting shown to the person booking and used as the event title. Up to 255 characters. Required to publish.",
                "example": "Intro call with Sergio"
              },
              "description": {
                "type": "string",
                "description": "Text shown on the booking page, up to 10,000 characters.",
                "example": "A 30-minute call to see how Easymailing fits your team."
              },
              "slug": {
                "type": "string",
                "description": "Optional label up to 120 characters. It is stored but not used: the public link is built from the page UUID. Leave it out.",
                "example": "intro-call"
              },
              "custom_host": {
                "type": "boolean",
                "description": "`false` shows the name and photo of the page owner; `true` shows `host_name` and the image of `host_image_asset_uuid` instead. Required to publish.",
                "example": false
              },
              "host_name": {
                "type": "string",
                "description": "Name shown as host when `custom_host` is `true`, up to 255 characters. Required to publish when `custom_host` is `true`.",
                "example": "Acme sales team"
              },
              "host_image_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as host photo when `custom_host` is `true`. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "logo_asset_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of an image uploaded with `upload_booking_page_image` by the same user, shown as logo on the page. `null` for none.",
                "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
              },
              "location": {
                "$ref": "#/components/schemas/BookingLocation",
                "description": "Where the meeting happens. `google_meet` adds a Meet link to the event; `phone`, `in_person` and `custom` use `location_value`. Required to publish.",
                "example": "google_meet"
              },
              "location_value": {
                "type": "string",
                "description": "Phone number, address or video-call link, up to 2,000 characters. Required to publish when `location` is not `google_meet`.",
                "example": ""
              },
              "allowed_durations": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "Durations in minutes the person booking can get: any of 15, 30, 45 and 60, without repeats and at least one. Required to publish.",
                "example": [
                  30
                ]
              },
              "default_duration": {
                "$ref": "#/components/schemas/BookingDuration",
                "description": "Duration in minutes used when the person cannot choose; it must be one of `allowed_durations`. Required to publish.",
                "example": 30
              },
              "allow_duration_selection": {
                "type": "boolean",
                "description": "Whether the person booking can pick any of `allowed_durations`. If `false`, only `default_duration` is offered. Required to publish.",
                "example": false
              },
              "require_email_verification": {
                "type": "boolean",
                "description": "Whether the person booking must confirm their email by a link before the meeting is created. Turning it on needs a page sender that can send (see `update_booking_email_settings`). Required to publish.",
                "example": false
              },
              "hour_format": {
                "$ref": "#/components/schemas/BookingHourFormat",
                "description": "How times are shown on the page. Required to publish.",
                "example": "24h"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone of the host in which `weekly_ranges`, `dated_exceptions` and the daily limit are read. Required to publish.",
                "example": "Europe/Madrid"
              },
              "weekly_ranges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "description": "Day of the week, 1 = Monday to 7 = Sunday.",
                      "example": 1,
                      "minimum": 1,
                      "maximum": 7
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of the day, up to 24, in order and without overlap.",
                      "example": [
                        {
                          "start": "09:00",
                          "end": "17:00"
                        }
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "ranges"
                  ]
                },
                "description": "Weekly opening hours: one entry per day that has hours (up to 7). `day` is 1 (Monday) to 7 (Sunday); a day that is absent has no availability. Required to publish.",
                "example": [
                  {
                    "day": 1,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 2,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 3,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 4,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  },
                  {
                    "day": 5,
                    "ranges": [
                      {
                        "start": "09:00",
                        "end": "17:00"
                      }
                    ]
                  }
                ]
              },
              "dated_exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "description": "Date `YYYY-MM-DD` in the page time zone.",
                      "example": "2026-12-25"
                    },
                    "closed": {
                      "type": "boolean",
                      "description": "`true` closes the whole day; then `ranges` must be empty.",
                      "example": true
                    },
                    "ranges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string",
                            "description": "Start time `HH:MM`, 24-hour, in the page time zone.",
                            "example": "09:00"
                          },
                          "end": {
                            "type": "string",
                            "description": "End time `HH:MM`, 24-hour, after `start`; `24:00` means midnight.",
                            "example": "17:00"
                          }
                        },
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "description": "Opening ranges of that date when it is not closed.",
                      "example": []
                    }
                  },
                  "required": [
                    "date",
                    "closed",
                    "ranges"
                  ]
                },
                "description": "Specific dates that replace the weekly hours: closed days or different hours. Up to 366, one per date. Required to publish (send `[]` for none).",
                "example": [
                  {
                    "date": "2026-12-25",
                    "closed": true,
                    "ranges": []
                  }
                ]
              },
              "notice_minutes": {
                "type": "integer",
                "description": "Minimum minutes between now and the start of a meeting, 0 to 525,600. Required to publish.",
                "example": 240,
                "minimum": 0,
                "maximum": 525600
              },
              "horizon_days": {
                "type": "integer",
                "description": "How many days ahead the page offers times, 1 to 366. Required to publish.",
                "example": 60,
                "minimum": 1,
                "maximum": 366
              },
              "buffer_before_minutes": {
                "type": "integer",
                "description": "Free minutes kept before each meeting, 0 to 1,440. Required to publish.",
                "example": 0,
                "minimum": 0,
                "maximum": 1440
              },
              "buffer_after_minutes": {
                "type": "integer",
                "description": "Free minutes kept after each meeting, 0 to 1,440. Required to publish.",
                "example": 15,
                "minimum": 0,
                "maximum": 1440
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum meetings per day across all the host's booking pages; `0` means no limit. Required to publish.",
                "example": 4,
                "minimum": 0,
                "maximum": 10000
              },
              "destination_calendar_resource_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the writable Google calendar where booked meetings are created (from `list_booking_calendars`). Required to publish.",
                "example": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              },
              "availability_calendar_resource_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the calendars whose events block times (from `list_booking_calendars`), up to 50, no repeats. Include the destination calendar so its events block times too. Required to publish.",
                "example": [
                  "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the field inside this page, chosen by you. Letters, digits, `_` and `-`, starting with a letter, up to 64 characters, unique in the page.",
                      "example": "booking_field_email"
                    },
                    "source": {
                      "$ref": "#/components/schemas/BookingFormFieldSource",
                      "description": "`contact` or `company`: the answer is saved on that record. `question`: a free question whose answer stays with the meeting and is saved on no record.",
                      "example": "contact"
                    },
                    "label": {
                      "type": "string",
                      "description": "Text shown to the person booking, up to 255 characters.",
                      "example": "Email"
                    },
                    "control": {
                      "type": "string",
                      "description": "Kind of input. For `question` fields only `text`, `textarea`, `email` and `tel` are allowed; for record fields it must match the field type (see `list_booking_fields`).",
                      "example": "email"
                    },
                    "required": {
                      "type": "boolean",
                      "description": "Whether the person booking must answer. The contact `first_name` and `email` fields are always required.",
                      "example": true
                    },
                    "field_reference": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "$ref": "#/components/schemas/BookingFieldEntity",
                          "description": "Record the field belongs to.",
                          "example": "contact"
                        },
                        "kind": {
                          "$ref": "#/components/schemas/BookingFieldReferenceKind",
                          "description": "`structural` for built-in fields (`key`), `attribute` for custom attributes (`id`).",
                          "example": "structural"
                        },
                        "key": {
                          "type": "string",
                          "description": "Built-in field key such as `first_name` or `email`. Only with `kind` = `structural`.",
                          "example": "email"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "UUID of the attribute. Only with `kind` = `attribute`.",
                          "example": "7d4e2a9c-1b63-4f85-a0c7-3e9b5d1f8a24"
                        }
                      },
                      "required": [
                        "entity",
                        "kind"
                      ],
                      "description": "Which contact or company field this one fills. Required when `source` is `contact` or `company`; not allowed for `question`. Copy it from `list_booking_fields`.",
                      "example": {
                        "entity": "contact",
                        "kind": "structural",
                        "key": "email"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "label",
                    "control",
                    "required"
                  ]
                },
                "description": "Fields the person booking fills in, up to 50. It must include the contact fields `first_name` and `email` to publish. Required to publish.",
                "example": [
                  {
                    "id": "booking_field_first_name",
                    "source": "contact",
                    "label": "Name",
                    "control": "text",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "first_name"
                    }
                  },
                  {
                    "id": "booking_field_email",
                    "source": "contact",
                    "label": "Email",
                    "control": "email",
                    "required": true,
                    "field_reference": {
                      "entity": "contact",
                      "kind": "structural",
                      "key": "email"
                    }
                  },
                  {
                    "id": "booking_field_topic",
                    "source": "question",
                    "label": "What would you like to talk about?",
                    "control": "textarea",
                    "required": false
                  }
                ]
              },
              "contact_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "What a booking does to an existing contact: `preserve` never changes it, `fill_empty` only fills empty fields, `update` overwrites the fields answered. Required to publish.",
                "example": "preserve"
              },
              "company_policy": {
                "$ref": "#/components/schemas/BookingRecordPolicy",
                "description": "Same as `contact_policy`, for the company. Required to publish.",
                "example": "preserve"
              }
            },
            "required": [
              "schema_version"
            ],
            "example": {
              "schema_version": 1,
              "title": "Intro call with Sergio",
              "description": "A 30-minute call to see how Easymailing fits your team.",
              "custom_host": false,
              "location": "google_meet",
              "location_value": "",
              "allowed_durations": [
                30
              ],
              "default_duration": 30,
              "allow_duration_selection": false,
              "require_email_verification": false,
              "hour_format": "24h",
              "time_zone": "Europe/Madrid",
              "weekly_ranges": [
                {
                  "day": 1,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 2,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 3,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 4,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                },
                {
                  "day": 5,
                  "ranges": [
                    {
                      "start": "09:00",
                      "end": "17:00"
                    }
                  ]
                }
              ],
              "dated_exceptions": [
                {
                  "date": "2026-12-25",
                  "closed": true,
                  "ranges": []
                }
              ],
              "notice_minutes": 240,
              "horizon_days": 60,
              "buffer_before_minutes": 0,
              "buffer_after_minutes": 15,
              "daily_limit": 4,
              "destination_calendar_resource_uuid": "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13",
              "availability_calendar_resource_uuids": [
                "6a1f3d8c-2b47-4e90-8c5a-9d0e7b2f4a13"
              ],
              "fields": [
                {
                  "id": "booking_field_first_name",
                  "source": "contact",
                  "label": "Name",
                  "control": "text",
                  "required": true,
                  "field_reference": {
                    "entity": "contact",
                    "kind": "structural",
                    "key": "first_name"
                  }
                },
                {
                  "id": "booking_field_email",
                  "source": "contact",
                  "label": "Email",
                  "control": "email",
                  "required": true,
                  "field_reference": {
                    "entity": "contact",
                    "kind": "structural",
                    "key": "email"
                  }
                },
                {
                  "id": "booking_field_topic",
                  "source": "question",
                  "label": "What would you like to talk about?",
                  "control": "textarea",
                  "required": false
                }
              ],
              "contact_policy": "preserve",
              "company_policy": "preserve"
            }
          },
          "host_name": {
            "type": "string",
            "description": "Name shown as host: the owner's name or `configuration.host_name`.",
            "example": "Sergio Gallego"
          },
          "host_image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo shown as host. `null` when there is none.",
            "example": "https://cdn.easymailing.com/avatars/sergio.jpg"
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of `configuration.logo_asset_uuid`. `null` when there is none.",
            "example": "https://cdn.easymailing.com/acme/meeting-booking/images/4f2a9c1e7b3d.png"
          },
          "public_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link people use to book. Only present while `state` is `published`; `null` otherwise.",
            "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "sharing": {
            "type": "object",
            "properties": {
              "mode": {
                "$ref": "#/components/schemas/BookingSharingMode",
                "description": "Who can use the page in their emails: `owner_only`, every user of the account (`account`) or the users and teams listed (`selected`).",
                "example": "owner_only"
              },
              "user_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the users with access when `mode` is `selected`.",
                "example": []
              },
              "team_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "UUIDs of the teams with access when `mode` is `selected`.",
                "example": []
              },
              "subjects": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the user (`subject_type` = `user`) or team (`team`).",
                      "example": "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
                    },
                    "subject_type": {
                      "$ref": "#/components/schemas/BookingSharingSubjectType",
                      "description": "Kind of subject.",
                      "example": "user"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the user or team.",
                      "example": "Marta Ruiz"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the user; `null` for teams or without photo.",
                      "example": "https://cdn.easymailing.com/avatars/marta.jpg"
                    },
                    "selectable": {
                      "type": "boolean",
                      "description": "Whether the subject can be given access now. A suspended user keeps an existing grant but cannot be added.",
                      "example": true
                    },
                    "status": {
                      "$ref": "#/components/schemas/BookingSharingSubjectStatus",
                      "description": "`suspended` when the user no longer has CRM access.",
                      "example": "active"
                    },
                    "selected": {
                      "type": "boolean",
                      "description": "Whether the subject currently has access.",
                      "example": true
                    }
                  },
                  "required": [
                    "id",
                    "subject_type",
                    "name",
                    "avatar_url",
                    "selectable",
                    "status",
                    "selected"
                  ]
                },
                "description": "The users and teams that have access, with their names. Empty unless `mode` is `selected`.",
                "example": []
              }
            },
            "required": [
              "mode",
              "user_ids",
              "team_ids",
              "subjects"
            ],
            "description": "Who else can use this page in their emails.",
            "example": {
              "mode": "owner_only",
              "user_ids": [],
              "team_ids": [],
              "subjects": []
            }
          },
          "calendar_status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageCheckStatus",
            "description": "`missing` when the destination calendar or an availability calendar of the page is no longer in an active Google connection of the owner. `ok` otherwise, also when the page has no calendar yet.",
            "example": "ok",
            "readOnly": true
          },
          "sender_status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingPageCheckStatus",
            "description": "`missing` when the page has no sender that can send its booking emails (none, deleted, unconfirmed or needing domain authentication). `ok` otherwise.",
            "example": "missing",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page was created, ISO 8601.",
            "example": "2026-11-02T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page last changed, ISO 8601.",
            "example": "2026-11-02T09:15:00+00:00"
          }
        }
      },
      "BookingPageAvailability-booking_page_availability.read": {
        "type": "object",
        "description": "`get_booking_page_availability` (fase 5): free times and merged busy ranges of a published booking page, read from\nGoogle during the request (ReadOwnBookingAvailability). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "slots",
          "busy",
          "time_zone",
          "page_time_zone"
        ],
        "properties": {
          "slots": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the time, UTC.",
                  "example": "2026-11-09T09:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the time, UTC.",
                  "example": "2026-11-09T09:30:00+00:00"
                },
                "duration_minutes": {
                  "type": "integer",
                  "description": "Duration in minutes.",
                  "example": 30
                }
              },
              "required": [
                "starts_at",
                "ends_at",
                "duration_minutes"
              ]
            },
            "description": "Free times that can be booked, in order. Times start every 15 minutes inside the opening hours.",
            "example": [
              {
                "starts_at": "2026-11-09T09:00:00+00:00",
                "ends_at": "2026-11-09T09:30:00+00:00",
                "duration_minutes": 30
              }
            ]
          },
          "busy": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the busy range, UTC.",
                  "example": "2026-11-09T10:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the busy range, UTC.",
                  "example": "2026-11-09T11:00:00+00:00"
                }
              },
              "required": [
                "starts_at",
                "ends_at"
              ]
            },
            "description": "Merged busy ranges of the host and of its other booked meetings in the window. They carry no title, attendees or origin.",
            "example": [
              {
                "starts_at": "2026-11-09T10:00:00+00:00",
                "ends_at": "2026-11-09T11:00:00+00:00"
              }
            ]
          },
          "time_zone": {
            "type": "string",
            "description": "The `time_zone` you sent, echoed back for display.",
            "example": "America/Mexico_City"
          },
          "page_time_zone": {
            "type": "string",
            "description": "IANA time zone of the host (`configuration.time_zone`).",
            "example": "Europe/Madrid"
          }
        }
      },
      "BookingPageAvailability.jsonld-booking_page_availability.read": {
        "type": "object",
        "description": "`get_booking_page_availability` (fase 5): free times and merged busy ranges of a published booking page, read from\nGoogle during the request (ReadOwnBookingAvailability). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "slots",
          "busy",
          "time_zone",
          "page_time_zone"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "slots": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the time, UTC.",
                  "example": "2026-11-09T09:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the time, UTC.",
                  "example": "2026-11-09T09:30:00+00:00"
                },
                "duration_minutes": {
                  "type": "integer",
                  "description": "Duration in minutes.",
                  "example": 30
                }
              },
              "required": [
                "starts_at",
                "ends_at",
                "duration_minutes"
              ]
            },
            "description": "Free times that can be booked, in order. Times start every 15 minutes inside the opening hours.",
            "example": [
              {
                "starts_at": "2026-11-09T09:00:00+00:00",
                "ends_at": "2026-11-09T09:30:00+00:00",
                "duration_minutes": 30
              }
            ]
          },
          "busy": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the busy range, UTC.",
                  "example": "2026-11-09T10:00:00+00:00"
                },
                "ends_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "End of the busy range, UTC.",
                  "example": "2026-11-09T11:00:00+00:00"
                }
              },
              "required": [
                "starts_at",
                "ends_at"
              ]
            },
            "description": "Merged busy ranges of the host and of its other booked meetings in the window. They carry no title, attendees or origin.",
            "example": [
              {
                "starts_at": "2026-11-09T10:00:00+00:00",
                "ends_at": "2026-11-09T11:00:00+00:00"
              }
            ]
          },
          "time_zone": {
            "type": "string",
            "description": "The `time_zone` you sent, echoed back for display.",
            "example": "America/Mexico_City"
          },
          "page_time_zone": {
            "type": "string",
            "description": "IANA time zone of the host (`configuration.time_zone`).",
            "example": "Europe/Madrid"
          }
        }
      },
      "BookingPageImage-booking_page_image.read": {
        "type": "object",
        "description": "`upload_booking_page_image` (fase 5): an image for a booking page (UploadBookingPageImage). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nThe body is the raw image (`deserialize: false`), as `set_file_content` of Files; its `Content-Type` is checked by the\nprocessor before the body is opened.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the image. Use it as `host_image_asset_uuid` or `logo_asset_uuid`.",
            "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL of the image.",
            "example": "https://cdn.easymailing.com/acme/meeting-booking/images/4f2a9c1e7b3d.png"
          }
        }
      },
      "BookingPageImage.jsonld-booking_page_image.read": {
        "type": "object",
        "description": "`upload_booking_page_image` (fase 5): an image for a booking page (UploadBookingPageImage). Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nThe body is the raw image (`deserialize: false`), as `set_file_content` of Files; its `Content-Type` is checked by the\nprocessor before the body is opened.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the image. Use it as `host_image_asset_uuid` or `logo_asset_uuid`.",
            "example": "1e9c4a7b-5d28-4b63-9f01-7a3d6c8e2b54"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL of the image.",
            "example": "https://cdn.easymailing.com/acme/meeting-booking/images/4f2a9c1e7b3d.png"
          }
        }
      },
      "BookingPageSharingCandidate-booking_page_sharing_candidate.read": {
        "type": "object",
        "description": "`list_booking_page_sharing_candidates` (fase 5): users and teams a booking page can be shared with. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nA candidate is not addressable on its own (no item operation).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user or team. Use it in `user_ids` or `team_ids`.",
            "example": "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
          },
          "subject_type": {
            "type": "string",
            "$ref": "#/components/schemas/BookingSharingSubjectType",
            "description": "Kind of subject.",
            "example": "user"
          },
          "name": {
            "type": "string",
            "description": "Name of the user or team.",
            "example": "Marta Ruiz"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the user; `null` for teams or without photo.",
            "example": "https://cdn.easymailing.com/avatars/marta.jpg"
          },
          "selectable": {
            "type": "boolean",
            "description": "Whether it can be given access now. `false` for a user who no longer has CRM access.",
            "example": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingSharingSubjectStatus",
            "description": "`suspended` when the user no longer has CRM access.",
            "example": "active"
          },
          "selected": {
            "type": "boolean",
            "description": "Whether it currently has access to this page.",
            "example": false
          }
        }
      },
      "BookingPageSharingCandidate.jsonld-booking_page_sharing_candidate.read": {
        "type": "object",
        "description": "`list_booking_page_sharing_candidates` (fase 5): users and teams a booking page can be shared with. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.\nA candidate is not addressable on its own (no item operation).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user or team. Use it in `user_ids` or `team_ids`.",
            "example": "3f7a9c2e-1d46-4b85-8e03-6a2c5d9b4f17"
          },
          "subject_type": {
            "type": "string",
            "$ref": "#/components/schemas/BookingSharingSubjectType",
            "description": "Kind of subject.",
            "example": "user"
          },
          "name": {
            "type": "string",
            "description": "Name of the user or team.",
            "example": "Marta Ruiz"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the user; `null` for teams or without photo.",
            "example": "https://cdn.easymailing.com/avatars/marta.jpg"
          },
          "selectable": {
            "type": "boolean",
            "description": "Whether it can be given access now. `false` for a user who no longer has CRM access.",
            "example": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/BookingSharingSubjectStatus",
            "description": "`suspended` when the user no longer has CRM access.",
            "example": "active"
          },
          "selected": {
            "type": "boolean",
            "description": "Whether it currently has access to this page.",
            "example": false
          }
        }
      },
      "ButtonDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Look of the button: colors, font, size, border radius and padding."
          }
        }
      },
      "ButtonDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ButtonDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Look of the button: colors, font, size, border radius and padding."
          }
        }
      },
      "ButtonDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Look of the button: colors, font, size, border radius and padding."
          }
        }
      },
      "ButtonDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ButtonDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonStylesDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Look of the button: colors, font, size, border radius and padding."
          }
        }
      },
      "ButtonStylesDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "ButtonStylesDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "ButtonStylesDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "ButtonStylesDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "ButtonStylesDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "ButtonStylesDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "background_color",
          "color",
          "font_family",
          "font_weight",
          "font_size"
        ],
        "properties": {
          "background_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Background color (hex)",
            "example": "#3B82F6"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#FFFFFF"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "600"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "border_radius": {
            "type": "string",
            "description": "Border radius",
            "example": "4px"
          },
          "padding": {
            "type": "string",
            "description": "Padding",
            "example": "12px 24px"
          }
        }
      },
      "Campaign-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "template_thumbnail": {
            "description": "URL of the preview image of the email.",
            "example": "https://assets.easymailing.com/campaigns/black-friday-thumbnail.jpg",
            "type": "string",
            "format": "uri"
          },
          "email_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config_send": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfigSend-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignStat-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "test_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignTestConfigResource-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignTestVariantResource-campaign.read"
            }
          },
          "template": {
            "description": "IRI of the template used as the email content.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `email` here.",
            "example": "email",
            "type": "string",
            "enum": [
              "email"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used to attribute store orders and revenue. It is added to the links of the emails as `?em_ch=<hash>`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_campaign`, `create_campaign` and `update_campaign` fill it; `list_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Campaign-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "template_html": {
            "description": "HTML of the email as saved in the campaign.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email.",
            "example": "https://assets.easymailing.com/campaigns/black-friday-thumbnail.jpg",
            "type": "string",
            "format": "uri"
          },
          "email_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config_send": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfigSend-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignStat-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "test_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignTestConfigResource-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignTestVariantResource-campaign.read_campaign.read.detail"
            }
          },
          "template": {
            "description": "IRI of the template used as the email content.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `email` here.",
            "example": "email",
            "type": "string",
            "enum": [
              "email"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used to attribute store orders and revenue. It is added to the links of the emails as `?em_ch=<hash>`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "recipient_count": {
            "description": "Number of contacts that would receive the campaign now. Only for draft, ready and scheduled campaigns.",
            "example": 1250,
            "type": "integer"
          },
          "warnings": {
            "description": "Delivery problems detected now. Only for draft, ready and scheduled campaigns. Those with `blocks_sending: true` stop the send.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "$ref": "#/components/schemas/CampaignDeliveryWarningCode",
                  "description": "Identifier of the problem."
                },
                "level": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "danger"
                  ],
                  "description": "Severity of the problem.",
                  "example": "warning"
                },
                "blocks_sending": {
                  "type": "boolean",
                  "description": "True if the campaign cannot be sent until the problem is solved.",
                  "example": false
                },
                "metadata": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Extra data about the problem, such as the domain involved. Empty when there is none."
                }
              }
            },
            "example": []
          },
          "survey": {
            "description": "UUID of the survey linked to a survey campaign. Empty for other campaign types or while no survey is selected (see `list_surveys`).",
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_campaign`, `create_campaign` and `update_campaign` fill it; `list_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Campaign-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_segment",
              "send_to_custom_segment",
              "send_to_groups"
            ],
            "description": "Who receives the campaign, always among the confirmed subscribers of `audience`: the whole audience (`send_to_all`), some of its groups (`send_to_groups`, also send `groups`), a segment (`send_to_segment`, also send `contact_segment`, or `list_segment` for an old audience segment) or the campaign's own filter (`send_to_custom_segment`, also send `filter` and, optionally, `contact_segment`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of an old audience segment: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`), from the same audience, with `send_to_segment`. Deprecated: Customer App does not show these segments; use `contact_segment` instead. Cannot be combined with `contact_segment` or `filter`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "contact_segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a contact segment (`/contact_segments/{uuid}`, see `list_contact_segments`). With `send_to_segment`, the campaign goes to the confirmed subscribers of `audience` who are in the segment; with `send_to_custom_segment`, it is the base the `filter` is applied on. Cannot be combined with `list_segment`.",
            "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "The campaign's own conditions, required with `send_to_custom_segment`: the campaign goes to the confirmed subscribers of `audience` who match them (and are in `contact_segment`, if sent). Shape as `filter` of `create_contact_segment`; only fields with `campaign` in `usable_in`. The filter belongs to the campaign; it is not saved as a segment.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "contact.location_country",
                  "operator": "is_any_of",
                  "value": [
                    "ES"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "send_to",
          "audience"
        ]
      },
      "Campaign.CampaignDuplicateInput-campaign.write_duplicate": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "description": "Name of the new campaign, for your own reference (max 255 characters). Required.",
            "example": "Black Friday offer (copy)",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignDuplicateInput.jsonld-campaign.write_duplicate": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "description": "Name of the new campaign, for your own reference (max 255 characters). Required.",
            "example": "Black Friday offer (copy)",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignSelectSurveyInput-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "survey"
        ],
        "properties": {
          "survey": {
            "format": "uuid",
            "description": "UUID of the survey to link, from `list_surveys`. It must be active and belong to the same audience as the campaign.",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignSelectSurveyInput.jsonld-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "survey"
        ],
        "properties": {
          "survey": {
            "format": "uuid",
            "description": "UUID of the survey to link, from `list_surveys`. It must be active and belong to the same audience as the campaign.",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignSelectSurveyOutput-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "survey": {
            "description": "Uuid of the linked survey",
            "type": "string",
            "format": "uuid"
          },
          "template_has_survey_block": {
            "description": "Whether the campaign template now carries the survey email block ({{ block.poll.<uuid> }})",
            "type": "boolean"
          },
          "warning": {
            "description": "Actionable warning when the template was left untouched (own template without the survey block)",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Campaign.CampaignSelectSurveyOutput.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "survey": {
            "description": "Uuid of the linked survey",
            "type": "string",
            "format": "uuid"
          },
          "template_has_survey_block": {
            "description": "Whether the campaign template now carries the survey email block ({{ block.poll.<uuid> }})",
            "type": "boolean"
          },
          "warning": {
            "description": "Actionable warning when the template was left untouched (own template without the survey block)",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Campaign.CampaignSendInput-campaign.write_schedule": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the campaign is sent, in ISO 8601 with time zone offset. It must be at least one hour from now.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "schedule_mailing_date"
        ]
      },
      "Campaign.CampaignSendInput-campaign.write_send": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "Campaign.CampaignSendInput.jsonld-campaign.write_schedule": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the campaign is sent, in ISO 8601 with time zone offset. It must be at least one hour from now.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "schedule_mailing_date"
        ]
      },
      "Campaign.CampaignSendInput.jsonld-campaign.write_send": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "Campaign.CampaignSendTestInput-campaign.write_send_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "emails"
        ],
        "properties": {
          "emails": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Email addresses that receive the test email (from 1 to 5).",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "test_index": {
            "description": "Position (starting at 0) of the variant to test in a template A/B test; required there, not used in other campaigns.",
            "type": "integer",
            "example": 0
          }
        }
      },
      "Campaign.CampaignSendTestInput.jsonld-campaign.write_send_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "emails"
        ],
        "properties": {
          "emails": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Email addresses that receive the test email (from 1 to 5).",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "test_index": {
            "description": "Position (starting at 0) of the variant to test in a template A/B test; required there, not used in other campaigns.",
            "type": "integer",
            "example": 0
          }
        }
      },
      "Campaign.CampaignTestABSenderInput-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 senders to compare.",
            "example": [
              {
                "from_name": "Ana from Acme",
                "from_email": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61"
              },
              {
                "from_name": "Acme Team",
                "from_email": "/senders/9a3e6f2b-1c54-4d87-8e0b-7d5c3a1f2e90"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderVariantInput-campaign.write.test_ab_sender"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Reply-to, recipient name, subject and preview text of the email. Do not include the from name or from email: each variant has its own. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write.test_ab_sender"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write.test_ab_sender"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.CampaignTestABSenderInput.jsonld-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 senders to compare.",
            "example": [
              {
                "from_name": "Ana from Acme",
                "from_email": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61"
              },
              {
                "from_name": "Acme Team",
                "from_email": "/senders/9a3e6f2b-1c54-4d87-8e0b-7d5c3a1f2e90"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderVariantInput.jsonld-campaign.write.test_ab_sender"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Reply-to, recipient name, subject and preview text of the email. Do not include the from name or from email: each variant has its own. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write.test_ab_sender"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write.test_ab_sender"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.CampaignTestABSubjectInput-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 subject lines to compare.",
            "example": [
              {
                "subject": "Our Black Friday offers start now",
                "preview_text": "Up to 40% off until Sunday"
              },
              {
                "subject": "Last chance: 40% off ends Sunday",
                "preview_text": "Do not miss it"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectVariantInput-campaign.write.test_ab_subject"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Sender, reply-to and recipient name of the email. Do not include the subject or preview text: each variant has its own. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write.test_ab_subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write.test_ab_subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.CampaignTestABSubjectInput.jsonld-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 subject lines to compare.",
            "example": [
              {
                "subject": "Our Black Friday offers start now",
                "preview_text": "Up to 40% off until Sunday"
              },
              {
                "subject": "Last chance: 40% off ends Sunday",
                "preview_text": "Do not miss it"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectVariantInput.jsonld-campaign.write.test_ab_subject"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Sender, reply-to and recipient name of the email. Do not include the subject or preview text: each variant has its own. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write.test_ab_subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write.test_ab_subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.CampaignTestABTemplateInput-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 email designs to compare. Each variant needs its own content.",
            "example": [
              {
                "template": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68"
              },
              {
                "template_html": "<html><body><p>Our Black Friday offers start now.</p></body></html>"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateVariantInput-campaign.write.test_ab_template"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email, shared by all variants. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write.test_ab_template"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write.test_ab_template"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.CampaignTestABTemplateInput.jsonld-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "variants",
          "test_size",
          "winner_metric",
          "delay_value",
          "delay_unit",
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "variants": {
            "minItems": 2,
            "maxItems": 5,
            "description": "Between 2 and 5 email designs to compare. Each variant needs its own content.",
            "example": [
              {
                "template": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68"
              },
              {
                "template_html": "<html><body><p>Our Black Friday offers start now.</p></body></html>"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateVariantInput.jsonld-campaign.write.test_ab_template"
            }
          },
          "test_size": {
            "minimum": 5,
            "maximum": 50,
            "description": "Percentage of the recipients (from 5 to 50) that receive the variants as the test. The rest receive the winner.",
            "default": 15,
            "example": 15,
            "type": "integer"
          },
          "winner_metric": {
            "enum": [
              "open_rate",
              "click_rate"
            ],
            "description": "Result that decides the winner among the variants: the one with the best rate of this metric.",
            "example": "open_rate",
            "type": "string"
          },
          "delay_value": {
            "exclusiveMinimum": 0,
            "description": "How long to wait, counted in `delay_unit`, after sending the test before choosing the winner. The total wait cannot exceed 10 days.",
            "default": 12,
            "example": 12,
            "type": "integer"
          },
          "delay_unit": {
            "enum": [
              "hour",
              "day"
            ],
            "description": "Unit of `delay_value`.",
            "default": "hour",
            "example": "hour",
            "type": "string"
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email, shared by all variants. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write.test_ab_template"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write.test_ab_template"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "Campaign.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email.",
            "example": "https://assets.easymailing.com/campaigns/black-friday-thumbnail.jpg",
            "type": "string",
            "format": "uri"
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config_send": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfigSend.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignStat.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "test_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignTestConfigResource.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignTestVariantResource.jsonld-campaign.read"
            }
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Campaign channel. Always `email` for this endpoint.",
            "example": "email",
            "type": "string",
            "enum": [
              "email"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign, always among the confirmed subscribers of `audience`: the whole audience (`send_to_all`), some of its groups (`send_to_groups`, also send `groups`), a segment (`send_to_segment`, also send `contact_segment`, or `list_segment` for an old audience segment) or the campaign's own filter (`send_to_custom_segment`, also send `filter` and, optionally, `contact_segment`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of an old audience segment: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`), from the same audience, with `send_to_segment`. Deprecated: Customer App does not show these segments; use `contact_segment` instead. Cannot be combined with `contact_segment` or `filter`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used to attribute store orders and revenue. It is added to the links of the emails as `?em_ch=<hash>`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_campaign`, `create_campaign` and `update_campaign` fill it; `list_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Campaign.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "template_html": {
            "description": "HTML of the email as saved in the campaign.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email.",
            "example": "https://assets.easymailing.com/campaigns/black-friday-thumbnail.jpg",
            "type": "string",
            "format": "uri"
          },
          "email_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config_send": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfigSend.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignStat.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "test_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignTestConfigResource.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignTestVariantResource.jsonld-campaign.read_campaign.read.detail"
            }
          },
          "template": {
            "description": "IRI of the template used as the email content.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `email` here.",
            "example": "email",
            "type": "string",
            "enum": [
              "email"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used to attribute store orders and revenue. It is added to the links of the emails as `?em_ch=<hash>`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "recipient_count": {
            "description": "Number of contacts that would receive the campaign now. Only for draft, ready and scheduled campaigns.",
            "example": 1250,
            "type": "integer"
          },
          "warnings": {
            "description": "Delivery problems detected now. Only for draft, ready and scheduled campaigns. Those with `blocks_sending: true` stop the send.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "$ref": "#/components/schemas/CampaignDeliveryWarningCode",
                  "description": "Identifier of the problem."
                },
                "level": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "danger"
                  ],
                  "description": "Severity of the problem.",
                  "example": "warning"
                },
                "blocks_sending": {
                  "type": "boolean",
                  "description": "True if the campaign cannot be sent until the problem is solved.",
                  "example": false
                },
                "metadata": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Extra data about the problem, such as the domain involved. Empty when there is none."
                }
              }
            },
            "example": []
          },
          "survey": {
            "description": "UUID of the survey linked to a survey campaign. Empty for other campaign types or while no survey is selected (see `list_surveys`).",
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_campaign`, `create_campaign` and `update_campaign` fill it; `list_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Campaign.jsonld-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_segment",
              "send_to_custom_segment",
              "send_to_groups"
            ],
            "description": "Who receives the campaign, always among the confirmed subscribers of `audience`: the whole audience (`send_to_all`), some of its groups (`send_to_groups`, also send `groups`), a segment (`send_to_segment`, also send `contact_segment`, or `list_segment` for an old audience segment) or the campaign's own filter (`send_to_custom_segment`, also send `filter` and, optionally, `contact_segment`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of an old audience segment: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`), from the same audience, with `send_to_segment`. Deprecated: Customer App does not show these segments; use `contact_segment` instead. Cannot be combined with `contact_segment` or `filter`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/0df14405-90ff-4287-b3e4-ef088901ee6f"
            }
          },
          "contact_segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a contact segment (`/contact_segments/{uuid}`, see `list_contact_segments`). With `send_to_segment`, the campaign goes to the confirmed subscribers of `audience` who are in the segment; with `send_to_custom_segment`, it is the base the `filter` is applied on. Cannot be combined with `list_segment`.",
            "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "The campaign's own conditions, required with `send_to_custom_segment`: the campaign goes to the confirmed subscribers of `audience` who match them (and are in `contact_segment`, if sent). Shape as `filter` of `create_contact_segment`; only fields with `campaign` in `usable_in`. The filter belongs to the campaign; it is not saved as a segment.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "contact.location_country",
                  "operator": "is_any_of",
                  "value": [
                    "ES"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "send_to",
          "audience"
        ]
      },
      "CampaignConfig": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Whether opens are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Whether clicks on the links are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Whether replies go to an Easymailing conversations address instead of the reply-to sender.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Whether the campaign is published on the public archive page of the audience.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Whether opens are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Whether clicks on the links are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Whether replies go to an Easymailing conversations address instead of the reply-to sender.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Whether the campaign is published on the public archive page of the audience.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "track_opens": {
            "description": "Whether opens are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Whether clicks on the links are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Whether replies go to an Easymailing conversations address instead of the reply-to sender.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Whether the campaign is published on the public archive page of the audience.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfig.jsonld-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_opens": {
            "description": "Record when recipients open the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Record clicks on the links of the email. Defaults to true.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links of the email so that orders from your store can be attributed to this campaign (see the campaign `hash`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "use_conversations": {
            "description": "Send replies to an Easymailing conversations address instead of the `reply_to` sender; `reply_to` is then optional. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "public": {
            "description": "Publish the campaign on the public archive page of the audience. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links of the email. Requires `google_analytics_tag`. Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_2026",
            "type": "string"
          }
        }
      },
      "CampaignConfigSend": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignConfigSend-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignConfigSend-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignConfigSend.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignConfigSend.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignConfigSend.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "schedule_mailing": {
            "description": "Whether the campaign is scheduled for a date.",
            "type": "boolean",
            "example": false
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the scheduled campaign will be sent. Empty if the campaign is not scheduled.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "send_confirmation_email": {
            "description": "Whether a confirmation email is sent when the campaign finishes sending.",
            "type": "boolean",
            "example": false
          },
          "mailing_confirm_emails": {
            "description": "Addresses that receive the confirmation email.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "CampaignReport-campaign_report.read": {
        "type": "object",
        "description": "`get_campaign_report` («IA: una sola fuente», informe de campaña): el informe de una campaña de email con el mismo\ncálculo que el de la Customer App (`CampaignReportReader` de CoreBundle). El contrato es el del apartado 5.1 de\n`trabajo/2026-12-03-ia-una-sola-fuente/diseno-informe-campana.md`.\n\nLos objetos anidados se publican como arrays con las claves ya en `snake_case` (como `get_pipeline_summary`). Las\ntasas son porcentajes de 0 a 100 con los mismos numerador y denominador que `campaign_stats` de `get_campaign`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          },
          "title": {
            "type": "string",
            "description": "Campaign title.",
            "example": "Black Friday newsletter"
          },
          "type": {
            "type": "string",
            "description": "Campaign type, as in `get_campaign` (`campaign.regular`, `campaign.test.ab`, `campaign.revalidation`, `campaign.survey` or `campaign.automation`).",
            "example": "campaign.regular"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sending started, in the time zone of the credential (the profile time zone of the user, or UTC). `null` if it is not recorded.",
            "example": "2026-11-30T11:20:00+01:00"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sending finished, in the time zone of the credential. `null` while it has not finished.",
            "example": "2026-11-30T11:40:00+01:00"
          },
          "recipients": {
            "type": "integer",
            "description": "Number of emails sent (the recipients of the campaign).",
            "example": 1250
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report was calculated (UTC). The figures are read when you ask, they are not cached.",
            "example": "2026-12-04T09:00:00+00:00"
          },
          "score": {
            "type": "object",
            "description": "Overall score of the campaign, as the Customer App shows it.",
            "example": {
              "value": 80,
              "status": "attention"
            },
            "properties": {
              "value": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Score from 0 to 100. `null` when it is not calculated yet.",
                "example": 80
              },
              "status": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CampaignReportMetricStatus"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Reading of the score: `good`, `attention` or `critical`. `null` when there is no score.",
                "example": "attention"
              }
            }
          },
          "benchmark": {
            "type": "object",
            "description": "What the `benchmark` and `status` fields of `performance` are compared with.",
            "example": {
              "industry": "ecommerce",
              "global": false
            },
            "properties": {
              "industry": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Key of the industry of the account (for example `ecommerce` or `real_estate`). `null` when the reference is the global one.",
                "example": "ecommerce"
              },
              "global": {
                "type": "boolean",
                "description": "True when the account has no industry (or none with its own reference) and the global reference is used.",
                "example": false
              }
            }
          },
          "performance": {
            "type": "object",
            "description": "The metrics of the campaign. Every `rate` is a percentage from 0 to 100 with the same numerator and denominator as `campaign_stats` of `get_campaign`. `clicks` and `ctor` are `null` when the email has no trackable links.",
            "example": {
              "delivery": {
                "rate": 90,
                "delivered": 90,
                "sent": 100,
                "audience_average": 90,
                "benchmark": 99.09,
                "status": "critical"
              },
              "opens": {
                "rate": 33.33,
                "unique": 30,
                "total": 45,
                "audience_average": 33.33,
                "benchmark": 35.63,
                "status": "good"
              },
              "clicks": {
                "rate": 6.67,
                "unique": 6,
                "total": 9,
                "audience_average": 6.67,
                "benchmark": 2.62,
                "status": "good"
              },
              "ctor": {
                "rate": 20,
                "unique_clicks": 6,
                "unique_opens": 30,
                "audience_average": 20,
                "benchmark": 7.35,
                "status": "good"
              },
              "bounces": {
                "rate": 10,
                "total": 10,
                "soft": 6,
                "hard": 4,
                "benchmark": 0.91,
                "status": "critical"
              },
              "unsubscribes": {
                "rate": 2.22,
                "total": 3,
                "by_subscriber": 2,
                "automatic": 1,
                "benchmark": 0.22,
                "status": "critical"
              },
              "complaints": {
                "rate": 1.11,
                "total": 1,
                "healthy_limit": 0.015,
                "status": "critical"
              },
              "orders": {
                "state": "ready",
                "rate": 1.11,
                "orders": 1,
                "revenue": 9500
              }
            },
            "properties": {
              "delivery": {
                "type": "object",
                "description": "Delivery: emails delivered out of the emails sent.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Delivered divided by sent, as a percentage.",
                    "example": 90
                  },
                  "delivered": {
                    "type": "integer",
                    "description": "Emails delivered.",
                    "example": 90
                  },
                  "sent": {
                    "type": "integer",
                    "description": "Emails sent.",
                    "example": 100
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "opens": {
                "type": "object",
                "description": "Opens: people who opened the email out of the emails delivered.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique opens divided by delivered, as a percentage.",
                    "example": 33.33
                  },
                  "unique": {
                    "type": "integer",
                    "description": "People who opened the email (each counts once).",
                    "example": 30
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the opens, including repeated ones.",
                    "example": 45
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "clicks": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Clicks: people who clicked a link out of the emails delivered. `null` when the email has no trackable links.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique clicks divided by delivered, as a percentage.",
                    "example": 6.67
                  },
                  "unique": {
                    "type": "integer",
                    "description": "People who clicked (each counts once).",
                    "example": 6
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the clicks, including repeated ones.",
                    "example": 9
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "ctor": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Click-to-open rate (CTOR): of the people who opened, how many clicked. `null` when the email has no trackable links.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique clicks divided by unique opens, as a percentage.",
                    "example": 20
                  },
                  "unique_clicks": {
                    "type": "integer",
                    "description": "People who clicked.",
                    "example": 6
                  },
                  "unique_opens": {
                    "type": "integer",
                    "description": "People who opened.",
                    "example": 30
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "bounces": {
                "type": "object",
                "description": "Bounces: emails that could not be delivered.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Bounces divided by sent, as a percentage. Lower is better.",
                    "example": 10
                  },
                  "total": {
                    "type": "integer",
                    "description": "Soft and hard bounces together.",
                    "example": 10
                  },
                  "soft": {
                    "type": "integer",
                    "description": "Temporary failures (full mailbox, server down).",
                    "example": 6
                  },
                  "hard": {
                    "type": "integer",
                    "description": "Permanent failures (the address does not exist).",
                    "example": 4
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "unsubscribes": {
                "type": "object",
                "description": "Unsubscribes caused by the campaign.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "People who unsubscribed themselves (`by_subscriber`) divided by delivered, as a percentage. Lower is better. The contacts the platform removed automatically (`automatic`) are not in the rate, but they are in `total`.",
                    "example": 2.22
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the unsubscribes, of both kinds.",
                    "example": 3
                  },
                  "by_subscriber": {
                    "type": "integer",
                    "description": "People who unsubscribed themselves (`unsubscriptions` of `campaign_stats`).",
                    "example": 2
                  },
                  "automatic": {
                    "type": "integer",
                    "description": "Contacts the platform removed automatically (`cleaned` of `campaign_stats`).",
                    "example": 1
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "complaints": {
                "type": "object",
                "description": "Spam complaints.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Complaints divided by delivered, as a percentage. Lower is better.",
                    "example": 1.11
                  },
                  "total": {
                    "type": "integer",
                    "description": "Number of complaints.",
                    "example": 1
                  },
                  "healthy_limit": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Highest rate considered healthy: above it the status gets worse. A fixed limit, not an industry average.",
                    "example": 0.015
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "orders": {
                "type": "object",
                "description": "Orders of your online store attributed to the campaign.",
                "properties": {
                  "state": {
                    "$ref": "#/components/schemas/CampaignReportOrdersState",
                    "description": "Whether the orders can be reported. Only `ready` carries figures; with `no_store` or `tracking_disabled` the other fields are `null`.",
                    "example": "ready"
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Orders divided by delivered, as a percentage.",
                    "example": 1.11
                  },
                  "orders": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Number of orders.",
                    "example": 1
                  },
                  "revenue": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Revenue in minor units (cents), net of tax and shipping, as `campaign_stats.revenue` of `get_campaign`. There is no currency field: it is not guaranteed to be a single currency when the store sells in several.",
                    "example": 9500
                  }
                }
              }
            }
          },
          "first_24_hours": {
            "type": "array",
            "description": "The first 24 hours of the campaign, one entry per clock hour from the hour the sending started (24 entries; empty when the start time is not recorded). Opens and clicks count different people in that hour.",
            "example": [
              {
                "starts_at": "2026-11-30T11:00:00+01:00",
                "opens": 2,
                "clicks": 1
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the one-hour slot, in the time zone of the credential.",
                  "example": "2026-11-30T11:00:00+01:00"
                },
                "opens": {
                  "type": "integer",
                  "description": "People who opened in that hour.",
                  "example": 2
                },
                "clicks": {
                  "type": "integer",
                  "description": "People who clicked in that hour.",
                  "example": 1
                }
              }
            }
          },
          "top_links": {
            "type": "array",
            "description": "The most clicked links, up to 10, most clicked first. Empty when there are no clicks.",
            "example": [
              {
                "url": "https://example.com/offer",
                "unique_clicks": 4,
                "total_clicks": 6,
                "share": 66.67
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Destination of the link.",
                  "example": "https://example.com/offer"
                },
                "unique_clicks": {
                  "type": "integer",
                  "description": "People who clicked it.",
                  "example": 4
                },
                "total_clicks": {
                  "type": "integer",
                  "description": "Clicks on it, repeated ones included.",
                  "example": 6
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the clicks of the campaign that went to this link.",
                  "example": 66.67
                }
              }
            }
          },
          "opens_by_device": {
            "type": "array",
            "description": "Opens by type of device, most opens first; every open counts, including repeated ones by the same person. A device that could not be identified is `unknown`.",
            "example": [
              {
                "device": "desktop",
                "opens": 3,
                "share": 50
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "device": {
                  "type": "string",
                  "description": "Type of device (`desktop`, `smartphone`, `tablet`, `unknown`…).",
                  "example": "desktop"
                },
                "opens": {
                  "type": "integer",
                  "description": "Opens made from this type of device, repeated ones included.",
                  "example": 3
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the opens.",
                  "example": 50
                }
              }
            }
          },
          "opens_by_email_client": {
            "type": "array",
            "description": "Opens by email client, most opens first (every open counts, including repeated ones): the five most used and `other` for the rest. Opens whose client could not be identified are not listed, but count in the total used for `share`.",
            "example": [
              {
                "client": "Gmail",
                "opens": 3,
                "share": 50
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "client": {
                  "type": "string",
                  "description": "Email client (`Gmail`, `Apple Mail`, `Outlook`…) or `other`.",
                  "example": "Gmail"
                },
                "opens": {
                  "type": "integer",
                  "description": "Opens made with this email client, repeated ones included.",
                  "example": 3
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the opens.",
                  "example": 50
                }
              }
            }
          },
          "opens_by_country": {
            "type": "array",
            "description": "Where the opens come from, by country: the five countries with most people opening, most first. Here each entry counts people, not opens: a person who opens the email several times from the same country counts once.",
            "example": [
              {
                "country_code": "ES",
                "unique_opens": 4,
                "share": 66.67
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "country_code": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "ISO 3166-1 alpha-2 code in capitals. `null` when the country could not be identified.",
                  "example": "ES"
                },
                "unique_opens": {
                  "type": "integer",
                  "description": "People who opened the email from that country (each counts once).",
                  "example": 4
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of the people counted across the countries.",
                  "example": 66.67
                }
              }
            }
          }
        }
      },
      "CampaignReport.jsonld-campaign_report.read": {
        "type": "object",
        "description": "`get_campaign_report` («IA: una sola fuente», informe de campaña): el informe de una campaña de email con el mismo\ncálculo que el de la Customer App (`CampaignReportReader` de CoreBundle). El contrato es el del apartado 5.1 de\n`trabajo/2026-12-03-ia-una-sola-fuente/diseno-informe-campana.md`.\n\nLos objetos anidados se publican como arrays con las claves ya en `snake_case` (como `get_pipeline_summary`). Las\ntasas son porcentajes de 0 a 100 con los mismos numerador y denominador que `campaign_stats` de `get_campaign`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35"
          },
          "title": {
            "type": "string",
            "description": "Campaign title.",
            "example": "Black Friday newsletter"
          },
          "type": {
            "type": "string",
            "description": "Campaign type, as in `get_campaign` (`campaign.regular`, `campaign.test.ab`, `campaign.revalidation`, `campaign.survey` or `campaign.automation`).",
            "example": "campaign.regular"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sending started, in the time zone of the credential (the profile time zone of the user, or UTC). `null` if it is not recorded.",
            "example": "2026-11-30T11:20:00+01:00"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sending finished, in the time zone of the credential. `null` while it has not finished.",
            "example": "2026-11-30T11:40:00+01:00"
          },
          "recipients": {
            "type": "integer",
            "description": "Number of emails sent (the recipients of the campaign).",
            "example": 1250
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the report was calculated (UTC). The figures are read when you ask, they are not cached.",
            "example": "2026-12-04T09:00:00+00:00"
          },
          "score": {
            "type": "object",
            "description": "Overall score of the campaign, as the Customer App shows it.",
            "example": {
              "value": 80,
              "status": "attention"
            },
            "properties": {
              "value": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Score from 0 to 100. `null` when it is not calculated yet.",
                "example": 80
              },
              "status": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CampaignReportMetricStatus"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Reading of the score: `good`, `attention` or `critical`. `null` when there is no score.",
                "example": "attention"
              }
            }
          },
          "benchmark": {
            "type": "object",
            "description": "What the `benchmark` and `status` fields of `performance` are compared with.",
            "example": {
              "industry": "ecommerce",
              "global": false
            },
            "properties": {
              "industry": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Key of the industry of the account (for example `ecommerce` or `real_estate`). `null` when the reference is the global one.",
                "example": "ecommerce"
              },
              "global": {
                "type": "boolean",
                "description": "True when the account has no industry (or none with its own reference) and the global reference is used.",
                "example": false
              }
            }
          },
          "performance": {
            "type": "object",
            "description": "The metrics of the campaign. Every `rate` is a percentage from 0 to 100 with the same numerator and denominator as `campaign_stats` of `get_campaign`. `clicks` and `ctor` are `null` when the email has no trackable links.",
            "example": {
              "delivery": {
                "rate": 90,
                "delivered": 90,
                "sent": 100,
                "audience_average": 90,
                "benchmark": 99.09,
                "status": "critical"
              },
              "opens": {
                "rate": 33.33,
                "unique": 30,
                "total": 45,
                "audience_average": 33.33,
                "benchmark": 35.63,
                "status": "good"
              },
              "clicks": {
                "rate": 6.67,
                "unique": 6,
                "total": 9,
                "audience_average": 6.67,
                "benchmark": 2.62,
                "status": "good"
              },
              "ctor": {
                "rate": 20,
                "unique_clicks": 6,
                "unique_opens": 30,
                "audience_average": 20,
                "benchmark": 7.35,
                "status": "good"
              },
              "bounces": {
                "rate": 10,
                "total": 10,
                "soft": 6,
                "hard": 4,
                "benchmark": 0.91,
                "status": "critical"
              },
              "unsubscribes": {
                "rate": 2.22,
                "total": 3,
                "by_subscriber": 2,
                "automatic": 1,
                "benchmark": 0.22,
                "status": "critical"
              },
              "complaints": {
                "rate": 1.11,
                "total": 1,
                "healthy_limit": 0.015,
                "status": "critical"
              },
              "orders": {
                "state": "ready",
                "rate": 1.11,
                "orders": 1,
                "revenue": 9500
              }
            },
            "properties": {
              "delivery": {
                "type": "object",
                "description": "Delivery: emails delivered out of the emails sent.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Delivered divided by sent, as a percentage.",
                    "example": 90
                  },
                  "delivered": {
                    "type": "integer",
                    "description": "Emails delivered.",
                    "example": 90
                  },
                  "sent": {
                    "type": "integer",
                    "description": "Emails sent.",
                    "example": 100
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "opens": {
                "type": "object",
                "description": "Opens: people who opened the email out of the emails delivered.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique opens divided by delivered, as a percentage.",
                    "example": 33.33
                  },
                  "unique": {
                    "type": "integer",
                    "description": "People who opened the email (each counts once).",
                    "example": 30
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the opens, including repeated ones.",
                    "example": 45
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "clicks": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Clicks: people who clicked a link out of the emails delivered. `null` when the email has no trackable links.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique clicks divided by delivered, as a percentage.",
                    "example": 6.67
                  },
                  "unique": {
                    "type": "integer",
                    "description": "People who clicked (each counts once).",
                    "example": 6
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the clicks, including repeated ones.",
                    "example": 9
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "ctor": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Click-to-open rate (CTOR): of the people who opened, how many clicked. `null` when the email has no trackable links.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Unique clicks divided by unique opens, as a percentage.",
                    "example": 20
                  },
                  "unique_clicks": {
                    "type": "integer",
                    "description": "People who clicked.",
                    "example": 6
                  },
                  "unique_opens": {
                    "type": "integer",
                    "description": "People who opened.",
                    "example": 30
                  },
                  "audience_average": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The same rate calculated over all the campaigns of the audience of this campaign, this one included. Compare it with `rate` to see whether this campaign is above or below what the audience usually does.",
                    "example": 31.2
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "bounces": {
                "type": "object",
                "description": "Bounces: emails that could not be delivered.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Bounces divided by sent, as a percentage. Lower is better.",
                    "example": 10
                  },
                  "total": {
                    "type": "integer",
                    "description": "Soft and hard bounces together.",
                    "example": 10
                  },
                  "soft": {
                    "type": "integer",
                    "description": "Temporary failures (full mailbox, server down).",
                    "example": 6
                  },
                  "hard": {
                    "type": "integer",
                    "description": "Permanent failures (the address does not exist).",
                    "example": 4
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "unsubscribes": {
                "type": "object",
                "description": "Unsubscribes caused by the campaign.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "People who unsubscribed themselves (`by_subscriber`) divided by delivered, as a percentage. Lower is better. The contacts the platform removed automatically (`automatic`) are not in the rate, but they are in `total`.",
                    "example": 2.22
                  },
                  "total": {
                    "type": "integer",
                    "description": "All the unsubscribes, of both kinds.",
                    "example": 3
                  },
                  "by_subscriber": {
                    "type": "integer",
                    "description": "People who unsubscribed themselves (`unsubscriptions` of `campaign_stats`).",
                    "example": 2
                  },
                  "automatic": {
                    "type": "integer",
                    "description": "Contacts the platform removed automatically (`cleaned` of `campaign_stats`).",
                    "example": 1
                  },
                  "benchmark": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Reference rate for your industry (or the global reference when the account has no industry; see `benchmark` at the top level). `null` when there is no reference.",
                    "example": 35.63
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "complaints": {
                "type": "object",
                "description": "Spam complaints.",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Complaints divided by delivered, as a percentage. Lower is better.",
                    "example": 1.11
                  },
                  "total": {
                    "type": "integer",
                    "description": "Number of complaints.",
                    "example": 1
                  },
                  "healthy_limit": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Highest rate considered healthy: above it the status gets worse. A fixed limit, not an industry average.",
                    "example": 0.015
                  },
                  "status": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CampaignReportMetricStatus"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How `rate` compares with the reference: `good` (as good as or better than it), `attention` (somewhat worse) or `critical` (clearly worse). `null` when there is no reference.",
                    "example": "attention"
                  }
                }
              },
              "orders": {
                "type": "object",
                "description": "Orders of your online store attributed to the campaign.",
                "properties": {
                  "state": {
                    "$ref": "#/components/schemas/CampaignReportOrdersState",
                    "description": "Whether the orders can be reported. Only `ready` carries figures; with `no_store` or `tracking_disabled` the other fields are `null`.",
                    "example": "ready"
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Orders divided by delivered, as a percentage.",
                    "example": 1.11
                  },
                  "orders": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Number of orders.",
                    "example": 1
                  },
                  "revenue": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Revenue in minor units (cents), net of tax and shipping, as `campaign_stats.revenue` of `get_campaign`. There is no currency field: it is not guaranteed to be a single currency when the store sells in several.",
                    "example": 9500
                  }
                }
              }
            }
          },
          "first_24_hours": {
            "type": "array",
            "description": "The first 24 hours of the campaign, one entry per clock hour from the hour the sending started (24 entries; empty when the start time is not recorded). Opens and clicks count different people in that hour.",
            "example": [
              {
                "starts_at": "2026-11-30T11:00:00+01:00",
                "opens": 2,
                "clicks": 1
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "starts_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Start of the one-hour slot, in the time zone of the credential.",
                  "example": "2026-11-30T11:00:00+01:00"
                },
                "opens": {
                  "type": "integer",
                  "description": "People who opened in that hour.",
                  "example": 2
                },
                "clicks": {
                  "type": "integer",
                  "description": "People who clicked in that hour.",
                  "example": 1
                }
              }
            }
          },
          "top_links": {
            "type": "array",
            "description": "The most clicked links, up to 10, most clicked first. Empty when there are no clicks.",
            "example": [
              {
                "url": "https://example.com/offer",
                "unique_clicks": 4,
                "total_clicks": 6,
                "share": 66.67
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Destination of the link.",
                  "example": "https://example.com/offer"
                },
                "unique_clicks": {
                  "type": "integer",
                  "description": "People who clicked it.",
                  "example": 4
                },
                "total_clicks": {
                  "type": "integer",
                  "description": "Clicks on it, repeated ones included.",
                  "example": 6
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the clicks of the campaign that went to this link.",
                  "example": 66.67
                }
              }
            }
          },
          "opens_by_device": {
            "type": "array",
            "description": "Opens by type of device, most opens first; every open counts, including repeated ones by the same person. A device that could not be identified is `unknown`.",
            "example": [
              {
                "device": "desktop",
                "opens": 3,
                "share": 50
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "device": {
                  "type": "string",
                  "description": "Type of device (`desktop`, `smartphone`, `tablet`, `unknown`…).",
                  "example": "desktop"
                },
                "opens": {
                  "type": "integer",
                  "description": "Opens made from this type of device, repeated ones included.",
                  "example": 3
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the opens.",
                  "example": 50
                }
              }
            }
          },
          "opens_by_email_client": {
            "type": "array",
            "description": "Opens by email client, most opens first (every open counts, including repeated ones): the five most used and `other` for the rest. Opens whose client could not be identified are not listed, but count in the total used for `share`.",
            "example": [
              {
                "client": "Gmail",
                "opens": 3,
                "share": 50
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "client": {
                  "type": "string",
                  "description": "Email client (`Gmail`, `Apple Mail`, `Outlook`…) or `other`.",
                  "example": "Gmail"
                },
                "opens": {
                  "type": "integer",
                  "description": "Opens made with this email client, repeated ones included.",
                  "example": 3
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of all the opens.",
                  "example": 50
                }
              }
            }
          },
          "opens_by_country": {
            "type": "array",
            "description": "Where the opens come from, by country: the five countries with most people opening, most first. Here each entry counts people, not opens: a person who opens the email several times from the same country counts once.",
            "example": [
              {
                "country_code": "ES",
                "unique_opens": 4,
                "share": 66.67
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "country_code": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "ISO 3166-1 alpha-2 code in capitals. `null` when the country could not be identified.",
                  "example": "ES"
                },
                "unique_opens": {
                  "type": "integer",
                  "description": "People who opened the email from that country (each counts once).",
                  "example": 4
                },
                "share": {
                  "type": "number",
                  "description": "Percentage of the people counted across the countries.",
                  "example": 66.67
                }
              }
            }
          }
        }
      },
      "CampaignStat": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignStat-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignStat-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignStat.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignStat.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignStat.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Emails sent",
            "type": "integer"
          },
          "delivered": {
            "description": "Emails delivered",
            "type": "integer"
          },
          "clicks": {
            "description": "Total clicks",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Unique clicks",
            "type": "integer"
          },
          "opens": {
            "description": "Total opens",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Unique opens",
            "type": "integer"
          },
          "complaints": {
            "description": "Spam complaints received",
            "type": "integer"
          },
          "soft_bounces": {
            "description": "Soft bounces",
            "type": "integer"
          },
          "hard_bounces": {
            "description": "Hard bounces",
            "type": "integer"
          },
          "unsubscriptions": {
            "description": "Unsubscriptions",
            "type": "integer"
          },
          "delivered_rate": {
            "description": "Delivered rate",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate",
            "type": "integer"
          },
          "bounce_rate": {
            "description": "Bounce rate",
            "type": "integer"
          },
          "complaint_rate": {
            "description": "Spam complaint rate",
            "type": "integer"
          },
          "score": {
            "description": "Engage score",
            "type": "integer"
          },
          "ctor": {
            "description": "Click to open rate (CTOR)",
            "type": "number"
          },
          "unsuscribe_rate": {
            "description": "Unsubscribe rate",
            "type": "number"
          },
          "cleaned": {
            "description": "Cleaned (auto unsubscriptions)",
            "type": "integer"
          },
          "to_send": {
            "description": "Total emails to send",
            "type": "integer"
          },
          "revenue": {
            "description": "E-commerce revenue",
            "type": "number"
          },
          "orders": {
            "description": "E-commerce orders count",
            "type": "integer"
          },
          "order_rate": {
            "description": "E-commerce order rate",
            "type": "number"
          }
        }
      },
      "CampaignTestConfigResource-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "type": {
            "description": "What the A/B test compares. Only in A/B test campaigns.",
            "example": "subject",
            "type": [
              "string",
              "null"
            ]
          },
          "test_size": {
            "description": "Percentage of the recipients that receive the variants as the test.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "winner_metric": {
            "description": "Result that decides the winner among the variants.",
            "example": "open_rate",
            "type": [
              "string",
              "null"
            ]
          },
          "delay_value": {
            "description": "How long to wait, counted in `delay_unit`, before choosing the winner.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "description": "Unit of `delay_value`.",
            "example": "hour",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CampaignTestConfigResource-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "type": {
            "description": "What the A/B test compares. Only in A/B test campaigns.",
            "example": "subject",
            "type": [
              "string",
              "null"
            ]
          },
          "test_size": {
            "description": "Percentage of the recipients that receive the variants as the test.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "winner_metric": {
            "description": "Result that decides the winner among the variants.",
            "example": "open_rate",
            "type": [
              "string",
              "null"
            ]
          },
          "delay_value": {
            "description": "How long to wait, counted in `delay_unit`, before choosing the winner.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "description": "Unit of `delay_value`.",
            "example": "hour",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CampaignTestConfigResource.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "description": "What the A/B test compares. Only in A/B test campaigns.",
            "example": "subject",
            "type": [
              "string",
              "null"
            ]
          },
          "test_size": {
            "description": "Percentage of the recipients that receive the variants as the test.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "winner_metric": {
            "description": "Result that decides the winner among the variants.",
            "example": "open_rate",
            "type": [
              "string",
              "null"
            ]
          },
          "delay_value": {
            "description": "How long to wait, counted in `delay_unit`, before choosing the winner.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "description": "Unit of `delay_value`.",
            "example": "hour",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CampaignTestConfigResource.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "description": "What the A/B test compares. Only in A/B test campaigns.",
            "example": "subject",
            "type": [
              "string",
              "null"
            ]
          },
          "test_size": {
            "description": "Percentage of the recipients that receive the variants as the test.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "winner_metric": {
            "description": "Result that decides the winner among the variants.",
            "example": "open_rate",
            "type": [
              "string",
              "null"
            ]
          },
          "delay_value": {
            "description": "How long to wait, counted in `delay_unit`, before choosing the winner.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "description": "Unit of `delay_value`.",
            "example": "hour",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CampaignTestVariantResource-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "description": "Unique identifier of the variant.",
            "example": "f1a7c3e9-4d28-4b60-9e15-0a6d8c2b7f34",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "subject": {
            "description": "Subject line of this variant. Only in subject A/B tests.",
            "example": "Our Black Friday offers start now",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text of this variant. Only in subject A/B tests.",
            "example": "Up to 40% off until Sunday",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name of this variant. Only in sender A/B tests.",
            "example": "Ana from Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of the sender address of this variant. Only in sender A/B tests.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template": {
            "description": "IRI of the template of this variant. Only in template A/B tests.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email of this variant.",
            "example": "https://assets.easymailing.com/campaigns/variant-thumbnail.jpg",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "description": "Position of the variant in the test.",
            "type": [
              "integer",
              "null"
            ],
            "example": 0
          },
          "delivered": {
            "description": "Emails delivered with this variant.",
            "example": 180,
            "type": [
              "integer",
              "null"
            ]
          },
          "opens": {
            "description": "Opens recorded for this variant.",
            "example": 54,
            "type": [
              "integer",
              "null"
            ]
          },
          "clicks": {
            "description": "Clicks recorded for this variant.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "open_rate": {
            "description": "Open rate of this variant.",
            "example": 30,
            "type": [
              "number",
              "null"
            ]
          },
          "click_rate": {
            "description": "Click rate of this variant.",
            "example": 6.7,
            "type": [
              "number",
              "null"
            ]
          },
          "winner": {
            "description": "True for the variant chosen as the winner of the test.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          }
        }
      },
      "CampaignTestVariantResource-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "description": "Unique identifier of the variant.",
            "example": "f1a7c3e9-4d28-4b60-9e15-0a6d8c2b7f34",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "subject": {
            "description": "Subject line of this variant. Only in subject A/B tests.",
            "example": "Our Black Friday offers start now",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text of this variant. Only in subject A/B tests.",
            "example": "Up to 40% off until Sunday",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name of this variant. Only in sender A/B tests.",
            "example": "Ana from Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of the sender address of this variant. Only in sender A/B tests.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template": {
            "description": "IRI of the template of this variant. Only in template A/B tests.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template_html": {
            "description": "HTML of the email of this variant. Only in template A/B tests.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": [
              "string",
              "null"
            ]
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email of this variant.",
            "example": "https://assets.easymailing.com/campaigns/variant-thumbnail.jpg",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "description": "Position of the variant in the test.",
            "type": [
              "integer",
              "null"
            ],
            "example": 0
          },
          "delivered": {
            "description": "Emails delivered with this variant.",
            "example": 180,
            "type": [
              "integer",
              "null"
            ]
          },
          "opens": {
            "description": "Opens recorded for this variant.",
            "example": 54,
            "type": [
              "integer",
              "null"
            ]
          },
          "clicks": {
            "description": "Clicks recorded for this variant.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "open_rate": {
            "description": "Open rate of this variant.",
            "example": 30,
            "type": [
              "number",
              "null"
            ]
          },
          "click_rate": {
            "description": "Click rate of this variant.",
            "example": 6.7,
            "type": [
              "number",
              "null"
            ]
          },
          "winner": {
            "description": "True for the variant chosen as the winner of the test.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          }
        }
      },
      "CampaignTestVariantResource.jsonld-campaign.read": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "description": "Unique identifier of the variant.",
            "example": "f1a7c3e9-4d28-4b60-9e15-0a6d8c2b7f34",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "subject": {
            "description": "Subject line of this variant. Only in subject A/B tests.",
            "example": "Our Black Friday offers start now",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text of this variant. Only in subject A/B tests.",
            "example": "Up to 40% off until Sunday",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name of this variant. Only in sender A/B tests.",
            "example": "Ana from Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of the sender address of this variant. Only in sender A/B tests.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template": {
            "description": "IRI of the template of this variant. Only in template A/B tests.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email of this variant.",
            "example": "https://assets.easymailing.com/campaigns/variant-thumbnail.jpg",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "description": "Position of the variant in the test.",
            "type": [
              "integer",
              "null"
            ],
            "example": 0
          },
          "delivered": {
            "description": "Emails delivered with this variant.",
            "example": 180,
            "type": [
              "integer",
              "null"
            ]
          },
          "opens": {
            "description": "Opens recorded for this variant.",
            "example": 54,
            "type": [
              "integer",
              "null"
            ]
          },
          "clicks": {
            "description": "Clicks recorded for this variant.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "open_rate": {
            "description": "Open rate of this variant.",
            "example": 30,
            "type": [
              "number",
              "null"
            ]
          },
          "click_rate": {
            "description": "Click rate of this variant.",
            "example": 6.7,
            "type": [
              "number",
              "null"
            ]
          },
          "winner": {
            "description": "True for the variant chosen as the winner of the test.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          }
        }
      },
      "CampaignTestVariantResource.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "Email campaign response. SMS campaigns are exposed separately under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "description": "Unique identifier of the variant.",
            "example": "f1a7c3e9-4d28-4b60-9e15-0a6d8c2b7f34",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "subject": {
            "description": "Subject line of this variant. Only in subject A/B tests.",
            "example": "Our Black Friday offers start now",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text of this variant. Only in subject A/B tests.",
            "example": "Up to 40% off until Sunday",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name of this variant. Only in sender A/B tests.",
            "example": "Ana from Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of the sender address of this variant. Only in sender A/B tests.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template": {
            "description": "IRI of the template of this variant. Only in template A/B tests.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "template_html": {
            "description": "HTML of the email of this variant. Only in template A/B tests.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": [
              "string",
              "null"
            ]
          },
          "template_thumbnail": {
            "description": "URL of the preview image of the email of this variant.",
            "example": "https://assets.easymailing.com/campaigns/variant-thumbnail.jpg",
            "type": [
              "string",
              "null"
            ]
          },
          "sort": {
            "description": "Position of the variant in the test.",
            "type": [
              "integer",
              "null"
            ],
            "example": 0
          },
          "delivered": {
            "description": "Emails delivered with this variant.",
            "example": 180,
            "type": [
              "integer",
              "null"
            ]
          },
          "opens": {
            "description": "Opens recorded for this variant.",
            "example": 54,
            "type": [
              "integer",
              "null"
            ]
          },
          "clicks": {
            "description": "Clicks recorded for this variant.",
            "example": 12,
            "type": [
              "integer",
              "null"
            ]
          },
          "open_rate": {
            "description": "Open rate of this variant.",
            "example": 30,
            "type": [
              "number",
              "null"
            ]
          },
          "click_rate": {
            "description": "Click rate of this variant.",
            "example": 6.7,
            "type": [
              "number",
              "null"
            ]
          },
          "winner": {
            "description": "True for the variant chosen as the winner of the test.",
            "type": [
              "boolean",
              "null"
            ],
            "example": false
          }
        }
      },
      "Category-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "Category-category.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the category. It cannot be changed later.",
            "example": "shoes"
          },
          "title": {
            "type": "string",
            "description": "Name of the category.",
            "example": "Shoes"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image for the category.",
            "example": "https://shop.acme.example.com/img/shoes.jpg"
          }
        }
      },
      "Category-category.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the category",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Category title",
            "example": "My awesome category"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Image url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Category-category.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the category.",
            "example": "Footwear"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image for the category.",
            "example": "https://shop.acme.example.com/img/footwear.jpg"
          }
        }
      },
      "Category.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "Category.jsonld-category.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the category. It cannot be changed later.",
            "example": "shoes"
          },
          "title": {
            "type": "string",
            "description": "Name of the category.",
            "example": "Shoes"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image for the category.",
            "example": "https://shop.acme.example.com/img/shoes.jpg"
          }
        }
      },
      "Category.jsonld-category.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the category",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Category title",
            "example": "My awesome category"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Image url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Category.jsonld-category.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the category.",
            "example": "Footwear"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image for the category.",
            "example": "https://shop.acme.example.com/img/footwear.jpg"
          }
        }
      },
      "Company": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "phones": {
            "type": "array",
            "description": "Phone numbers of the company, as stored. Read-only through the API.",
            "example": [
              "+34910000000"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_company_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "segment": {
                "uuid": "a1b2c3d4-1111-4a2b-8c3d-9e0f1a2b3c4d",
                "label": "Wholesale"
              },
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Company-company.list": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Company-company.list_company.detail": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "phones": {
            "type": "array",
            "description": "Phone numbers of the company, as stored. Read-only through the API.",
            "example": [
              "+34910000000"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_company_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "segment": {
                "uuid": "a1b2c3d4-1111-4a2b-8c3d-9e0f1a2b3c4d",
                "label": "Wholesale"
              },
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Company.CompanyCreateInput": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Company name. Required. Several companies may share a name; only domains are unique.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this company, exactly as they sign in. It must be an active user of the account. `null` leaves the company without owner. Being the owner does not change who can see the company.",
            "example": "laura@acme.com"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`. Send each one as its UUID or its exact label. A write replaces the whole list.",
            "example": [
              "Retail",
              "Wholesale"
            ],
            "items": {
              "type": "string"
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's company attributes, keyed by the attribute's `public_code` (see `list_company_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. In an update, attributes you leave out keep their value.",
            "example": {
              "segment": "Wholesale",
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Company.CompanyCreateInput.jsonld": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Company name. Required. Several companies may share a name; only domains are unique.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this company, exactly as they sign in. It must be an active user of the account. `null` leaves the company without owner. Being the owner does not change who can see the company.",
            "example": "laura@acme.com"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`. Send each one as its UUID or its exact label. A write replaces the whole list.",
            "example": [
              "Retail",
              "Wholesale"
            ],
            "items": {
              "type": "string"
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's company attributes, keyed by the attribute's `public_code` (see `list_company_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. In an update, attributes you leave out keep their value.",
            "example": {
              "segment": "Wholesale",
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Company.CompanyUpdateInput": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this company, exactly as they sign in. It must be an active user of the account. `null` leaves the company without owner. Being the owner does not change who can see the company.",
            "example": "laura@acme.com"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`. Send each one as its UUID or its exact label. A write replaces the whole list.",
            "example": [
              "Retail",
              "Wholesale"
            ],
            "items": {
              "type": "string"
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's company attributes, keyed by the attribute's `public_code` (see `list_company_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. In an update, attributes you leave out keep their value.",
            "example": {
              "segment": "Wholesale",
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Company.CompanyUpdateInput.jsonld": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this company, exactly as they sign in. It must be an active user of the account. `null` leaves the company without owner. Being the owner does not change who can see the company.",
            "example": "laura@acme.com"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`. Send each one as its UUID or its exact label. A write replaces the whole list.",
            "example": [
              "Retail",
              "Wholesale"
            ],
            "items": {
              "type": "string"
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's company attributes, keyed by the attribute's `public_code` (see `list_company_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. In an update, attributes you leave out keep their value.",
            "example": {
              "segment": "Wholesale",
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Company.jsonld": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "phones": {
            "type": "array",
            "description": "Phone numbers of the company, as stored. Read-only through the API.",
            "example": [
              "+34910000000"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_company_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "segment": {
                "uuid": "a1b2c3d4-1111-4a2b-8c3d-9e0f1a2b3c4d",
                "label": "Wholesale"
              },
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Company.jsonld-company.list": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Company.jsonld-company.list_company.detail": {
        "type": "object",
        "description": "Companies of the public API (plan fase 3, Tasks 19 and 20). Generated from the approved proposal by\nfase-3/tools/gen_company_read.py (reads) and gen_company_writes.py (create, update, delete) and edited by hand\nafterwards: the texts are the proposal's. The writes check the CRM access in their processor (and the delete in\nits provider) before anything else, because API Platform evaluates `security` after the provider.\n\n`company:list` is the summary every item of the list has; `company:detail` adds what only `get_company` returns.\n`attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]` (`preserve_empty_objects`).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the company.",
            "example": "7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "name": {
            "type": "string",
            "description": "Company name.",
            "example": "Acme Corp"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description of what the company does.",
            "example": "Industrial supplies wholesaler."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website URL.",
            "example": "https://www.acme.com"
          },
          "domains": {
            "type": "array",
            "description": "Web domains of the company, bare and lowercase (`acme.com`, not `https://www.acme.com/about`): scheme, port, path and a leading `www.` are removed. The first one is the primary domain. A domain can belong to only one company in the account, so a domain that another company already has is rejected.",
            "example": [
              "acme.com",
              "acme.es"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary domain (the first of `domains`).",
            "example": "acme.com",
            "readOnly": true
          },
          "phones": {
            "type": "array",
            "description": "Phone numbers of the company, as stored. Read-only through the API.",
            "example": [
              "+34910000000"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the company. `null` when there is none.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the company is based. All fields are optional. In an update, send only the fields to change; `null` clears one.",
            "example": {
              "country_code": "ES",
              "city": "Madrid",
              "region": "Community of Madrid",
              "postal_code": "28001",
              "timezone": "Europe/Madrid"
            },
            "properties": {
              "country_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Two-letter ISO 3166-1 country code.",
                "example": "ES"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country name. Read-only; it is derived from `country_code`.",
                "example": "Spain",
                "readOnly": true
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA timezone name.",
                "example": "Europe/Madrid"
              }
            }
          },
          "industries": {
            "type": "array",
            "description": "Industries of the company, from the catalog of `list_company_industries`.",
            "example": [
              {
                "uuid": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71",
                "label": "Retail"
              },
              {
                "uuid": "9a4e6c2b-1d7f-4e8a-b3c5-0f2d6a8e1b94",
                "label": "Wholesale"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the industry in the catalog. `null` when the company holds a value that is not in the catalog; `label` then has the stored text.",
                  "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the industry.",
                  "example": "Retail"
                }
              }
            }
          },
          "business_models": {
            "type": "array",
            "description": "Business models. Closed list: `b2b`, `b2c`, `b2g`, `e-commerce`, `media`, `service-provider`, `mobile`, `saas`. A write replaces the whole list.",
            "example": [
              "b2b",
              "saas"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of company. Closed list: `private`, `public`, `self-employed`, `self-owned`, `partnership`, `nonprofit`, `educational`, `government`.",
            "example": "private"
          },
          "employees": {
            "type": [
              "object",
              "null"
            ],
            "description": "Employee count range. `max` is optional (open range). `null` clears it.",
            "example": {
              "min": 50,
              "max": 200
            },
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Lower bound.",
                "example": 50
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Upper bound. Not below `min`.",
                "example": 200
              }
            }
          },
          "annual_revenue": {
            "type": [
              "object",
              "null"
            ],
            "description": "Annual revenue range, in the given currency. This is the company's own revenue range, not the account's ARR. A range needs `min` and `currency`. `null` clears it.",
            "example": {
              "min": "1000000.00",
              "max": "5000000.00",
              "currency": "EUR"
            },
            "properties": {
              "min": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Lower bound as a decimal string.",
                "example": "1000000.00"
              },
              "max": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upper bound as a decimal string. Not below `min`.",
                "example": "5000000.00"
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO 4217 currency code.",
                "example": "EUR"
              }
            }
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year the company was founded.",
            "example": 1998
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn company page URL. It is normalized to the canonical profile URL.",
            "example": "https://www.linkedin.com/company/acme"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL.",
            "example": "https://x.com/acme"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/acme"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook page URL.",
            "example": "https://www.facebook.com/acme"
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_company_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "segment": {
                "uuid": "a1b2c3d4-1111-4a2b-8c3d-9e0f1a2b3c4d",
                "label": "Wholesale"
              },
              "annual_budget": {
                "amount": "25000.00",
                "currency": "EUR"
              }
            }
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Logo URL, filled in automatically. Read-only.",
            "example": "https://cdn.example.com/logos/acme.png",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the company was created: `manual`, `api`, `automation`, `connected_mailbox`, `connected_calendar`, `integration`, `import`, `public_form`, `meeting_booking`. It never changes.",
            "example": "api",
            "readOnly": true
          },
          "contact_count": {
            "type": "integer",
            "description": "Number of contacts linked to the company.",
            "example": 12,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was created (ISO 8601).",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the company was last changed (ISO 8601).",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "CompanyAttribute-company_attribute.read": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active company attributes.",
            "example": "Industry segment"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Market segment the company operates in."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of a company. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "industry_segment"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CompanyAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the company attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of companies that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "enterprise"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "CompanyAttribute.CompanyAttributeCreateInput": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active company attributes, ignoring case and extra spaces.",
            "example": "Industry segment"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CompanyAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`. It cannot be changed afterwards.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Market segment the company operates in."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of a company: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "industry_segment"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "Enterprise",
                "color": "#2563EB"
              },
              {
                "label": "Small business"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "enterprise"
                }
              }
            }
          }
        }
      },
      "CompanyAttribute.CompanyAttributeCreateInput.jsonld": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active company attributes, ignoring case and extra spaces.",
            "example": "Industry segment"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CompanyAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`. It cannot be changed afterwards.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Market segment the company operates in."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of a company: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "industry_segment"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "Enterprise",
                "color": "#2563EB"
              },
              {
                "label": "Small business"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "enterprise"
                }
              }
            }
          }
        }
      },
      "CompanyAttribute.CompanyAttributeUpdateInput": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_company_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Market segment"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Market segment the company operates in."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10",
                "label": "Enterprise",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "a1c3e5f7-0b2d-4f6a-8c1e-2d4f6a8c0e1b",
                "label": "SMB",
                "status": "active"
              },
              {
                "label": "Startup"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "startup"
                }
              }
            }
          }
        }
      },
      "CompanyAttribute.CompanyAttributeUpdateInput.jsonld": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_company_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Market segment"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Market segment the company operates in."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10",
                "label": "Enterprise",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "a1c3e5f7-0b2d-4f6a-8c1e-2d4f6a8c0e1b",
                "label": "SMB",
                "status": "active"
              },
              {
                "label": "Startup"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "startup"
                }
              }
            }
          }
        }
      },
      "CompanyAttribute.CompanyAttributeVersionInput": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_company_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "CompanyAttribute.CompanyAttributeVersionInput.jsonld": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_company_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "CompanyAttribute.jsonld-company_attribute.read": {
        "type": "object",
        "description": "Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active company attributes.",
            "example": "Industry segment"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Market segment the company operates in."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of a company. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "industry_segment"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CompanyAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the company attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of companies that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "enterprise"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "CompanyFilterField-company_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter companies by in a workflow (condiciones de flujos R4): the catalog the workflow engine\nvalidates the filters on a company with for the person behind the credential (`PublicCompanyFilterCatalog`), in the\nshape of `list_contact_filter_fields`.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Stable while the field exists; the fields of company attributes have an opaque id, so look them up by `label`.",
            "example": "company.location_country",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Country",
            "readOnly": true
          },
          "categories": {
            "type": "array",
            "description": "Where the field sits in the Customer App filter menu, from the top category down (`id`, `label`).",
            "example": [
              {
                "id": "company.data",
                "label": "Company data"
              },
              {
                "id": "company.location",
                "label": "Location"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `integer`, `number`, `datetime`, `selection`, `country`, `timezone`, `label_list`, `entity_one`…",
            "example": "country",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list) or `range` (`{lower, upper}`); `constraints` give its limits (`type`, `max_length`, `min_items`…).",
            "example": [
              {
                "id": "is_any_of",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_empty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {}
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`). Copy the `value` into the condition as it is: for a field that points to records (an option of a company attribute, a user of `company.owner`) it is the UUID of the record, and the server writes the reference. Empty for free values; for `options_mode: suggestions` ask `list_company_filter_field_suggestions`.",
            "example": [
              {
                "value": "api",
                "label": "API"
              },
              {
                "value": "import",
                "label": "Import"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options_mode": {
            "default": "closed",
            "example": "closed",
            "type": "string",
            "$ref": "#/components/schemas/ContactFilterOptionsMode",
            "description": "`closed`: `options` is the whole list. `suggestions`: values come from the data and are fetched with `list_company_filter_field_suggestions`.",
            "readOnly": true
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to (`crm_attribute_option` for a selection attribute, `contact_tag` for the tags of the company's contacts): `value` is the UUID of the record, as `options[].value` gives it. `null` for plain values; `company.owner` also says `null`, and its `options[].value` are the UUIDs of the users.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `automation` (the filters on a company of a workflow).",
            "example": [
              "automation"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CompanyFilterField.jsonld-company_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter companies by in a workflow (condiciones de flujos R4): the catalog the workflow engine\nvalidates the filters on a company with for the person behind the credential (`PublicCompanyFilterCatalog`), in the\nshape of `list_contact_filter_fields`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Stable while the field exists; the fields of company attributes have an opaque id, so look them up by `label`.",
            "example": "company.location_country",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Country",
            "readOnly": true
          },
          "categories": {
            "type": "array",
            "description": "Where the field sits in the Customer App filter menu, from the top category down (`id`, `label`).",
            "example": [
              {
                "id": "company.data",
                "label": "Company data"
              },
              {
                "id": "company.location",
                "label": "Location"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `integer`, `number`, `datetime`, `selection`, `country`, `timezone`, `label_list`, `entity_one`…",
            "example": "country",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list) or `range` (`{lower, upper}`); `constraints` give its limits (`type`, `max_length`, `min_items`…).",
            "example": [
              {
                "id": "is_any_of",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_empty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {}
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`). Copy the `value` into the condition as it is: for a field that points to records (an option of a company attribute, a user of `company.owner`) it is the UUID of the record, and the server writes the reference. Empty for free values; for `options_mode: suggestions` ask `list_company_filter_field_suggestions`.",
            "example": [
              {
                "value": "api",
                "label": "API"
              },
              {
                "value": "import",
                "label": "Import"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options_mode": {
            "default": "closed",
            "example": "closed",
            "type": "string",
            "$ref": "#/components/schemas/ContactFilterOptionsMode",
            "description": "`closed`: `options` is the whole list. `suggestions`: values come from the data and are fetched with `list_company_filter_field_suggestions`.",
            "readOnly": true
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to (`crm_attribute_option` for a selection attribute, `contact_tag` for the tags of the company's contacts): `value` is the UUID of the record, as `options[].value` gives it. `null` for plain values; `company.owner` also says `null`, and its `options[].value` are the UUIDs of the users.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `automation` (the filters on a company of a workflow).",
            "example": [
              "automation"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CompanyFilterFieldSuggestion-company_filter_field_suggestion.read": {
        "type": "object",
        "description": "`list_company_filter_field_suggestions` (condiciones de flujos R4): the values found in the data for a field of the company filter\ncatalog whose `options_mode` is `suggestions`, from the same catalog as `list_company_filter_fields`.",
        "deprecated": false,
        "properties": {
          "value": {
            "type": "string",
            "description": "Value to copy into the condition.",
            "example": "Partner",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "How the value is shown.",
            "example": "Partner",
            "readOnly": true
          }
        }
      },
      "CompanyFilterFieldSuggestion.jsonld-company_filter_field_suggestion.read": {
        "type": "object",
        "description": "`list_company_filter_field_suggestions` (condiciones de flujos R4): the values found in the data for a field of the company filter\ncatalog whose `options_mode` is `suggestions`, from the same catalog as `list_company_filter_fields`.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "type": "string",
            "description": "Value to copy into the condition.",
            "example": "Partner",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "How the value is shown.",
            "example": "Partner",
            "readOnly": true
          }
        }
      },
      "CompanyIndustry-company_industry.read": {
        "type": "object",
        "description": "The industries a company can have (plan fase 3, Task 19): the owned master catalog, the same for every account.\nGenerated from the approved proposal by fase-3/tools/gen_company_read.py.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the industry; send it, or the label, in `industries`.",
            "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
          },
          "label": {
            "type": "string",
            "description": "Name of the industry.",
            "example": "Retail"
          }
        }
      },
      "CompanyIndustry.jsonld-company_industry.read": {
        "type": "object",
        "description": "The industries a company can have (plan fase 3, Task 19): the owned master catalog, the same for every account.\nGenerated from the approved proposal by fase-3/tools/gen_company_read.py.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the industry; send it, or the label, in `industries`.",
            "example": "2f8c1e4a-7b3d-4c9e-a5f1-6d0b8e2c4a71"
          },
          "label": {
            "type": "string",
            "description": "Name of the industry.",
            "example": "Retail"
          }
        }
      },
      "ConditionAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "match": {
            "description": "Whether the contact must meet all the conditions or only any one of them.",
            "default": "all",
            "example": "all",
            "type": "string"
          },
          "conditions": {
            "description": "The conditions the contact is checked against. At least one is required.",
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39",
                "operator": "is",
                "value": "ana@example.com"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationConditionItem-automation_step.read"
            }
          }
        }
      },
      "ConditionAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "match": {
            "description": "Whether the contact must meet all the conditions or only any one of them.",
            "default": "all",
            "example": "all",
            "type": "string"
          },
          "conditions": {
            "description": "The conditions the contact is checked against. At least one is required.",
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39",
                "operator": "is",
                "value": "ana@example.com"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationConditionItem-automation_step.write"
            }
          }
        }
      },
      "ConditionAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "match": {
            "description": "Whether the contact must meet all the conditions or only any one of them.",
            "default": "all",
            "example": "all",
            "type": "string"
          },
          "conditions": {
            "description": "The conditions the contact is checked against. At least one is required.",
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39",
                "operator": "is",
                "value": "ana@example.com"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationConditionItem.jsonld-automation_step.read"
            }
          }
        }
      },
      "ConditionAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "match": {
            "description": "Whether the contact must meet all the conditions or only any one of them.",
            "default": "all",
            "example": "all",
            "type": "string"
          },
          "conditions": {
            "description": "The conditions the contact is checked against. At least one is required.",
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39",
                "operator": "is",
                "value": "ana@example.com"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationConditionItem.jsonld-automation_step.write"
            }
          }
        }
      },
      "ConditionField-condition_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "description": "Identifier of the condition field. The last part of its IRI.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Human-readable name of the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "description": "Data type of the field, for example text, email, date, integer, boolean or select.",
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "description": "Group the field belongs to: subscriber, custom_field, location, consent, campaign_activity, survey_activity, group or ecommerce.",
            "type": [
              "string",
              "null"
            ]
          },
          "operators": {
            "description": "Comparison operators accepted for this field in a condition.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "input_type": {
            "description": "Kind of value the field expects: text, select, date, datetime, integer or decimal.",
            "type": [
              "string",
              "null"
            ]
          },
          "multiple": {
            "description": "Whether several options can be chosen (select fields).",
            "type": "boolean"
          },
          "options": {
            "description": "Valid choices as `label` and `value` pairs for select fields; null for other fields.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConditionField.jsonld-condition_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "description": "Identifier of the condition field. The last part of its IRI.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Human-readable name of the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "description": "Data type of the field, for example text, email, date, integer, boolean or select.",
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "description": "Group the field belongs to: subscriber, custom_field, location, consent, campaign_activity, survey_activity, group or ecommerce.",
            "type": [
              "string",
              "null"
            ]
          },
          "operators": {
            "description": "Comparison operators accepted for this field in a condition.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "input_type": {
            "description": "Kind of value the field expects: text, select, date, datetime, integer or decimal.",
            "type": [
              "string",
              "null"
            ]
          },
          "multiple": {
            "description": "Whether several options can be chosen (select fields).",
            "type": "boolean"
          },
          "options": {
            "description": "Valid choices as `label` and `value` pairs for select fields; null for other fields.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Contact-contact.read": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the contact.",
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name.",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name.",
            "example": "García"
          },
          "display_name": {
            "type": "string",
            "description": "Name to show: first and last name, or the primary email or phone when the person has no name.",
            "example": "Ana García"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address, the one used by marketing.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format.",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the person. Never subscribed to audiences.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the person.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title.",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional.",
            "example": {
              "city": "Madrid",
              "country_code": "ES",
              "country": "Spain"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              },
              "country": {
                "type": "string",
                "description": "Country name, derived from `country_code`.",
                "example": "Spain"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date, `YYYY-MM-DD`.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile URL.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile URL.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile URL.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the contact. `null` when there is none, and for users without CRM access.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company of the contact. `null` when there is none, and for users without CRM access.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact.",
            "example": [
              {
                "uuid": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95",
                "name": "Customer"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the tag.",
                  "example": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
                },
                "name": {
                  "type": "string",
                  "description": "Tag name.",
                  "example": "Customer"
                }
              }
            }
          },
          "attributes": {
            "description": "Attribute values keyed by `public_code`. `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "type": "object",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              },
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          },
          "record_source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "Where the contact was created from. Read-only; it never changes afterwards. `api` for contacts created through this API.",
            "example": "api"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the person (Gravatar of the primary email). `null` when there is no valid email; the URL may return 404 when the person has no photo.",
            "example": "https://www.gravatar.com/avatar/0c3f1a7e9b2d4a5c8e6f7a1b3c5d9e2f"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact was last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "Contact.ContactCreateInput": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address. At least one of `email` or `phone` is required. It must not belong to another contact of the account (the other contact is not merged or updated).",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format. At least one of `email` or `phone` is required. It must not belong to another contact.",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the same person. They identify the contact (for example to match incoming emails) but are never subscribed to an audience: only the primary `email` is used by marketing. Replaces the whole list; send `[]` to remove them.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the same person, in E.164 format. Never used by marketing, only the primary `phone` is. Replaces the whole list; send `[]` to remove them.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name (up to 255 characters).",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name (up to 255 characters).",
            "example": "García"
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title as free text (up to 190 characters).",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional. Fields you leave out keep their value.",
            "example": {
              "city": "Madrid",
              "country_code": "ES"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date as `YYYY-MM-DD`.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this contact, exactly as they sign in. It must be an active user of the account. `null` leaves the contact without owner. Being the owner does not change who can see the contact.",
            "example": "laura@acme.com"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company the contact works for (`/companies/{uuid}`). A contact has at most one company; changing or removing it does not affect their audiences, tasks or opportunities. Setting it requires a CRM seat and the `crm.contacts_companies.write` capability. The company must already exist: create it first with `create_company`. `null` removes the link.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact, each one as the UUID of an existing tag or its name. A name that matches no tag (ignoring case) creates that tag. Check the existing tags with `list_contact_tags` first, so you reuse them instead of creating near-duplicates.",
            "example": [
              "Customer",
              "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by the attribute `public_code`, for example `{\"lead_source\": \"Webinar\"}`. Get the codes, types and options with `list_contact_attributes`. `enum` and `multi_enum` attributes accept the UUID of an option or its exact label; `money` is `{amount, currency}`; `null` removes the value. An unknown or archived code is rejected with a 422. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar",
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Contact.ContactCreateInput.jsonld": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address. At least one of `email` or `phone` is required. It must not belong to another contact of the account (the other contact is not merged or updated).",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format. At least one of `email` or `phone` is required. It must not belong to another contact.",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the same person. They identify the contact (for example to match incoming emails) but are never subscribed to an audience: only the primary `email` is used by marketing. Replaces the whole list; send `[]` to remove them.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the same person, in E.164 format. Never used by marketing, only the primary `phone` is. Replaces the whole list; send `[]` to remove them.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name (up to 255 characters).",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name (up to 255 characters).",
            "example": "García"
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title as free text (up to 190 characters).",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional. Fields you leave out keep their value.",
            "example": {
              "city": "Madrid",
              "country_code": "ES"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date as `YYYY-MM-DD`.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this contact, exactly as they sign in. It must be an active user of the account. `null` leaves the contact without owner. Being the owner does not change who can see the contact.",
            "example": "laura@acme.com"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company the contact works for (`/companies/{uuid}`). A contact has at most one company; changing or removing it does not affect their audiences, tasks or opportunities. Setting it requires a CRM seat and the `crm.contacts_companies.write` capability. The company must already exist: create it first with `create_company`. `null` removes the link.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact, each one as the UUID of an existing tag or its name. A name that matches no tag (ignoring case) creates that tag. Check the existing tags with `list_contact_tags` first, so you reuse them instead of creating near-duplicates.",
            "example": [
              "Customer",
              "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by the attribute `public_code`, for example `{\"lead_source\": \"Webinar\"}`. Get the codes, types and options with `list_contact_attributes`. `enum` and `multi_enum` attributes accept the UUID of an option or its exact label; `money` is `{amount, currency}`; `null` removes the value. An unknown or archived code is rejected with a 422. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar",
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Contact.ContactUpdateInput": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address. `null` removes it, only if the contact keeps a phone. It must not belong to another contact of the account (the other contact is not merged or updated). A different email keeps the person subscribed where they were confirmed (see the operation description).",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format. `null` removes it, only if the contact keeps an email. It must not belong to another contact. A different number keeps the person subscribed to SMS where they were confirmed (see the operation description).",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the same person. They identify the contact (for example to match incoming emails) but are never subscribed to an audience: only the primary `email` is used by marketing. Replaces the whole list; send `[]` to remove them. Left unchanged if omitted.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the same person, in E.164 format. Never used by marketing, only the primary `phone` is. Replaces the whole list; send `[]` to remove them. Left unchanged if omitted.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name (up to 255 characters). Left unchanged if omitted.",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name (up to 255 characters). Left unchanged if omitted.",
            "example": "García"
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title as free text (up to 190 characters). Left unchanged if omitted.",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person. Left unchanged if omitted.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`. Left unchanged if omitted.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional. Fields you leave out keep their value.",
            "example": {
              "city": "Madrid",
              "country_code": "ES"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date as `YYYY-MM-DD`. Left unchanged if omitted.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this contact, exactly as they sign in. It must be an active user of the account. `null` leaves the contact without owner. Being the owner does not change who can see the contact.",
            "example": "laura@acme.com"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company the contact works for (`/companies/{uuid}`). A contact has at most one company; changing or removing it does not affect their audiences, tasks or opportunities. Setting it requires a CRM seat and the `crm.contacts_companies.write` capability. The company must already exist: create it first with `create_company`. `null` removes the link. Left unchanged if omitted.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact, each one as the UUID of an existing tag or its name. A name that matches no tag (ignoring case) creates that tag. Check the existing tags with `list_contact_tags` first, so you reuse them instead of creating near-duplicates. Replaces the whole set; send `[]` to remove all the tags. Left unchanged if omitted.",
            "example": [
              "Customer",
              "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by the attribute `public_code`, for example `{\"lead_source\": \"Webinar\"}`. Get the codes, types and options with `list_contact_attributes`. `enum` and `multi_enum` attributes accept the UUID of an option or its exact label; `money` is `{amount, currency}`; `null` removes the value. An unknown or archived code is rejected with a 422. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar",
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Contact.ContactUpdateInput.jsonld": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address. `null` removes it, only if the contact keeps a phone. It must not belong to another contact of the account (the other contact is not merged or updated). A different email keeps the person subscribed where they were confirmed (see the operation description).",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format. `null` removes it, only if the contact keeps an email. It must not belong to another contact. A different number keeps the person subscribed to SMS where they were confirmed (see the operation description).",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the same person. They identify the contact (for example to match incoming emails) but are never subscribed to an audience: only the primary `email` is used by marketing. Replaces the whole list; send `[]` to remove them. Left unchanged if omitted.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the same person, in E.164 format. Never used by marketing, only the primary `phone` is. Replaces the whole list; send `[]` to remove them. Left unchanged if omitted.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name (up to 255 characters). Left unchanged if omitted.",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name (up to 255 characters). Left unchanged if omitted.",
            "example": "García"
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title as free text (up to 190 characters). Left unchanged if omitted.",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person. Left unchanged if omitted.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`. Left unchanged if omitted.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional. Fields you leave out keep their value.",
            "example": {
              "city": "Madrid",
              "country_code": "ES"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date as `YYYY-MM-DD`. Left unchanged if omitted.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile, as a username (with or without `@`) or a URL. It is stored and returned as the full URL. Left unchanged if omitted.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user of the account in charge of this contact, exactly as they sign in. It must be an active user of the account. `null` leaves the contact without owner. Being the owner does not change who can see the contact.",
            "example": "laura@acme.com"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company the contact works for (`/companies/{uuid}`). A contact has at most one company; changing or removing it does not affect their audiences, tasks or opportunities. Setting it requires a CRM seat and the `crm.contacts_companies.write` capability. The company must already exist: create it first with `create_company`. `null` removes the link. Left unchanged if omitted.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact, each one as the UUID of an existing tag or its name. A name that matches no tag (ignoring case) creates that tag. Check the existing tags with `list_contact_tags` first, so you reuse them instead of creating near-duplicates. Replaces the whole set; send `[]` to remove all the tags. Left unchanged if omitted.",
            "example": [
              "Customer",
              "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by the attribute `public_code`, for example `{\"lead_source\": \"Webinar\"}`. Get the codes, types and options with `list_contact_attributes`. `enum` and `multi_enum` attributes accept the UUID of an option or its exact label; `money` is `{amount, currency}`; `null` removes the value. An unknown or archived code is rejected with a 422. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar",
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          }
        }
      },
      "Contact.jsonld-contact.read": {
        "type": "object",
        "description": "Contacts of the public API (plan fase 3, Task 16): the person, one record whatever the audiences they belong to.\nGenerated from the approved proposal by fase-3/tools/gen_contact_read.py and edited by hand afterwards: the texts\nare the proposal's. Reads over ReadContacts; the writes (Tasks 17-18) are added to this resource.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the contact.",
            "example": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name.",
            "example": "Ana"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name.",
            "example": "García"
          },
          "display_name": {
            "type": "string",
            "description": "Name to show: first and last name, or the primary email or phone when the person has no name.",
            "example": "Ana García"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Primary email address, the one used by marketing.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary phone number in E.164 format.",
            "example": "+34612345678"
          },
          "additional_emails": {
            "type": "array",
            "description": "Other email addresses of the person. Never subscribed to audiences.",
            "example": [
              "ana.garcia@acme.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "additional_phones": {
            "type": "array",
            "description": "Other phone numbers of the person.",
            "example": [],
            "items": {
              "type": "string"
            }
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job title.",
            "example": "Head of Marketing"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text notes about the person.",
            "example": "Met at the Madrid e-commerce summit."
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language and region of the person, as a locale code.",
            "example": "es_ES"
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "description": "Where the person lives. All fields are optional.",
            "example": {
              "city": "Madrid",
              "country_code": "ES",
              "country": "Spain"
            },
            "properties": {
              "city": {
                "type": "string",
                "description": "City.",
                "example": "Madrid"
              },
              "region": {
                "type": "string",
                "description": "Region, state or province.",
                "example": "Community of Madrid"
              },
              "postal_code": {
                "type": "string",
                "description": "Postal code.",
                "example": "28001"
              },
              "timezone": {
                "type": "string",
                "description": "Timezone identifier (IANA).",
                "example": "Europe/Madrid"
              },
              "country_code": {
                "type": "string",
                "description": "Country code, ISO 3166-1 alpha-2.",
                "example": "ES"
              },
              "street": {
                "type": "string",
                "description": "Street address, first line.",
                "example": "Calle Mayor 1"
              },
              "street_2": {
                "type": "string",
                "description": "Street address, second line.",
                "example": "2nd floor"
              },
              "country": {
                "type": "string",
                "description": "Country name, derived from `country_code`.",
                "example": "Spain"
              }
            }
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date, `YYYY-MM-DD`.",
            "example": "1988-04-12"
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn profile URL.",
            "example": "https://www.linkedin.com/in/anagarcia"
          },
          "x_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "X profile URL.",
            "example": "https://x.com/anagarcia"
          },
          "instagram_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instagram profile URL.",
            "example": "https://www.instagram.com/anagarcia"
          },
          "facebook_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facebook profile URL.",
            "example": "https://www.facebook.com/anagarcia"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the contact. `null` when there is none, and for users without CRM access.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company of the contact. `null` when there is none, and for users without CRM access.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "tags": {
            "type": "array",
            "description": "Tags of the contact.",
            "example": [
              {
                "uuid": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95",
                "name": "Customer"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the tag.",
                  "example": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95"
                },
                "name": {
                  "type": "string",
                  "description": "Tag name.",
                  "example": "Customer"
                }
              }
            }
          },
          "attributes": {
            "description": "Attribute values keyed by `public_code`. `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "type": "object",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              },
              "annual_budget": {
                "amount": "1200.00",
                "currency": "EUR"
              }
            }
          },
          "record_source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "Where the contact was created from. Read-only; it never changes afterwards. `api` for contacts created through this API.",
            "example": "api"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the person (Gravatar of the primary email). `null` when there is no valid email; the URL may return 404 when the person has no photo.",
            "example": "https://www.gravatar.com/avatar/0c3f1a7e9b2d4a5c8e6f7a1b3c5d9e2f"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact was last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "ContactAttribute-contact_attribute.read": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active contact attributes.",
            "example": "Customer tier"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Commercial tier of the customer."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of a contact. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "customer_tier"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/ContactAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the contact attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of contacts that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "enterprise"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "ContactAttribute.ContactAttributeCreateInput": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active contact attributes, ignoring case and extra spaces.",
            "example": "Customer tier"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ContactAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`, `birthday`. It cannot be changed afterwards. `birthday` stores a full date of birth with year.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Commercial tier of the customer."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of a contact: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "customer_tier"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "Enterprise",
                "color": "#2563EB"
              },
              {
                "label": "Small business"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "enterprise"
                }
              }
            }
          }
        }
      },
      "ContactAttribute.ContactAttributeCreateInput.jsonld": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active contact attributes, ignoring case and extra spaces.",
            "example": "Customer tier"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ContactAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`, `birthday`. It cannot be changed afterwards. `birthday` stores a full date of birth with year.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Commercial tier of the customer."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of a contact: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "customer_tier"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "Enterprise",
                "color": "#2563EB"
              },
              {
                "label": "Small business"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "enterprise"
                }
              }
            }
          }
        }
      },
      "ContactAttribute.ContactAttributeUpdateInput": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_contact_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Account tier"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Commercial tier of the customer."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10",
                "label": "Enterprise",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "a1c3e5f7-0b2d-4f6a-8c1e-2d4f6a8c0e1b",
                "label": "SMB",
                "status": "active"
              },
              {
                "label": "Startup"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "startup"
                }
              }
            }
          }
        }
      },
      "ContactAttribute.ContactAttributeUpdateInput.jsonld": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_contact_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Account tier"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Commercial tier of the customer."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10",
                "label": "Enterprise",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "a1c3e5f7-0b2d-4f6a-8c1e-2d4f6a8c0e1b",
                "label": "SMB",
                "status": "active"
              },
              {
                "label": "Startup"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "startup"
                }
              }
            }
          }
        }
      },
      "ContactAttribute.ContactAttributeVersionInput": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_contact_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "ContactAttribute.ContactAttributeVersionInput.jsonld": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_contact_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "ContactAttribute.jsonld-contact_attribute.read": {
        "type": "object",
        "description": "Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active contact attributes.",
            "example": "Customer tier"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Commercial tier of the customer."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of a contact. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "customer_tier"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/ContactAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the contact attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of contacts that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "5b0f2c4e-1d7a-4c0e-9a55-3f1e8e7d2a10"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "Enterprise"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "enterprise"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "ContactAudienceMembership-contact_audience_membership.read": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "member": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the member: the same membership seen from the audience. Use it with `get_audience_member` or `member_add_from_group`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Email subscription status of the contact in this audience.",
            "example": "suscriber.status.confirmed"
          },
          "email_opt_in_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact confirmed the email subscription, ISO 8601.",
            "example": "2026-10-30T09:20:00+00:00"
          },
          "email_opt_in_source": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the contact entered the audience by email.",
            "example": "suscriber.source.api"
          },
          "sms_status": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "SMS subscription status of the contact in this audience.",
            "example": null
          },
          "sms_opt_in_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact confirmed the SMS subscription, ISO 8601.",
            "example": "2026-10-30T09:25:00+00:00"
          },
          "sms_opt_in_source": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsOptInSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the contact entered the audience by SMS.",
            "example": null
          },
          "joined_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact joined the audience (the membership was created), ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "groups": {
            "type": "array",
            "description": "IRIs of the groups of the audience the contact belongs to.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            ],
            "items": {
              "type": "string",
              "format": "iri-reference"
            }
          },
          "consent": {
            "type": "object",
            "description": "GDPR consent of the contact in this audience.",
            "example": {
              "gdpr_enabled": true,
              "granted": true,
              "consented_at": "2026-10-30T09:15:00+00:00",
              "purposes": [
                "Commercial newsletters"
              ]
            },
            "properties": {
              "gdpr_enabled": {
                "type": "boolean",
                "description": "Whether the audience has GDPR enabled.",
                "example": true
              },
              "granted": {
                "type": "boolean",
                "description": "Whether the contact gave consent.",
                "example": true
              },
              "consented_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the consent was given, ISO 8601.",
                "example": "2026-10-30T09:15:00+00:00"
              },
              "purposes": {
                "type": "array",
                "description": "Treatment purposes the contact accepted.",
                "example": [
                  "Commercial newsletters"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ContactAudienceMembership.ContactMembershipChannelsInput": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "description": "Channels to subscribe: `email`, `sms` or both. Defaults to both when omitted. A channel is only handled if the contact has the matching primary email or phone.",
            "example": [
              "email"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ContactAudienceMembership.ContactMembershipChannelsInput.jsonld": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "description": "Channels to subscribe: `email`, `sms` or both. Defaults to both when omitted. A channel is only handled if the contact has the matching primary email or phone.",
            "example": [
              "email"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ContactAudienceMembership.jsonld-contact_audience_membership.read": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "member": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the member: the same membership seen from the audience. Use it with `get_audience_member` or `member_add_from_group`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Email subscription status of the contact in this audience.",
            "example": "suscriber.status.confirmed"
          },
          "email_opt_in_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact confirmed the email subscription, ISO 8601.",
            "example": "2026-10-30T09:20:00+00:00"
          },
          "email_opt_in_source": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the contact entered the audience by email.",
            "example": "suscriber.source.api"
          },
          "sms_status": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriberStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "SMS subscription status of the contact in this audience.",
            "example": null
          },
          "sms_opt_in_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact confirmed the SMS subscription, ISO 8601.",
            "example": "2026-10-30T09:25:00+00:00"
          },
          "sms_opt_in_source": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsOptInSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the contact entered the audience by SMS.",
            "example": null
          },
          "joined_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the contact joined the audience (the membership was created), ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "groups": {
            "type": "array",
            "description": "IRIs of the groups of the audience the contact belongs to.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            ],
            "items": {
              "type": "string",
              "format": "iri-reference"
            }
          },
          "consent": {
            "type": "object",
            "description": "GDPR consent of the contact in this audience.",
            "example": {
              "gdpr_enabled": true,
              "granted": true,
              "consented_at": "2026-10-30T09:15:00+00:00",
              "purposes": [
                "Commercial newsletters"
              ]
            },
            "properties": {
              "gdpr_enabled": {
                "type": "boolean",
                "description": "Whether the audience has GDPR enabled.",
                "example": true
              },
              "granted": {
                "type": "boolean",
                "description": "Whether the contact gave consent.",
                "example": true
              },
              "consented_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the consent was given, ISO 8601.",
                "example": "2026-10-30T09:15:00+00:00"
              },
              "purposes": {
                "type": "array",
                "description": "Treatment purposes the contact accepted.",
                "example": [
                  "Commercial newsletters"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ContactCount-contact_count.read": {
        "type": "object",
        "description": "`count_contacts` (fase 6): how many contacts are in a segment and/or match a filter, over EvaluateContactQueryCount (the counters of Customer App, with their cache and their «pending» state). Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "state": {
            "default": "pending",
            "example": "ready",
            "type": "string",
            "$ref": "#/components/schemas/ContactQueryCountState",
            "description": "`ready`: `total` is current. `stale`: `total` is a recent result being refreshed. `pending`: not counted yet; `total` is `null`, call again after `retry_after_ms`.",
            "readOnly": true
          },
          "total": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Distinct matching contacts. `null` while `pending`.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `total` was calculated. `null` while `pending`.",
            "example": "2026-11-01T09:31:02+00:00",
            "readOnly": true
          },
          "retry_after_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Milliseconds to wait before calling again (250 to 2000). `null` when `ready`.",
            "example": 750,
            "readOnly": true
          }
        }
      },
      "ContactCount.ContactCountInput": {
        "type": "object",
        "description": "`count_contacts` (fase 6): how many contacts are in a segment and/or match a filter, over EvaluateContactQueryCount (the counters of Customer App, with their cache and their «pending» state). Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of a contact segment: only its contacts (`list_contact_segments`). Combined with `filter`, contacts that are in the segment and also match the filter.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions the contacts must match, in the shape described under `filter` of `create_contact_segment`. Only fields with `search` in `usable_in`. Omit it (and `segment`) to take every contact.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "revalidate": {
            "type": "boolean",
            "description": "Set to true to ignore a recent cached count and count again. Defaults to false.",
            "example": false,
            "default": false
          }
        }
      },
      "ContactCount.ContactCountInput.jsonld": {
        "type": "object",
        "description": "`count_contacts` (fase 6): how many contacts are in a segment and/or match a filter, over EvaluateContactQueryCount (the counters of Customer App, with their cache and their «pending» state). Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of a contact segment: only its contacts (`list_contact_segments`). Combined with `filter`, contacts that are in the segment and also match the filter.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions the contacts must match, in the shape described under `filter` of `create_contact_segment`. Only fields with `search` in `usable_in`. Omit it (and `segment`) to take every contact.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "revalidate": {
            "type": "boolean",
            "description": "Set to true to ignore a recent cached count and count again. Defaults to false.",
            "example": false,
            "default": false
          }
        }
      },
      "ContactCount.jsonld-contact_count.read": {
        "type": "object",
        "description": "`count_contacts` (fase 6): how many contacts are in a segment and/or match a filter, over EvaluateContactQueryCount (the counters of Customer App, with their cache and their «pending» state). Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "state": {
            "default": "pending",
            "example": "ready",
            "type": "string",
            "$ref": "#/components/schemas/ContactQueryCountState",
            "description": "`ready`: `total` is current. `stale`: `total` is a recent result being refreshed. `pending`: not counted yet; `total` is `null`, call again after `retry_after_ms`.",
            "readOnly": true
          },
          "total": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Distinct matching contacts. `null` while `pending`.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `total` was calculated. `null` while `pending`.",
            "example": "2026-11-01T09:31:02+00:00",
            "readOnly": true
          },
          "retry_after_ms": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Milliseconds to wait before calling again (250 to 2000). `null` when `ready`.",
            "example": 750,
            "readOnly": true
          }
        }
      },
      "ContactEmailOptOut": {
        "type": "object",
        "description": "The CRM email opt-out of a contact (fase 5): whether its addresses unsubscribed from 1-to-1 CRM email, and removing\nit. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. A contact\nthat does not exist is 404 `unknown_record` (decision 32). `contactId` is the internal id the delete needs; it is\nnever published.",
        "deprecated": false,
        "properties": {
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "opted_out": {
            "type": "boolean",
            "description": "`true` when the contact, or any of their addresses, asked not to receive CRM email.",
            "example": true
          },
          "opted_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date of the opt-out; null when `opted_out` is false.",
            "example": "2026-10-20T10:00:00+00:00"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The addresses of the contact that are opted out, each `{address, opted_out_at}`.",
            "example": [
              {
                "address": "ana@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "ContactEmailOptOut-contact_email_opt_out.read": {
        "type": "object",
        "description": "The CRM email opt-out of a contact (fase 5): whether its addresses unsubscribed from 1-to-1 CRM email, and removing\nit. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. A contact\nthat does not exist is 404 `unknown_record` (decision 32). `contactId` is the internal id the delete needs; it is\nnever published.",
        "deprecated": false,
        "properties": {
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "opted_out": {
            "type": "boolean",
            "description": "`true` when the contact, or any of their addresses, asked not to receive CRM email.",
            "example": true
          },
          "opted_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date of the opt-out; null when `opted_out` is false.",
            "example": "2026-10-20T10:00:00+00:00"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The addresses of the contact that are opted out, each `{address, opted_out_at}`.",
            "example": [
              {
                "address": "ana@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "ContactEmailOptOut.jsonld": {
        "type": "object",
        "description": "The CRM email opt-out of a contact (fase 5): whether its addresses unsubscribed from 1-to-1 CRM email, and removing\nit. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. A contact\nthat does not exist is 404 `unknown_record` (decision 32). `contactId` is the internal id the delete needs; it is\nnever published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "opted_out": {
            "type": "boolean",
            "description": "`true` when the contact, or any of their addresses, asked not to receive CRM email.",
            "example": true
          },
          "opted_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date of the opt-out; null when `opted_out` is false.",
            "example": "2026-10-20T10:00:00+00:00"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The addresses of the contact that are opted out, each `{address, opted_out_at}`.",
            "example": [
              {
                "address": "ana@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "ContactEmailOptOut.jsonld-contact_email_opt_out.read": {
        "type": "object",
        "description": "The CRM email opt-out of a contact (fase 5): whether its addresses unsubscribed from 1-to-1 CRM email, and removing\nit. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. A contact\nthat does not exist is 404 `unknown_record` (decision 32). `contactId` is the internal id the delete needs; it is\nnever published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "opted_out": {
            "type": "boolean",
            "description": "`true` when the contact, or any of their addresses, asked not to receive CRM email.",
            "example": true
          },
          "opted_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date of the opt-out; null when `opted_out` is false.",
            "example": "2026-10-20T10:00:00+00:00"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The addresses of the contact that are opted out, each `{address, opted_out_at}`.",
            "example": [
              {
                "address": "ana@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "ContactFilterField-contact_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter contacts by (fase 6): the snapshot of ContactFilterCatalog that the person behind\nthe credential sees in Customer App, in its public shape. Generated from the proposal by\nfase-6/tools/b_gen_contact_filters.py; the texts are the proposal's. `usable_in=automation` and `audience` were added\nfor the filters of workflows (condiciones de flujos R4).",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Stable while the field exists; the fields of configurable attributes have an opaque id, so look them up by `label`.",
            "example": "membership.email_status",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in the language of the user, as Customer App shows it.",
            "example": "Email status",
            "readOnly": true
          },
          "categories": {
            "type": "array",
            "description": "Where the field sits in the Customer App filter menu, from the top category down (`id`, `label`).",
            "example": [
              {
                "id": "audiences",
                "label": "Audiences"
              },
              {
                "id": "audiences.email",
                "label": "Email"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `email`, `phone`, `number`, `boolean`, `date`, `datetime`, `enum`, `status`, `multi_enum`, `related_collection`, `activity`…",
            "example": "status",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list), `range` (`{lower, upper}`) or `activity` (`{message_scope}`); `constraints` give its limits (`type`, `max_length`, `min_items`, and for activity the allowed `scopes`, `counts` and `periods`).",
            "example": [
              {
                "id": "is_any_of",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_none_of",
                "label": "is none of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_empty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {}
              },
              {
                "id": "is_not_empty",
                "label": "is not empty",
                "value_shape": "none",
                "constraints": {}
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`). Copy the `value` into the condition. Empty for free values; for `options_mode: suggestions` ask `list_contact_filter_field_suggestions`.",
            "example": [
              {
                "value": "suscriber.status.confirmed",
                "label": "Confirmed"
              },
              {
                "value": "suscriber.status.unconfirmed",
                "label": "Unconfirmed"
              },
              {
                "value": "suscriber.status.unsuscribed",
                "label": "Unsubscribed"
              },
              {
                "value": "suscriber.status.unsuscribed.admin",
                "label": "Cleaned"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options_mode": {
            "default": "closed",
            "example": "closed",
            "type": "string",
            "$ref": "#/components/schemas/ContactFilterOptionsMode",
            "description": "`closed`: `options` is the whole list. `suggestions`: values come from the data and are fetched with `list_contact_filter_field_suggestions`.",
            "readOnly": true
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to (`audience`, `audience_group`, `consent_purpose`, `contact_tag`, `crm_attribute_option`…): `value` is the UUID of the record, copied from `options[].value`. `null` for plain values, like `membership.email_status` or the fields with `options_mode: suggestions` (e.g. language, country or the source of a membership), whose values are plain.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "audience_required": {
            "type": "boolean",
            "description": "True for the subscription fields: a condition on them needs `audience`, the audience whose subscription is checked.",
            "example": true,
            "readOnly": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a custom field of one audience, the UUID of that audience: the only one a condition on this field can name in `audience`. `null` when the field takes any audience of `list_audiences` (like `membership.email_status`), or none.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `search` (`search_contacts` and `count_contacts`), `segment` (contact segments), `campaign` (the `filter` of a campaign) and `automation` (the contacts filters of a workflow).",
            "example": [
              "search",
              "segment",
              "campaign",
              "automation"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ContactFilterField.jsonld-contact_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter contacts by (fase 6): the snapshot of ContactFilterCatalog that the person behind\nthe credential sees in Customer App, in its public shape. Generated from the proposal by\nfase-6/tools/b_gen_contact_filters.py; the texts are the proposal's. `usable_in=automation` and `audience` were added\nfor the filters of workflows (condiciones de flujos R4).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Stable while the field exists; the fields of configurable attributes have an opaque id, so look them up by `label`.",
            "example": "membership.email_status",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in the language of the user, as Customer App shows it.",
            "example": "Email status",
            "readOnly": true
          },
          "categories": {
            "type": "array",
            "description": "Where the field sits in the Customer App filter menu, from the top category down (`id`, `label`).",
            "example": [
              {
                "id": "audiences",
                "label": "Audiences"
              },
              {
                "id": "audiences.email",
                "label": "Email"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `email`, `phone`, `number`, `boolean`, `date`, `datetime`, `enum`, `status`, `multi_enum`, `related_collection`, `activity`…",
            "example": "status",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list), `range` (`{lower, upper}`) or `activity` (`{message_scope}`); `constraints` give its limits (`type`, `max_length`, `min_items`, and for activity the allowed `scopes`, `counts` and `periods`).",
            "example": [
              {
                "id": "is_any_of",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_none_of",
                "label": "is none of",
                "value_shape": "set",
                "constraints": {
                  "min_items": 1
                }
              },
              {
                "id": "is_empty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {}
              },
              {
                "id": "is_not_empty",
                "label": "is not empty",
                "value_shape": "none",
                "constraints": {}
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`). Copy the `value` into the condition. Empty for free values; for `options_mode: suggestions` ask `list_contact_filter_field_suggestions`.",
            "example": [
              {
                "value": "suscriber.status.confirmed",
                "label": "Confirmed"
              },
              {
                "value": "suscriber.status.unconfirmed",
                "label": "Unconfirmed"
              },
              {
                "value": "suscriber.status.unsuscribed",
                "label": "Unsubscribed"
              },
              {
                "value": "suscriber.status.unsuscribed.admin",
                "label": "Cleaned"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options_mode": {
            "default": "closed",
            "example": "closed",
            "type": "string",
            "$ref": "#/components/schemas/ContactFilterOptionsMode",
            "description": "`closed`: `options` is the whole list. `suggestions`: values come from the data and are fetched with `list_contact_filter_field_suggestions`.",
            "readOnly": true
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to (`audience`, `audience_group`, `consent_purpose`, `contact_tag`, `crm_attribute_option`…): `value` is the UUID of the record, copied from `options[].value`. `null` for plain values, like `membership.email_status` or the fields with `options_mode: suggestions` (e.g. language, country or the source of a membership), whose values are plain.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "audience_required": {
            "type": "boolean",
            "description": "True for the subscription fields: a condition on them needs `audience`, the audience whose subscription is checked.",
            "example": true,
            "readOnly": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "For a custom field of one audience, the UUID of that audience: the only one a condition on this field can name in `audience`. `null` when the field takes any audience of `list_audiences` (like `membership.email_status`), or none.",
            "examples": [
              null
            ],
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `search` (`search_contacts` and `count_contacts`), `segment` (contact segments), `campaign` (the `filter` of a campaign) and `automation` (the contacts filters of a workflow).",
            "example": [
              "search",
              "segment",
              "campaign",
              "automation"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ContactFilterFieldSuggestion-contact_filter_field_suggestion.read": {
        "type": "object",
        "description": "`list_contact_filter_field_suggestions` (fase 6): the values found in the data for a field of the contact filter\ncatalog whose `options_mode` is `suggestions` (ReadContactFilterFieldSuggestions). Generated from the proposal by\nfase-6/tools/b_gen_contact_filters.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "value": {
            "type": "string",
            "description": "Value to copy into the condition.",
            "example": "webform",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "How the value is shown.",
            "example": "Form",
            "readOnly": true
          }
        }
      },
      "ContactFilterFieldSuggestion.jsonld-contact_filter_field_suggestion.read": {
        "type": "object",
        "description": "`list_contact_filter_field_suggestions` (fase 6): the values found in the data for a field of the contact filter\ncatalog whose `options_mode` is `suggestions` (ReadContactFilterFieldSuggestions). Generated from the proposal by\nfase-6/tools/b_gen_contact_filters.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "type": "string",
            "description": "Value to copy into the condition.",
            "example": "webform",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "How the value is shown.",
            "example": "Form",
            "readOnly": true
          }
        }
      },
      "ContactSearch-contact_search.read_contact.read": {
        "type": "object",
        "description": "`search_contacts` (fase 6): a page of the contacts that are in a segment and/or match a filter, newest first, over EvaluateContactQuery (cursor and time budget of the Contacts list of Customer App), each contact as in `list_contacts`. Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "items": {
            "type": "array",
            "description": "Matching contacts, as in `list_contacts`.",
            "example": [
              {
                "uuid": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
                "first_name": "Ana",
                "last_name": "García",
                "display_name": "Ana García",
                "email": "ana@example.com",
                "phone": "+34612345678",
                "additional_emails": [
                  "ana.garcia@acme.com"
                ],
                "additional_phones": [],
                "job_title": "Head of Marketing",
                "description": "Met at the Madrid e-commerce summit.",
                "locale": "es_ES",
                "location": {
                  "city": "Madrid",
                  "country_code": "ES",
                  "country": "Spain"
                },
                "birth_date": "1988-04-12",
                "linkedin_url": "https://www.linkedin.com/in/anagarcia",
                "x_url": "https://x.com/anagarcia",
                "instagram_url": "https://www.instagram.com/anagarcia",
                "facebook_url": "https://www.facebook.com/anagarcia",
                "owner": {
                  "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
                  "name": "Laura Martín",
                  "email": "laura@acme.com"
                },
                "company": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "tags": [
                  {
                    "uuid": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95",
                    "name": "Customer"
                  }
                ],
                "attributes": {
                  "lead_source": {
                    "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                    "label": "Webinar"
                  },
                  "annual_budget": {
                    "amount": "1200.00",
                    "currency": "EUR"
                  }
                },
                "record_source": "api",
                "avatar_url": "https://www.gravatar.com/avatar/0c3f1a7e9b2d4a5c8e6f7a1b3c5d9e2f",
                "created_at": "2026-10-30T09:15:00+00:00",
                "updated_at": "2026-10-30T10:02:11+00:00"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cursor of the next page. `null` on the last page.",
            "example": "v1.eyJhIjoxNzMwNDU2Nzg5fQ",
            "readOnly": true
          },
          "evaluated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page was read.",
            "example": "2026-11-01T09:31:02+00:00",
            "readOnly": true
          }
        }
      },
      "ContactSearch.ContactSearchInput": {
        "type": "object",
        "description": "`search_contacts` (fase 6): a page of the contacts that are in a segment and/or match a filter, newest first, over EvaluateContactQuery (cursor and time budget of the Contacts list of Customer App), each contact as in `list_contacts`. Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of a contact segment: only its contacts (`list_contact_segments`). Combined with `filter`, contacts that are in the segment and also match the filter.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions the contacts must match, in the shape described under `filter` of `create_contact_segment`. Only fields with `search` in `usable_in`. Omit it (and `segment`) to take every contact.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "items_per_page": {
            "type": "integer",
            "description": "Contacts per page. Default 30, maximum 50.",
            "example": 30,
            "minimum": 1,
            "maximum": 50,
            "default": 30
          },
          "cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "`next_cursor` of the previous answer, to read the next page. Omit it for the first page.",
            "example": "eyJ2IjoxLCJwIjoiMjAyNi0xMS0wMVQwOToz",
            "maxLength": 4096
          }
        }
      },
      "ContactSearch.ContactSearchInput.jsonld": {
        "type": "object",
        "description": "`search_contacts` (fase 6): a page of the contacts that are in a segment and/or match a filter, newest first, over EvaluateContactQuery (cursor and time budget of the Contacts list of Customer App), each contact as in `list_contacts`. Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of a contact segment: only its contacts (`list_contact_segments`). Combined with `filter`, contacts that are in the segment and also match the filter.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions the contacts must match, in the shape described under `filter` of `create_contact_segment`. Only fields with `search` in `usable_in`. Omit it (and `segment`) to take every contact.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "items_per_page": {
            "type": "integer",
            "description": "Contacts per page. Default 30, maximum 50.",
            "example": 30,
            "minimum": 1,
            "maximum": 50,
            "default": 30
          },
          "cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "`next_cursor` of the previous answer, to read the next page. Omit it for the first page.",
            "example": "eyJ2IjoxLCJwIjoiMjAyNi0xMS0wMVQwOToz",
            "maxLength": 4096
          }
        }
      },
      "ContactSearch.jsonld-contact_search.read_contact.read": {
        "type": "object",
        "description": "`search_contacts` (fase 6): a page of the contacts that are in a segment and/or match a filter, newest first, over EvaluateContactQuery (cursor and time budget of the Contacts list of Customer App), each contact as in `list_contacts`. Generated from the proposal by fase-6/tools/b_gen_contact_queries.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "items": {
            "type": "array",
            "description": "Matching contacts, as in `list_contacts`.",
            "example": [
              {
                "uuid": "5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
                "first_name": "Ana",
                "last_name": "García",
                "display_name": "Ana García",
                "email": "ana@example.com",
                "phone": "+34612345678",
                "additional_emails": [
                  "ana.garcia@acme.com"
                ],
                "additional_phones": [],
                "job_title": "Head of Marketing",
                "description": "Met at the Madrid e-commerce summit.",
                "locale": "es_ES",
                "location": {
                  "city": "Madrid",
                  "country_code": "ES",
                  "country": "Spain"
                },
                "birth_date": "1988-04-12",
                "linkedin_url": "https://www.linkedin.com/in/anagarcia",
                "x_url": "https://x.com/anagarcia",
                "instagram_url": "https://www.instagram.com/anagarcia",
                "facebook_url": "https://www.facebook.com/anagarcia",
                "owner": {
                  "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
                  "name": "Laura Martín",
                  "email": "laura@acme.com"
                },
                "company": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "tags": [
                  {
                    "uuid": "9d2e7b14-5a60-4c83-a1f7-0b3c8e6d2a95",
                    "name": "Customer"
                  }
                ],
                "attributes": {
                  "lead_source": {
                    "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                    "label": "Webinar"
                  },
                  "annual_budget": {
                    "amount": "1200.00",
                    "currency": "EUR"
                  }
                },
                "record_source": "api",
                "avatar_url": "https://www.gravatar.com/avatar/0c3f1a7e9b2d4a5c8e6f7a1b3c5d9e2f",
                "created_at": "2026-10-30T09:15:00+00:00",
                "updated_at": "2026-10-30T10:02:11+00:00"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cursor of the next page. `null` on the last page.",
            "example": "v1.eyJhIjoxNzMwNDU2Nzg5fQ",
            "readOnly": true
          },
          "evaluated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the page was read.",
            "example": "2026-11-01T09:31:02+00:00",
            "readOnly": true
          }
        }
      },
      "ContactSegment": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the segment.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions of the active revision, in the shape described under `filter` of `create_contact_segment`. A segment never contains another segment. `null` only for a segment whose stored definition cannot be shown as conditions (Customer App does not list those either).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the segment. It grows with every change (rename or new revision); send it as `expected_version` to change or delete the segment safely.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "revision_number": {
            "type": "integer",
            "description": "Number of the active revision. Every saved change of name or conditions publishes revision N+1; earlier revisions are kept for the campaigns that were scheduled or sent with them.",
            "example": 2,
            "minimum": 1,
            "readOnly": true
          },
          "match_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Contacts that matched when the revision was published (or last evaluated). It is a snapshot, not live: use `count_contacts` with `segment` for the current number. `null` when it could not be calculated.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `match_count` was calculated. `null` with it.",
            "example": "2026-11-01T09:30:12+00:00",
            "readOnly": true
          },
          "usage": {
            "type": "object",
            "description": "How many things depend on the segment now. Only numbers: the names of those campaigns or views are not given.",
            "example": {
              "campaigns": 2,
              "saved_views": 1,
              "segments": 0
            },
            "readOnly": true,
            "properties": {
              "campaigns": {
                "type": "integer",
                "description": "Email and SMS campaigns in draft, ready or scheduled that target the segment (directly, or as the base of their own filter).",
                "example": 2,
                "minimum": 0,
                "readOnly": true
              },
              "saved_views": {
                "type": "integer",
                "description": "Saved views of the Contacts list in Customer App that load the segment.",
                "example": 1,
                "minimum": 0,
                "readOnly": true
              },
              "segments": {
                "type": "integer",
                "description": "Other segments that reference it. Always 0 for segments created today: definitions are flat and cannot reference segments.",
                "example": 0,
                "minimum": 0,
                "readOnly": true
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the segment was created.",
            "example": "2026-10-20T08:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When its name or conditions last changed.",
            "example": "2026-11-01T09:30:11+00:00",
            "readOnly": true
          }
        }
      },
      "ContactSegment-contact_segment.read": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the segment.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions of the active revision, in the shape described under `filter` of `create_contact_segment`. A segment never contains another segment. `null` only for a segment whose stored definition cannot be shown as conditions (Customer App does not list those either).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the segment. It grows with every change (rename or new revision); send it as `expected_version` to change or delete the segment safely.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "revision_number": {
            "type": "integer",
            "description": "Number of the active revision. Every saved change of name or conditions publishes revision N+1; earlier revisions are kept for the campaigns that were scheduled or sent with them.",
            "example": 2,
            "minimum": 1,
            "readOnly": true
          },
          "match_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Contacts that matched when the revision was published (or last evaluated). It is a snapshot, not live: use `count_contacts` with `segment` for the current number. `null` when it could not be calculated.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `match_count` was calculated. `null` with it.",
            "example": "2026-11-01T09:30:12+00:00",
            "readOnly": true
          },
          "usage": {
            "type": "object",
            "description": "How many things depend on the segment now. Only numbers: the names of those campaigns or views are not given.",
            "example": {
              "campaigns": 2,
              "saved_views": 1,
              "segments": 0
            },
            "readOnly": true,
            "properties": {
              "campaigns": {
                "type": "integer",
                "description": "Email and SMS campaigns in draft, ready or scheduled that target the segment (directly, or as the base of their own filter).",
                "example": 2,
                "minimum": 0,
                "readOnly": true
              },
              "saved_views": {
                "type": "integer",
                "description": "Saved views of the Contacts list in Customer App that load the segment.",
                "example": 1,
                "minimum": 0,
                "readOnly": true
              },
              "segments": {
                "type": "integer",
                "description": "Other segments that reference it. Always 0 for segments created today: definitions are flat and cannot reference segments.",
                "example": 0,
                "minimum": 0,
                "readOnly": true
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the segment was created.",
            "example": "2026-10-20T08:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When its name or conditions last changed.",
            "example": "2026-11-01T09:30:11+00:00",
            "readOnly": true
          }
        }
      },
      "ContactSegment.ContactSegmentCreateInput": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "required": [
          "name",
          "filter"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain",
            "maxLength": 190
          },
          "filter": {
            "type": "object",
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Which contacts match, written as the conditions editor of Customer App shows them: a top level with `match` (`all` = every item must hold, `any` = at least one) and `conditions`, a list of conditions and of groups. A group is `{match, conditions}` with conditions only: a group never contains another group. Up to 10 groups and 50 conditions in total.\nA condition is `{field, operator, value, audience}`:\n- `field`: the `id` of a field of `list_contact_filter_fields`.\n- `operator`: one of that field's `operators[].id`.\n- `value`: depends on the operator's `value_shape`: `none` = leave it out; `scalar` = one value; `set` = a list; `range` = `{lower, upper}`; `activity` = `{message_scope}` (see the field). For a field with `options`, copy the option's `value`; when the field has a `reference_type` (audience, group, tag, campaign, user…), the value is that record's UUID. Dates are `YYYY-MM-DD`.\n- `audience`: UUID of an audience. Required, and only accepted, when the field has `audience_required: true` (the subscription fields: status, source, dates, groups, consent, forms and custom fields of an audience). Conditions on the same audience joined by `all` are checked on the same subscription.\nTo say «is subscribed to audience A» use the field `contact.audience_memberships` with `exists` and `audience`; `not_exists` means the person has no subscription to it, in any status.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          }
        }
      },
      "ContactSegment.ContactSegmentCreateInput.jsonld": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "required": [
          "name",
          "filter"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain",
            "maxLength": 190
          },
          "filter": {
            "type": "object",
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Which contacts match, written as the conditions editor of Customer App shows them: a top level with `match` (`all` = every item must hold, `any` = at least one) and `conditions`, a list of conditions and of groups. A group is `{match, conditions}` with conditions only: a group never contains another group. Up to 10 groups and 50 conditions in total.\nA condition is `{field, operator, value, audience}`:\n- `field`: the `id` of a field of `list_contact_filter_fields`.\n- `operator`: one of that field's `operators[].id`.\n- `value`: depends on the operator's `value_shape`: `none` = leave it out; `scalar` = one value; `set` = a list; `range` = `{lower, upper}`; `activity` = `{message_scope}` (see the field). For a field with `options`, copy the option's `value`; when the field has a `reference_type` (audience, group, tag, campaign, user…), the value is that record's UUID. Dates are `YYYY-MM-DD`.\n- `audience`: UUID of an audience. Required, and only accepted, when the field has `audience_required: true` (the subscription fields: status, source, dates, groups, consent, forms and custom fields of an audience). Conditions on the same audience joined by `all` are checked on the same subscription.\nTo say «is subscribed to audience A» use the field `contact.audience_memberships` with `exists` and `audience`; `not_exists` means the person has no subscription to it, in any status.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          }
        }
      },
      "ContactSegment.ContactSegmentUpdateInput": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, unique in the account, up to 190 characters. Omit it to keep the current one.",
            "example": "Engaged subscribers Iberia",
            "maxLength": 190
          },
          "filter": {
            "type": "object",
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "New conditions, in the shape described under `filter` of `create_contact_segment`. They replace all the current ones. Omit it to keep them (for example, to only rename).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "`version` you read. If the segment changed since, nothing is saved and you get `contact_segment_version_conflict`. Optional: without it the last write wins.",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "ContactSegment.ContactSegmentUpdateInput.jsonld": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, unique in the account, up to 190 characters. Omit it to keep the current one.",
            "example": "Engaged subscribers Iberia",
            "maxLength": 190
          },
          "filter": {
            "type": "object",
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "New conditions, in the shape described under `filter` of `create_contact_segment`. They replace all the current ones. Omit it to keep them (for example, to only rename).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "`version` you read. If the segment changed since, nothing is saved and you get `contact_segment_version_conflict`. Optional: without it the last write wins.",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "ContactSegment.jsonld": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the segment.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions of the active revision, in the shape described under `filter` of `create_contact_segment`. A segment never contains another segment. `null` only for a segment whose stored definition cannot be shown as conditions (Customer App does not list those either).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the segment. It grows with every change (rename or new revision); send it as `expected_version` to change or delete the segment safely.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "revision_number": {
            "type": "integer",
            "description": "Number of the active revision. Every saved change of name or conditions publishes revision N+1; earlier revisions are kept for the campaigns that were scheduled or sent with them.",
            "example": 2,
            "minimum": 1,
            "readOnly": true
          },
          "match_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Contacts that matched when the revision was published (or last evaluated). It is a snapshot, not live: use `count_contacts` with `segment` for the current number. `null` when it could not be calculated.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `match_count` was calculated. `null` with it.",
            "example": "2026-11-01T09:30:12+00:00",
            "readOnly": true
          },
          "usage": {
            "type": "object",
            "description": "How many things depend on the segment now. Only numbers: the names of those campaigns or views are not given.",
            "example": {
              "campaigns": 2,
              "saved_views": 1,
              "segments": 0
            },
            "readOnly": true,
            "properties": {
              "campaigns": {
                "type": "integer",
                "description": "Email and SMS campaigns in draft, ready or scheduled that target the segment (directly, or as the base of their own filter).",
                "example": 2,
                "minimum": 0,
                "readOnly": true
              },
              "saved_views": {
                "type": "integer",
                "description": "Saved views of the Contacts list in Customer App that load the segment.",
                "example": 1,
                "minimum": 0,
                "readOnly": true
              },
              "segments": {
                "type": "integer",
                "description": "Other segments that reference it. Always 0 for segments created today: definitions are flat and cannot reference segments.",
                "example": 0,
                "minimum": 0,
                "readOnly": true
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the segment was created.",
            "example": "2026-10-20T08:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When its name or conditions last changed.",
            "example": "2026-11-01T09:30:11+00:00",
            "readOnly": true
          }
        }
      },
      "ContactSegment.jsonld-contact_segment.read": {
        "type": "object",
        "description": "Contact segments of the public API (fase 6): the global segments of Customer App, over ContactSegmentManager and its\nreaders in CoreBundle. Generated from the proposal by fase-6/tools/b_gen_contact_segments.py; the texts are the\nproposal's. `filter` is the public conditions tree: the API never exposes the stored filter document or the editor\npresentation, it builds both from the tree (ContactFilterTreeConverter) so the segment shows and edits in the app.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the segment.",
            "example": "8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Name of the segment, unique in the account (ignoring case and spaces), up to 190 characters.",
            "example": "Engaged subscribers Spain"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "Conditions of the active revision, in the shape described under `filter` of `create_contact_segment`. A segment never contains another segment. `null` only for a segment whose stored definition cannot be shown as conditions (Customer App does not list those either).",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "membership.email_status",
                  "operator": "is_any_of",
                  "value": [
                    "suscriber.status.confirmed"
                  ],
                  "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                },
                {
                  "field": "marketing.email.opened",
                  "operator": "occurred",
                  "value": {
                    "message_scope": {
                      "kind": "latest_sent_campaigns",
                      "count": 5
                    }
                  }
                },
                {
                  "match": "any",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES",
                        "PT"
                      ]
                    },
                    {
                      "field": "membership.groups",
                      "operator": "contains_any",
                      "value": [
                        "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                      ],
                      "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    }
                  ]
                }
              ]
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the segment. It grows with every change (rename or new revision); send it as `expected_version` to change or delete the segment safely.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "revision_number": {
            "type": "integer",
            "description": "Number of the active revision. Every saved change of name or conditions publishes revision N+1; earlier revisions are kept for the campaigns that were scheduled or sent with them.",
            "example": 2,
            "minimum": 1,
            "readOnly": true
          },
          "match_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Contacts that matched when the revision was published (or last evaluated). It is a snapshot, not live: use `count_contacts` with `segment` for the current number. `null` when it could not be calculated.",
            "example": 1250,
            "minimum": 0,
            "readOnly": true
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `match_count` was calculated. `null` with it.",
            "example": "2026-11-01T09:30:12+00:00",
            "readOnly": true
          },
          "usage": {
            "type": "object",
            "description": "How many things depend on the segment now. Only numbers: the names of those campaigns or views are not given.",
            "example": {
              "campaigns": 2,
              "saved_views": 1,
              "segments": 0
            },
            "readOnly": true,
            "properties": {
              "campaigns": {
                "type": "integer",
                "description": "Email and SMS campaigns in draft, ready or scheduled that target the segment (directly, or as the base of their own filter).",
                "example": 2,
                "minimum": 0,
                "readOnly": true
              },
              "saved_views": {
                "type": "integer",
                "description": "Saved views of the Contacts list in Customer App that load the segment.",
                "example": 1,
                "minimum": 0,
                "readOnly": true
              },
              "segments": {
                "type": "integer",
                "description": "Other segments that reference it. Always 0 for segments created today: definitions are flat and cannot reference segments.",
                "example": 0,
                "minimum": 0,
                "readOnly": true
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the segment was created.",
            "example": "2026-10-20T08:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When its name or conditions last changed.",
            "example": "2026-11-01T09:30:11+00:00",
            "readOnly": true
          }
        }
      },
      "ContactTag-contact_tag.read": {
        "type": "object",
        "description": "Contact tags of the public API (plan fase 3, Task 16): the catalog a contact's `tags` draw from, over\nContactTagCatalog. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "required": [
          "uuid",
          "name"
        ],
        "properties": {
          "uuid": {
            "type": "string",
            "description": "Identifier of the tag.",
            "example": "9c2f4e1a-7b3d-4c8e-a1f0-5d6e7f8a9b0c"
          },
          "name": {
            "type": "string",
            "description": "Name of the tag.",
            "example": "VIP"
          }
        }
      },
      "ContactTag.jsonld-contact_tag.read": {
        "type": "object",
        "description": "Contact tags of the public API (plan fase 3, Task 16): the catalog a contact's `tags` draw from, over\nContactTagCatalog. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "required": [
          "uuid",
          "name"
        ],
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "description": "Identifier of the tag.",
            "example": "9c2f4e1a-7b3d-4c8e-a1f0-5d6e7f8a9b0c"
          },
          "name": {
            "type": "string",
            "description": "Name of the tag.",
            "example": "VIP"
          }
        }
      },
      "CustomField": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "The custom field this value belongs to.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "The custom field this value belongs to.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field of the audience.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/3a8c5e21-9b47-4d06-a2f1-c7e0d4b96385"
          },
          "value": {
            "type": "string",
            "description": "Value for the field, in the format of its type.",
            "example": "Madrid"
          }
        }
      },
      "CustomField-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field of the audience.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/3a8c5e21-9b47-4d06-a2f1-c7e0d4b96385"
          },
          "value": {
            "type": "string",
            "description": "Value for the field, in the format of its type.",
            "example": "Madrid"
          }
        }
      },
      "CustomField-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "The custom field this value belongs to.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListField-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field (`/audiences/{audienceUuid}/list_fields/{uuid}`). Get it from `list_audience_custom_fields`.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          },
          "value": {
            "type": "string",
            "description": "Value to store. Its type depends on the custom field (text, number, boolean, date, option value).",
            "example": "Acme"
          }
        }
      },
      "CustomField.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "list_field": {
            "description": "The custom field this value belongs to.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "list_field": {
            "description": "The custom field this value belongs to.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField.jsonld-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field of the audience.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/3a8c5e21-9b47-4d06-a2f1-c7e0d4b96385"
          },
          "value": {
            "type": "string",
            "description": "Value for the field, in the format of its type.",
            "example": "Madrid"
          }
        }
      },
      "CustomField.jsonld-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field of the audience.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/3a8c5e21-9b47-4d06-a2f1-c7e0d4b96385"
          },
          "value": {
            "type": "string",
            "description": "Value for the field, in the format of its type.",
            "example": "Madrid"
          }
        }
      },
      "CustomField.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "list_field": {
            "description": "The custom field this value belongs to.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListField.jsonld-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "value": {
            "type": "string",
            "description": "Value",
            "example": "Peter"
          }
        }
      },
      "CustomField.jsonld-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field (`/audiences/{audienceUuid}/list_fields/{uuid}`). Get it from `list_audience_custom_fields`.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          },
          "value": {
            "type": "string",
            "description": "Value to store. Its type depends on the custom field (text, number, boolean, date, option value).",
            "example": "Acme"
          }
        }
      },
      "CustomFieldTranslationInput-list_field.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Intereses"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Temas que te interesan"
          }
        }
      },
      "CustomFieldTranslationInput.jsonld-list_field.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Intereses"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Temas que te interesan"
          }
        }
      },
      "CustomFontDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "CustomFontDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "CustomFontDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "CustomFontDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "CustomFontDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "CustomFontDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "font_family",
          "url",
          "font_weight"
        ],
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "description": "Font name",
            "example": "Brand Font"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'BrandFont', sans-serif"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Font CSS URL (required for custom fonts)",
            "example": "https://fonts.googleapis.com/css2?family=BrandFont:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights. Keys are weight values (e.g., \"400\", \"700\"), values are labels (e.g., \"Regular\", \"Bold\")",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "Customer-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "email"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the customer. It cannot be changed later.",
            "example": "customer-1042"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the customer. It must be unique within the store.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format.",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Company the customer works for.",
            "example": "Acme"
          },
          "firstname": {
            "type": "string",
            "description": "First name of the customer.",
            "example": "Ana"
          },
          "lastname": {
            "type": "string",
            "description": "Last name of the customer.",
            "example": "García"
          },
          "member_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-customer.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Consent given by the customer, recorded on the audience member. Only used when the audience has GDPR enabled; omit it if the customer gave no consent."
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-customer.create"
            },
            "description": "Values for custom fields of the audience. Each item has `list_field`, the IRI of the field (`/audiences/{audienceUuid}/list_fields/{uuid}`), and its `value`."
          }
        }
      },
      "Customer-customer.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "email"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the customer",
            "example": "id"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Customer email"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Customer company"
          },
          "firstname": {
            "type": "string",
            "description": "Customer firstname"
          },
          "lastname": {
            "type": "string",
            "description": "Customer lastname"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Customer-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the customer. It must be unique within the store.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format.",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Company the customer works for.",
            "example": "Acme"
          },
          "firstname": {
            "type": "string",
            "description": "First name of the customer.",
            "example": "Ana"
          },
          "lastname": {
            "type": "string",
            "description": "Last name of the customer.",
            "example": "García"
          },
          "member_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-customer.update"
              },
              {
                "type": "null"
              }
            ],
            "description": "Consent given by the customer, recorded on the audience member. Only used when the audience has GDPR enabled; omit it if the customer gave no consent."
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-customer.update"
            },
            "description": "Values for custom fields of the audience. Each item has `list_field`, the IRI of the field (`/audiences/{audienceUuid}/list_fields/{uuid}`), and its `value`."
          }
        }
      },
      "Customer.jsonld-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "email"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the customer. It cannot be changed later.",
            "example": "customer-1042"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the customer. It must be unique within the store.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format.",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Company the customer works for.",
            "example": "Acme"
          },
          "firstname": {
            "type": "string",
            "description": "First name of the customer.",
            "example": "Ana"
          },
          "lastname": {
            "type": "string",
            "description": "Last name of the customer.",
            "example": "García"
          },
          "member_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-customer.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Consent given by the customer, recorded on the audience member. Only used when the audience has GDPR enabled; omit it if the customer gave no consent."
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-customer.create"
            },
            "description": "Values for custom fields of the audience. Each item has `list_field`, the IRI of the field (`/audiences/{audienceUuid}/list_fields/{uuid}`), and its `value`."
          }
        }
      },
      "Customer.jsonld-customer.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "email"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the customer",
            "example": "id"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Customer email"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Customer company"
          },
          "firstname": {
            "type": "string",
            "description": "Customer firstname"
          },
          "lastname": {
            "type": "string",
            "description": "Customer lastname"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Customer.jsonld-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email of the customer. It must be unique within the store.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format.",
            "example": "+34612345678"
          },
          "company": {
            "type": "string",
            "description": "Company the customer works for.",
            "example": "Acme"
          },
          "firstname": {
            "type": "string",
            "description": "First name of the customer.",
            "example": "Ana"
          },
          "lastname": {
            "type": "string",
            "description": "Last name of the customer.",
            "example": "García"
          },
          "member_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-customer.update"
              },
              {
                "type": "null"
              }
            ],
            "description": "Consent given by the customer, recorded on the audience member. Only used when the audience has GDPR enabled; omit it if the customer gave no consent."
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-customer.update"
            },
            "description": "Values for custom fields of the audience. Each item has `list_field`, the IRI of the field (`/audiences/{audienceUuid}/list_fields/{uuid}`), and its `value`."
          }
        }
      },
      "DataManager-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "email"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Firstname and lastname or Company name"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address"
          }
        }
      },
      "DataManager-data_manager.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Firstname and lastname or Company name"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address"
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "DataManager-data_manager.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "email"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Person or company responsible for the data, as it must appear in the legal texts.",
            "example": "Acme Corp S.L."
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email of the data manager.",
            "example": "privacy@acme.example.com"
          }
        }
      },
      "DataManager.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "email"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Firstname and lastname or Company name"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address"
          }
        }
      },
      "DataManager.jsonld-data_manager.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Firstname and lastname or Company name"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address"
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "DataManager.jsonld-data_manager.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "email"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Person or company responsible for the data, as it must appear in the legal texts.",
            "example": "Acme Corp S.L."
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email of the data manager.",
            "example": "privacy@acme.example.com"
          }
        }
      },
      "DefaultFontDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Font name",
            "example": "Roboto"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'Roboto', Tahoma, Verdana, Segoe, sans-serif"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Font CSS URL (only for Google Fonts, system fonts do not have URL)",
            "example": "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "DefaultFontDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Font name",
            "example": "Roboto"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family value",
            "example": "'Roboto', Tahoma, Verdana, Segoe, sans-serif"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Font CSS URL (only for Google Fonts, system fonts do not have URL)",
            "example": "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
          },
          "font_weight": {
            "type": "object",
            "description": "Available font weights",
            "example": {
              "400": "Regular",
              "700": "Bold"
            }
          },
          "active": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the font is active"
          }
        }
      },
      "DelayAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "delay_value": {
            "description": "Amount of time to wait, in units of `delay_unit`. Required for the relative waits (minutes, hours, days or weeks).",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "type": "string",
            "description": "Kind of wait: a relative amount of time (minutes, hours, days or weeks) or a fixed moment (a time of day, weekdays, a day of the month or a calendar date).",
            "enum": [
              "minute",
              "hour",
              "day",
              "week",
              "specific_time",
              "specific_day_week",
              "specific_day_month",
              "specific_day_year"
            ],
            "example": "day"
          },
          "time_hour": {
            "description": "Hour of the day (24-hour clock) when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 9,
            "type": [
              "integer",
              "null"
            ]
          },
          "time_minute": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minute of the hour when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 0
          },
          "day_week": {
            "type": "array",
            "description": "Weekdays on which the contact may continue (0 = Sunday, 1 = Monday, ... 6 = Saturday). Required for the weekday wait. Known issue: the engine that resumes the contact reads weekday names, so this wait may leave the contact stuck; prefer another unit.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 6
            },
            "example": [
              1,
              3,
              5
            ]
          },
          "day_month": {
            "description": "Day of the month on which the wait ends; 0 means the last day of the month. Required for the day-of-month wait.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "date_year": {
            "description": "Calendar date and time when the wait ends, in the contact's time zone. It must be later than the start of today; if the moment has already passed, the contact continues at once. Required for the calendar-date wait.",
            "example": "2027-01-15T09:00:00",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "DelayAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "delay_value": {
            "description": "Amount of time to wait, in units of `delay_unit`. Required for the relative waits (minutes, hours, days or weeks).",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "type": "string",
            "description": "Kind of wait: a relative amount of time (minutes, hours, days or weeks) or a fixed moment (a time of day, weekdays, a day of the month or a calendar date).",
            "enum": [
              "minute",
              "hour",
              "day",
              "week",
              "specific_time",
              "specific_day_week",
              "specific_day_month",
              "specific_day_year"
            ],
            "example": "day"
          },
          "time_hour": {
            "description": "Hour of the day (24-hour clock) when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 9,
            "type": [
              "integer",
              "null"
            ]
          },
          "time_minute": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minute of the hour when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 0
          },
          "day_week": {
            "type": "array",
            "description": "Weekdays on which the contact may continue (0 = Sunday, 1 = Monday, ... 6 = Saturday). Required for the weekday wait. Known issue: the engine that resumes the contact reads weekday names, so this wait may leave the contact stuck; prefer another unit.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 6
            },
            "example": [
              1,
              3,
              5
            ]
          },
          "day_month": {
            "description": "Day of the month on which the wait ends; 0 means the last day of the month. Required for the day-of-month wait.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "date_year": {
            "description": "Calendar date and time when the wait ends, in the contact's time zone. It must be later than the start of today; if the moment has already passed, the contact continues at once. Required for the calendar-date wait.",
            "example": "2027-01-15T09:00:00",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "DelayAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "delay_value": {
            "description": "Amount of time to wait, in units of `delay_unit`. Required for the relative waits (minutes, hours, days or weeks).",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "type": "string",
            "description": "Kind of wait: a relative amount of time (minutes, hours, days or weeks) or a fixed moment (a time of day, weekdays, a day of the month or a calendar date).",
            "enum": [
              "minute",
              "hour",
              "day",
              "week",
              "specific_time",
              "specific_day_week",
              "specific_day_month",
              "specific_day_year"
            ],
            "example": "day"
          },
          "time_hour": {
            "description": "Hour of the day (24-hour clock) when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 9,
            "type": [
              "integer",
              "null"
            ]
          },
          "time_minute": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minute of the hour when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 0
          },
          "day_week": {
            "type": "array",
            "description": "Weekdays on which the contact may continue (0 = Sunday, 1 = Monday, ... 6 = Saturday). Required for the weekday wait. Known issue: the engine that resumes the contact reads weekday names, so this wait may leave the contact stuck; prefer another unit.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 6
            },
            "example": [
              1,
              3,
              5
            ]
          },
          "day_month": {
            "description": "Day of the month on which the wait ends; 0 means the last day of the month. Required for the day-of-month wait.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "date_year": {
            "description": "Calendar date and time when the wait ends, in the contact's time zone. It must be later than the start of today; if the moment has already passed, the contact continues at once. Required for the calendar-date wait.",
            "example": "2027-01-15T09:00:00",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "DelayAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "delay_value": {
            "description": "Amount of time to wait, in units of `delay_unit`. Required for the relative waits (minutes, hours, days or weeks).",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          },
          "delay_unit": {
            "type": "string",
            "description": "Kind of wait: a relative amount of time (minutes, hours, days or weeks) or a fixed moment (a time of day, weekdays, a day of the month or a calendar date).",
            "enum": [
              "minute",
              "hour",
              "day",
              "week",
              "specific_time",
              "specific_day_week",
              "specific_day_month",
              "specific_day_year"
            ],
            "example": "day"
          },
          "time_hour": {
            "description": "Hour of the day (24-hour clock) when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 9,
            "type": [
              "integer",
              "null"
            ]
          },
          "time_minute": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minute of the hour when the wait ends. Required for the fixed-moment waits except the calendar date.",
            "example": 0
          },
          "day_week": {
            "type": "array",
            "description": "Weekdays on which the contact may continue (0 = Sunday, 1 = Monday, ... 6 = Saturday). Required for the weekday wait. Known issue: the engine that resumes the contact reads weekday names, so this wait may leave the contact stuck; prefer another unit.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 6
            },
            "example": [
              1,
              3,
              5
            ]
          },
          "day_month": {
            "description": "Day of the month on which the wait ends; 0 means the last day of the month. Required for the day-of-month wait.",
            "example": 15,
            "type": [
              "integer",
              "null"
            ]
          },
          "date_year": {
            "description": "Calendar date and time when the wait ends, in the contact's time zone. It must be later than the start of today; if the moment has already passed, the contact continues at once. Required for the calendar-date wait.",
            "example": "2027-01-15T09:00:00",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "DesignSetting-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Design setting title/name",
            "example": "My Brand Style"
          },
          "color_palette": {
            "type": "array",
            "description": "Color palette with brand colors",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent"
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6"
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto-design_setting.read"
            }
          },
          "default_fonts": {
            "description": "Pre-configured system and Google Fonts. Read-only, always available.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DefaultFontDto-design_setting.read"
            }
          },
          "custom_fonts": {
            "description": "Custom fonts added by user. Requires name, fontFamily, url and fontWeight.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto-design_setting.read"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "logo_light_url": {
            "type": "string",
            "format": "uri",
            "description": "URL of the standard logo, designed to be placed on LIGHT backgrounds (usually a dark-coloured logo). Use it on white or light rows."
          },
          "logo_dark_url": {
            "type": "string",
            "format": "uri",
            "description": "URL of the inverted logo, designed to be placed on DARK backgrounds (usually a white or light-coloured logo). Use it on dark rows."
          },
          "default": {
            "type": "boolean",
            "description": "Whether this is the default design setting"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "DesignSetting.CreateFromUrlInput-design_setting.from_url": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "website_url"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "website_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the website to read the brand from.",
            "example": "https://acme.example.com"
          }
        }
      },
      "DesignSetting.CreateFromUrlInput.jsonld-design_setting.from_url": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "website_url"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "website_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the website to read the brand from.",
            "example": "https://acme.example.com"
          }
        }
      },
      "DesignSetting.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Design setting title/name",
            "example": "My Brand Style"
          },
          "color_palette": {
            "type": "array",
            "description": "Color palette with brand colors",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent"
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6"
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto.jsonld-design_setting.read"
            }
          },
          "default_fonts": {
            "description": "Pre-configured system and Google Fonts. Read-only, always available.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DefaultFontDto.jsonld-design_setting.read"
            }
          },
          "custom_fonts": {
            "description": "Custom fonts added by user. Requires name, fontFamily, url and fontWeight.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto.jsonld-design_setting.read"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "logo_light_url": {
            "type": "string",
            "format": "uri",
            "description": "URL of the standard logo, designed to be placed on LIGHT backgrounds (usually a dark-coloured logo). Use it on white or light rows."
          },
          "logo_dark_url": {
            "type": "string",
            "format": "uri",
            "description": "URL of the inverted logo, designed to be placed on DARK backgrounds (usually a white or light-coloured logo). Use it on dark rows."
          },
          "default": {
            "type": "boolean",
            "description": "Whether this is the default design setting"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Email-email.list": {
        "type": "object",
        "description": "Synchronized emails of a record in the public API (fase 5). Generated from the proposal by\nfase-5/tools/gen_emails_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\nBoth operations need exactly one record in the query (`contact`, `company` or `opportunity`): the privacy of an\nemail (Bcc, visible edges, the open window of an opportunity) is decided per record, so there is no lookup of an\nemail on its own. The fields above the access level travel as `null`, never absent (`skip_null_values: false`).\n\n`list_emails` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published.\nThe images embedded in the body and the attachments are other resources (EmailInlineImagesResource and\nEmailAttachmentContentResource): they read Gmail in the request.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email was sent or received, ISO 8601 (UTC).",
            "example": "2026-10-29T10:42:00+00:00"
          },
          "direction": {
            "type": "string",
            "$ref": "#/components/schemas/EmailDirection",
            "description": "`incoming` if it was received in the mailbox, `outgoing` if it was sent from it.",
            "example": "incoming"
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/EmailAccessLevel",
            "description": "What the user may see of this email, decided by the sharing level of the mailbox that holds it, the user's own mailboxes and the grants given to them. `metadata_only`: participants and date. `subject_and_metadata`: also the subject. `full_access`: also the snippet, body, attachments and AI summary. A field above the level comes as `null`, never absent.",
            "example": "full_access"
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "address": {
                "type": "string",
                "description": "Email address of the participant.",
                "example": "ana@acme.com"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                "example": "Ana Ruiz"
              },
              "role": {
                "$ref": "#/components/schemas/EmailParticipantRole",
                "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                "example": "from"
              },
              "kind": {
                "$ref": "#/components/schemas/EmailParticipantKind",
                "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                "example": "contact"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                "example": "https://example.com/avatars/ana.png"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            },
            "description": "The `from` participant; `null` if the email has none visible.",
            "example": {
              "address": "ana@acme.com",
              "name": "Ana Ruiz",
              "role": "from",
              "kind": "contact",
              "avatar_url": null,
              "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            }
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string",
                  "description": "Email address of the participant.",
                  "example": "ana@acme.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                  "example": "Ana Ruiz"
                },
                "role": {
                  "$ref": "#/components/schemas/EmailParticipantRole",
                  "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                  "example": "from"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailParticipantKind",
                  "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                  "example": "contact"
                },
                "avatar_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                  "example": "https://example.com/avatars/ana.png"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Everyone in the email (`from`, `to`, `cc` and, for the owner of the mailbox, `bcc`).",
            "example": [
              {
                "address": "ana@acme.com",
                "name": "Ana Ruiz",
                "role": "from",
                "kind": "contact",
                "avatar_url": null,
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              {
                "address": "sergio@easymailing.com",
                "name": "Sergio Gallego",
                "role": "to",
                "kind": "member",
                "avatar_url": null,
                "contact": null
              }
            ]
          },
          "sent_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the member who sent it.",
                "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
              },
              "name": {
                "type": "string",
                "description": "Name of that member.",
                "example": "Jhon Martin"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of that member.",
                "example": "https://example.com/avatars/jhon.png"
              }
            },
            "description": "The member who sent it from the CRM when the sender is a shared mailbox (for example \"sales@, sent by Jhon\"); `null` otherwise, also when it was written in Gmail.",
            "example": {
              "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
              "name": "Jhon Martin",
              "avatar_url": "https://example.com/avatars/jhon.png"
            }
          },
          "mailboxes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the mailbox (the connected Google account). Use it as the `mailbox` filter of `list_emails`.",
                  "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
                },
                "address": {
                  "type": "string",
                  "description": "Email address of the mailbox.",
                  "example": "sergio@easymailing.com"
                },
                "owner_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member who connected the mailbox; `null` when they are no longer a member.",
                  "example": "Sergio Gallego"
                }
              }
            },
            "description": "The readable mailboxes that hold the email. The one that gives the user's access level comes first.",
            "example": [
              {
                "uuid": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
                "address": "sergio@easymailing.com",
                "owner_name": "Sergio Gallego"
              }
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. `null` when the access level is `metadata_only` or the content has not been retrieved yet (see `content_state`).",
            "example": "Re: Annual plan proposal"
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the text. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio, we would like to move forward with the annual plan..."
          },
          "attachment_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of attachments, not counting images embedded in the body. `null` without `full_access`.",
            "example": 1,
            "minimum": 0
          },
          "content_state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailContentState",
            "description": "Whether Easymailing already has the content. `index_only`: only participants and date are stored; the content is requested when you list it, so read again in a moment. `hydrating`: the content is being downloaded from Gmail. `full`: stored. `unavailable`: Gmail no longer has it and it cannot be recovered. While it is not `full`, subject, snippet and body come as `null`, which is not the same as being hidden by `access`.",
            "example": "full"
          },
          "can_share": {
            "type": "boolean",
            "description": "Whether the user owns a mailbox that holds this email and can therefore share it with `set_email_access_grants`. People who were given access can never share it again.",
            "example": true
          },
          "ai_summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "AI summary of one or two sentences in the language of the email. Only when `ai_summary_state` is `ready`; `null` otherwise.",
            "example": "Ana accepts the annual plan and asks for quarterly invoices."
          },
          "ai_summary_state": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailAiSummaryState"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` when the email cannot carry a summary: it is outgoing, its content is not complete, the user lacks `full_access`, or AI summaries are off or not in the plan. Otherwise `none` (never requested), `pending`, `ready` or `failed`.",
            "example": "ready"
          }
        }
      },
      "Email-email.read": {
        "type": "object",
        "description": "Synchronized emails of a record in the public API (fase 5). Generated from the proposal by\nfase-5/tools/gen_emails_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\nBoth operations need exactly one record in the query (`contact`, `company` or `opportunity`): the privacy of an\nemail (Bcc, visible edges, the open window of an opportunity) is decided per record, so there is no lookup of an\nemail on its own. The fields above the access level travel as `null`, never absent (`skip_null_values: false`).\n\n`list_emails` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published.\nThe images embedded in the body and the attachments are other resources (EmailInlineImagesResource and\nEmailAttachmentContentResource): they read Gmail in the request.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email was sent or received, ISO 8601 (UTC).",
            "example": "2026-10-29T10:42:00+00:00"
          },
          "direction": {
            "type": "string",
            "$ref": "#/components/schemas/EmailDirection",
            "description": "`incoming` if it was received in the mailbox, `outgoing` if it was sent from it.",
            "example": "incoming"
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/EmailAccessLevel",
            "description": "What the user may see of this email, decided by the sharing level of the mailbox that holds it, the user's own mailboxes and the grants given to them. `metadata_only`: participants and date. `subject_and_metadata`: also the subject. `full_access`: also the snippet, body, attachments and AI summary. A field above the level comes as `null`, never absent.",
            "example": "full_access"
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "address": {
                "type": "string",
                "description": "Email address of the participant.",
                "example": "ana@acme.com"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                "example": "Ana Ruiz"
              },
              "role": {
                "$ref": "#/components/schemas/EmailParticipantRole",
                "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                "example": "from"
              },
              "kind": {
                "$ref": "#/components/schemas/EmailParticipantKind",
                "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                "example": "contact"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                "example": "https://example.com/avatars/ana.png"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            },
            "description": "The `from` participant; `null` if the email has none visible.",
            "example": {
              "address": "ana@acme.com",
              "name": "Ana Ruiz",
              "role": "from",
              "kind": "contact",
              "avatar_url": null,
              "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            }
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string",
                  "description": "Email address of the participant.",
                  "example": "ana@acme.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                  "example": "Ana Ruiz"
                },
                "role": {
                  "$ref": "#/components/schemas/EmailParticipantRole",
                  "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                  "example": "from"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailParticipantKind",
                  "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                  "example": "contact"
                },
                "avatar_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                  "example": "https://example.com/avatars/ana.png"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Everyone in the email (`from`, `to`, `cc` and, for the owner of the mailbox, `bcc`).",
            "example": [
              {
                "address": "ana@acme.com",
                "name": "Ana Ruiz",
                "role": "from",
                "kind": "contact",
                "avatar_url": null,
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              {
                "address": "sergio@easymailing.com",
                "name": "Sergio Gallego",
                "role": "to",
                "kind": "member",
                "avatar_url": null,
                "contact": null
              }
            ]
          },
          "sent_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the member who sent it.",
                "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
              },
              "name": {
                "type": "string",
                "description": "Name of that member.",
                "example": "Jhon Martin"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of that member.",
                "example": "https://example.com/avatars/jhon.png"
              }
            },
            "description": "The member who sent it from the CRM when the sender is a shared mailbox (for example \"sales@, sent by Jhon\"); `null` otherwise, also when it was written in Gmail.",
            "example": {
              "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
              "name": "Jhon Martin",
              "avatar_url": "https://example.com/avatars/jhon.png"
            }
          },
          "mailboxes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the mailbox (the connected Google account). Use it as the `mailbox` filter of `list_emails`.",
                  "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
                },
                "address": {
                  "type": "string",
                  "description": "Email address of the mailbox.",
                  "example": "sergio@easymailing.com"
                },
                "owner_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member who connected the mailbox; `null` when they are no longer a member.",
                  "example": "Sergio Gallego"
                }
              }
            },
            "description": "The readable mailboxes that hold the email. The one that gives the user's access level comes first.",
            "example": [
              {
                "uuid": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
                "address": "sergio@easymailing.com",
                "owner_name": "Sergio Gallego"
              }
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. `null` when the access level is `metadata_only` or the content has not been retrieved yet (see `content_state`).",
            "example": "Re: Annual plan proposal"
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the text. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio, we would like to move forward with the annual plan..."
          },
          "attachment_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of attachments, not counting images embedded in the body. `null` without `full_access`.",
            "example": 1,
            "minimum": 0
          },
          "content_state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailContentState",
            "description": "Whether Easymailing already has the content. `index_only`: only participants and date are stored; the content is requested when you list it, so read again in a moment. `hydrating`: the content is being downloaded from Gmail. `full`: stored. `unavailable`: Gmail no longer has it and it cannot be recovered. While it is not `full`, subject, snippet and body come as `null`, which is not the same as being hidden by `access`.",
            "example": "full"
          },
          "can_share": {
            "type": "boolean",
            "description": "Whether the user owns a mailbox that holds this email and can therefore share it with `set_email_access_grants`. People who were given access can never share it again.",
            "example": true
          },
          "ai_summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "AI summary of one or two sentences in the language of the email. Only when `ai_summary_state` is `ready`; `null` otherwise.",
            "example": "Ana accepts the annual plan and asks for quarterly invoices."
          },
          "ai_summary_state": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailAiSummaryState"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` when the email cannot carry a summary: it is outgoing, its content is not complete, the user lacks `full_access`, or AI summaries are off or not in the plan. Otherwise `none` (never requested), `pending`, `ready` or `failed`.",
            "example": "ready"
          },
          "body_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plain-text body. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio,\n\nWe would like to move forward with the annual plan. Can you invoice us quarterly?\n\nAna"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTML body, cleaned on the server. Images embedded in the message are marked with `data-em-inline=\"<attachment uuid>\"` instead of a source; fetch them with `get_email_inline_images`. `null` without `full_access` or when the email has no HTML.",
            "example": "<p>Thanks Sergio,</p><p>We would like to move forward with the annual plan.</p>"
          },
          "body_truncated": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the stored body was cut because the email was very large. `null` without `full_access`.",
            "example": false
          },
          "attachments": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the attachment. Use it with `get_email_attachment_content`.",
                  "example": "d4e3f0a6-74c9-4b31-a028-9fbc4e6d3157"
                },
                "filename": {
                  "type": "string",
                  "description": "File name given by the sender, cleaned of path separators and control characters.",
                  "example": "proposal.pdf"
                },
                "mime_type": {
                  "type": "string",
                  "description": "Type declared by the sender.",
                  "example": "application/pdf"
                },
                "size_bytes": {
                  "type": "integer",
                  "description": "Size declared by Google, in bytes.",
                  "example": 184320,
                  "minimum": 0
                },
                "disposition": {
                  "$ref": "#/components/schemas/EmailAttachmentDisposition",
                  "description": "How the sender attached it.",
                  "example": "attachment"
                },
                "embedded": {
                  "type": "boolean",
                  "description": "Whether it is an image of the body (a raster image with a Content-ID in an HTML email). Embedded images are not counted in `attachment_count`; read them with `get_email_inline_images`.",
                  "example": false
                }
              }
            },
            "description": "Every attachment part, including embedded images (`embedded: true`). `null` without `full_access`.",
            "example": [
              {
                "uuid": "d4e3f0a6-74c9-4b31-a028-9fbc4e6d3157",
                "filename": "proposal.pdf",
                "mime_type": "application/pdf",
                "size_bytes": 184320,
                "disposition": "attachment",
                "embedded": false
              }
            ]
          }
        }
      },
      "Email.jsonld-email.list": {
        "type": "object",
        "description": "Synchronized emails of a record in the public API (fase 5). Generated from the proposal by\nfase-5/tools/gen_emails_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\nBoth operations need exactly one record in the query (`contact`, `company` or `opportunity`): the privacy of an\nemail (Bcc, visible edges, the open window of an opportunity) is decided per record, so there is no lookup of an\nemail on its own. The fields above the access level travel as `null`, never absent (`skip_null_values: false`).\n\n`list_emails` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published.\nThe images embedded in the body and the attachments are other resources (EmailInlineImagesResource and\nEmailAttachmentContentResource): they read Gmail in the request.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email was sent or received, ISO 8601 (UTC).",
            "example": "2026-10-29T10:42:00+00:00"
          },
          "direction": {
            "type": "string",
            "$ref": "#/components/schemas/EmailDirection",
            "description": "`incoming` if it was received in the mailbox, `outgoing` if it was sent from it.",
            "example": "incoming"
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/EmailAccessLevel",
            "description": "What the user may see of this email, decided by the sharing level of the mailbox that holds it, the user's own mailboxes and the grants given to them. `metadata_only`: participants and date. `subject_and_metadata`: also the subject. `full_access`: also the snippet, body, attachments and AI summary. A field above the level comes as `null`, never absent.",
            "example": "full_access"
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "address": {
                "type": "string",
                "description": "Email address of the participant.",
                "example": "ana@acme.com"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                "example": "Ana Ruiz"
              },
              "role": {
                "$ref": "#/components/schemas/EmailParticipantRole",
                "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                "example": "from"
              },
              "kind": {
                "$ref": "#/components/schemas/EmailParticipantKind",
                "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                "example": "contact"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                "example": "https://example.com/avatars/ana.png"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            },
            "description": "The `from` participant; `null` if the email has none visible.",
            "example": {
              "address": "ana@acme.com",
              "name": "Ana Ruiz",
              "role": "from",
              "kind": "contact",
              "avatar_url": null,
              "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            }
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string",
                  "description": "Email address of the participant.",
                  "example": "ana@acme.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                  "example": "Ana Ruiz"
                },
                "role": {
                  "$ref": "#/components/schemas/EmailParticipantRole",
                  "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                  "example": "from"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailParticipantKind",
                  "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                  "example": "contact"
                },
                "avatar_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                  "example": "https://example.com/avatars/ana.png"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Everyone in the email (`from`, `to`, `cc` and, for the owner of the mailbox, `bcc`).",
            "example": [
              {
                "address": "ana@acme.com",
                "name": "Ana Ruiz",
                "role": "from",
                "kind": "contact",
                "avatar_url": null,
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              {
                "address": "sergio@easymailing.com",
                "name": "Sergio Gallego",
                "role": "to",
                "kind": "member",
                "avatar_url": null,
                "contact": null
              }
            ]
          },
          "sent_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the member who sent it.",
                "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
              },
              "name": {
                "type": "string",
                "description": "Name of that member.",
                "example": "Jhon Martin"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of that member.",
                "example": "https://example.com/avatars/jhon.png"
              }
            },
            "description": "The member who sent it from the CRM when the sender is a shared mailbox (for example \"sales@, sent by Jhon\"); `null` otherwise, also when it was written in Gmail.",
            "example": {
              "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
              "name": "Jhon Martin",
              "avatar_url": "https://example.com/avatars/jhon.png"
            }
          },
          "mailboxes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the mailbox (the connected Google account). Use it as the `mailbox` filter of `list_emails`.",
                  "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
                },
                "address": {
                  "type": "string",
                  "description": "Email address of the mailbox.",
                  "example": "sergio@easymailing.com"
                },
                "owner_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member who connected the mailbox; `null` when they are no longer a member.",
                  "example": "Sergio Gallego"
                }
              }
            },
            "description": "The readable mailboxes that hold the email. The one that gives the user's access level comes first.",
            "example": [
              {
                "uuid": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
                "address": "sergio@easymailing.com",
                "owner_name": "Sergio Gallego"
              }
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. `null` when the access level is `metadata_only` or the content has not been retrieved yet (see `content_state`).",
            "example": "Re: Annual plan proposal"
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the text. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio, we would like to move forward with the annual plan..."
          },
          "attachment_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of attachments, not counting images embedded in the body. `null` without `full_access`.",
            "example": 1,
            "minimum": 0
          },
          "content_state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailContentState",
            "description": "Whether Easymailing already has the content. `index_only`: only participants and date are stored; the content is requested when you list it, so read again in a moment. `hydrating`: the content is being downloaded from Gmail. `full`: stored. `unavailable`: Gmail no longer has it and it cannot be recovered. While it is not `full`, subject, snippet and body come as `null`, which is not the same as being hidden by `access`.",
            "example": "full"
          },
          "can_share": {
            "type": "boolean",
            "description": "Whether the user owns a mailbox that holds this email and can therefore share it with `set_email_access_grants`. People who were given access can never share it again.",
            "example": true
          },
          "ai_summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "AI summary of one or two sentences in the language of the email. Only when `ai_summary_state` is `ready`; `null` otherwise.",
            "example": "Ana accepts the annual plan and asks for quarterly invoices."
          },
          "ai_summary_state": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailAiSummaryState"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` when the email cannot carry a summary: it is outgoing, its content is not complete, the user lacks `full_access`, or AI summaries are off or not in the plan. Otherwise `none` (never requested), `pending`, `ready` or `failed`.",
            "example": "ready"
          }
        }
      },
      "Email.jsonld-email.read": {
        "type": "object",
        "description": "Synchronized emails of a record in the public API (fase 5). Generated from the proposal by\nfase-5/tools/gen_emails_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\nBoth operations need exactly one record in the query (`contact`, `company` or `opportunity`): the privacy of an\nemail (Bcc, visible edges, the open window of an opportunity) is decided per record, so there is no lookup of an\nemail on its own. The fields above the access level travel as `null`, never absent (`skip_null_values: false`).\n\n`list_emails` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published.\nThe images embedded in the body and the attachments are other resources (EmailInlineImagesResource and\nEmailAttachmentContentResource): they read Gmail in the request.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email was sent or received, ISO 8601 (UTC).",
            "example": "2026-10-29T10:42:00+00:00"
          },
          "direction": {
            "type": "string",
            "$ref": "#/components/schemas/EmailDirection",
            "description": "`incoming` if it was received in the mailbox, `outgoing` if it was sent from it.",
            "example": "incoming"
          },
          "access": {
            "type": "string",
            "$ref": "#/components/schemas/EmailAccessLevel",
            "description": "What the user may see of this email, decided by the sharing level of the mailbox that holds it, the user's own mailboxes and the grants given to them. `metadata_only`: participants and date. `subject_and_metadata`: also the subject. `full_access`: also the snippet, body, attachments and AI summary. A field above the level comes as `null`, never absent.",
            "example": "full_access"
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "address": {
                "type": "string",
                "description": "Email address of the participant.",
                "example": "ana@acme.com"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                "example": "Ana Ruiz"
              },
              "role": {
                "$ref": "#/components/schemas/EmailParticipantRole",
                "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                "example": "from"
              },
              "kind": {
                "$ref": "#/components/schemas/EmailParticipantKind",
                "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                "example": "contact"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                "example": "https://example.com/avatars/ana.png"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            },
            "description": "The `from` participant; `null` if the email has none visible.",
            "example": {
              "address": "ana@acme.com",
              "name": "Ana Ruiz",
              "role": "from",
              "kind": "contact",
              "avatar_url": null,
              "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            }
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string",
                  "description": "Email address of the participant.",
                  "example": "ana@acme.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member or contact when it has one; otherwise the display name in the email header; `null` without either.",
                  "example": "Ana Ruiz"
                },
                "role": {
                  "$ref": "#/components/schemas/EmailParticipantRole",
                  "description": "Role in the email. A `bcc` is only shown to the owner of the mailbox through which it was revealed, never to anyone else.",
                  "example": "from"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailParticipantKind",
                  "description": "Who the address is for the reader, resolved when reading: `member` (an active member of the account), `shared_mailbox` (a shared mailbox such as sales@), `contact` (a CRM contact by its primary email or an alias), `internal` (internal address without identity, pending invitation or departed member) or `external`.",
                  "example": "contact"
                },
                "avatar_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Photo of the member or contact. `null` for `shared_mailbox`, `internal` and `external`. For a contact it may be a Gravatar URL derived from the email, which may not exist.",
                  "example": "https://example.com/avatars/ana.png"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact when `kind` is `contact`; `null` otherwise.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Everyone in the email (`from`, `to`, `cc` and, for the owner of the mailbox, `bcc`).",
            "example": [
              {
                "address": "ana@acme.com",
                "name": "Ana Ruiz",
                "role": "from",
                "kind": "contact",
                "avatar_url": null,
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              {
                "address": "sergio@easymailing.com",
                "name": "Sergio Gallego",
                "role": "to",
                "kind": "member",
                "avatar_url": null,
                "contact": null
              }
            ]
          },
          "sent_by": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the member who sent it.",
                "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
              },
              "name": {
                "type": "string",
                "description": "Name of that member.",
                "example": "Jhon Martin"
              },
              "avatar_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Photo of that member.",
                "example": "https://example.com/avatars/jhon.png"
              }
            },
            "description": "The member who sent it from the CRM when the sender is a shared mailbox (for example \"sales@, sent by Jhon\"); `null` otherwise, also when it was written in Gmail.",
            "example": {
              "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
              "name": "Jhon Martin",
              "avatar_url": "https://example.com/avatars/jhon.png"
            }
          },
          "mailboxes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the mailbox (the connected Google account). Use it as the `mailbox` filter of `list_emails`.",
                  "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
                },
                "address": {
                  "type": "string",
                  "description": "Email address of the mailbox.",
                  "example": "sergio@easymailing.com"
                },
                "owner_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the member who connected the mailbox; `null` when they are no longer a member.",
                  "example": "Sergio Gallego"
                }
              }
            },
            "description": "The readable mailboxes that hold the email. The one that gives the user's access level comes first.",
            "example": [
              {
                "uuid": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
                "address": "sergio@easymailing.com",
                "owner_name": "Sergio Gallego"
              }
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. `null` when the access level is `metadata_only` or the content has not been retrieved yet (see `content_state`).",
            "example": "Re: Annual plan proposal"
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the text. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio, we would like to move forward with the annual plan..."
          },
          "attachment_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of attachments, not counting images embedded in the body. `null` without `full_access`.",
            "example": 1,
            "minimum": 0
          },
          "content_state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailContentState",
            "description": "Whether Easymailing already has the content. `index_only`: only participants and date are stored; the content is requested when you list it, so read again in a moment. `hydrating`: the content is being downloaded from Gmail. `full`: stored. `unavailable`: Gmail no longer has it and it cannot be recovered. While it is not `full`, subject, snippet and body come as `null`, which is not the same as being hidden by `access`.",
            "example": "full"
          },
          "can_share": {
            "type": "boolean",
            "description": "Whether the user owns a mailbox that holds this email and can therefore share it with `set_email_access_grants`. People who were given access can never share it again.",
            "example": true
          },
          "ai_summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "AI summary of one or two sentences in the language of the email. Only when `ai_summary_state` is `ready`; `null` otherwise.",
            "example": "Ana accepts the annual plan and asks for quarterly invoices."
          },
          "ai_summary_state": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailAiSummaryState"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` when the email cannot carry a summary: it is outgoing, its content is not complete, the user lacks `full_access`, or AI summaries are off or not in the plan. Otherwise `none` (never requested), `pending`, `ready` or `failed`.",
            "example": "ready"
          },
          "body_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plain-text body. `null` without `full_access` or while the content is not retrieved.",
            "example": "Thanks Sergio,\n\nWe would like to move forward with the annual plan. Can you invoice us quarterly?\n\nAna"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTML body, cleaned on the server. Images embedded in the message are marked with `data-em-inline=\"<attachment uuid>\"` instead of a source; fetch them with `get_email_inline_images`. `null` without `full_access` or when the email has no HTML.",
            "example": "<p>Thanks Sergio,</p><p>We would like to move forward with the annual plan.</p>"
          },
          "body_truncated": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the stored body was cut because the email was very large. `null` without `full_access`.",
            "example": false
          },
          "attachments": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the attachment. Use it with `get_email_attachment_content`.",
                  "example": "d4e3f0a6-74c9-4b31-a028-9fbc4e6d3157"
                },
                "filename": {
                  "type": "string",
                  "description": "File name given by the sender, cleaned of path separators and control characters.",
                  "example": "proposal.pdf"
                },
                "mime_type": {
                  "type": "string",
                  "description": "Type declared by the sender.",
                  "example": "application/pdf"
                },
                "size_bytes": {
                  "type": "integer",
                  "description": "Size declared by Google, in bytes.",
                  "example": 184320,
                  "minimum": 0
                },
                "disposition": {
                  "$ref": "#/components/schemas/EmailAttachmentDisposition",
                  "description": "How the sender attached it.",
                  "example": "attachment"
                },
                "embedded": {
                  "type": "boolean",
                  "description": "Whether it is an image of the body (a raster image with a Content-ID in an HTML email). Embedded images are not counted in `attachment_count`; read them with `get_email_inline_images`.",
                  "example": false
                }
              }
            },
            "description": "Every attachment part, including embedded images (`embedded: true`). `null` without `full_access`.",
            "example": [
              {
                "uuid": "d4e3f0a6-74c9-4b31-a028-9fbc4e6d3157",
                "filename": "proposal.pdf",
                "mime_type": "application/pdf",
                "size_bytes": 184320,
                "disposition": "attachment",
                "embedded": false
              }
            ]
          }
        }
      },
      "EmailAccessGrantee-email_access_grantee.read": {
        "type": "object",
        "description": "`list_email_access_grantees` (fase 5): the members and teams the owner of a mailbox can share emails with. Generated\nfrom the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the member or team.",
            "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/EmailGranteeKind",
            "description": "Whether it is a member (`user`) or a team (`team`).",
            "example": "user"
          },
          "name": {
            "type": "string",
            "description": "Name of the member or the team.",
            "example": "Jhon Martin"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email of the member; `null` for a team.",
            "example": "jhon@easymailing.com"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the member; `null` for a team or without photo.",
            "example": "https://example.com/avatars/jhon.png"
          },
          "member_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Members of the team; `null` for a member.",
            "example": 4,
            "minimum": 0
          }
        }
      },
      "EmailAccessGrantee.jsonld-email_access_grantee.read": {
        "type": "object",
        "description": "`list_email_access_grantees` (fase 5): the members and teams the owner of a mailbox can share emails with. Generated\nfrom the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the member or team.",
            "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/EmailGranteeKind",
            "description": "Whether it is a member (`user`) or a team (`team`).",
            "example": "user"
          },
          "name": {
            "type": "string",
            "description": "Name of the member or the team.",
            "example": "Jhon Martin"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email of the member; `null` for a team.",
            "example": "jhon@easymailing.com"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the member; `null` for a team or without photo.",
            "example": "https://example.com/avatars/jhon.png"
          },
          "member_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Members of the team; `null` for a member.",
            "example": 4,
            "minimum": 0
          }
        }
      },
      "EmailAccessGrants-email_access_grants.read": {
        "type": "object",
        "description": "Who the owner of a mailbox shares one email, or the emails of the record it was reached through, with (fase 5).\nGenerated from the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's. Only the owner of a\nmailbox that holds the email reaches it; for anyone else the use case answers the same 404 as a missing email.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email the grants are read from.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "mailbox": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox of the user that holds the email, the one the user shares from.",
            "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailGrantRecordType",
            "description": "Kind of the record the request was made through.",
            "example": "contact"
          },
          "message": {
            "type": "object",
            "properties": {
              "users": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the member.",
                      "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the member.",
                      "example": "Jhon Martin"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Email of the member.",
                      "example": "jhon@easymailing.com"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the member.",
                      "example": "https://example.com/avatars/jhon.png"
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the member can also send from the mailbox, granted elsewhere. Sending implies full read access. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the member has been given full read access by the grant set being read or written.",
                      "example": true
                    }
                  }
                },
                "description": "Members with full read access.",
                "example": [
                  {
                    "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
                    "name": "Jhon Martin",
                    "email": "jhon@easymailing.com",
                    "avatar_url": null,
                    "can_send": false,
                    "read_full": true
                  }
                ]
              },
              "teams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the team.",
                      "example": "4e0fa067-dac2-4197-8684-f5b2aecd97bd"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the team.",
                      "example": "Sales"
                    },
                    "member_count": {
                      "type": "integer",
                      "description": "Number of members of the team.",
                      "example": 4,
                      "minimum": 0
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the team can also send from the mailbox, granted elsewhere. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the team has been given full read access by this grant set.",
                      "example": true
                    }
                  }
                },
                "description": "Teams with full read access.",
                "example": []
              }
            },
            "description": "Who has full read access to this one email.",
            "example": {
              "users": [
                {
                  "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
                  "name": "Jhon Martin",
                  "email": "jhon@easymailing.com",
                  "avatar_url": null,
                  "can_send": false,
                  "read_full": true
                }
              ],
              "teams": []
            }
          },
          "record": {
            "type": "object",
            "properties": {
              "users": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the member.",
                      "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the member.",
                      "example": "Jhon Martin"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Email of the member.",
                      "example": "jhon@easymailing.com"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the member.",
                      "example": "https://example.com/avatars/jhon.png"
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the member can also send from the mailbox, granted elsewhere. Sending implies full read access. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the member has been given full read access by the grant set being read or written.",
                      "example": true
                    }
                  }
                },
                "description": "Members with full read access to the emails of the record.",
                "example": []
              },
              "teams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the team.",
                      "example": "4e0fa067-dac2-4197-8684-f5b2aecd97bd"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the team.",
                      "example": "Sales"
                    },
                    "member_count": {
                      "type": "integer",
                      "description": "Number of members of the team.",
                      "example": 4,
                      "minimum": 0
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the team can also send from the mailbox, granted elsewhere. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the team has been given full read access by this grant set.",
                      "example": true
                    }
                  }
                },
                "description": "Teams with full read access to the emails of the record.",
                "example": [
                  {
                    "uuid": "4e0fa067-dac2-4197-8684-f5b2aecd97bd",
                    "name": "Sales",
                    "member_count": 4,
                    "can_send": false,
                    "read_full": true
                  }
                ]
              },
              "value_kind": {
                "$ref": "#/components/schemas/EmailGrantValueKind",
                "description": "What identifies the emails of the record: `address` (a contact or opportunity: email addresses) or `domain` (a company: domains).",
                "example": "address"
              },
              "not_included": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Addresses or domains the record has now that were not part of the record grant when it was given. Send `include_new: true` to cover them.",
                "example": [
                  "ana.ruiz@acme.com"
                ]
              }
            },
            "description": "Who has full read access to the emails of the record (all the emails of this mailbox tied to it), plus what is not covered yet.",
            "example": {
              "users": [],
              "teams": [
                {
                  "uuid": "4e0fa067-dac2-4197-8684-f5b2aecd97bd",
                  "name": "Sales",
                  "member_count": 4,
                  "can_send": false,
                  "read_full": true
                }
              ],
              "value_kind": "address",
              "not_included": [
                "ana.ruiz@acme.com"
              ]
            }
          }
        }
      },
      "EmailAccessGrants.EmailAccessGrantsInput": {
        "type": "object",
        "description": "Who the owner of a mailbox shares one email, or the emails of the record it was reached through, with (fase 5).\nGenerated from the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's. Only the owner of a\nmailbox that holds the email reaches it; for anyone else the use case answers the same 404 as a missing email.",
        "deprecated": false,
        "required": [
          "scope",
          "users",
          "teams"
        ],
        "properties": {
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailGrantScope",
            "description": "What the list applies to: `message` (only this email) or `record` (all the emails of this mailbox tied to the record in the query).",
            "example": "message"
          },
          "users": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "UUIDs of the members who get full read access. The complete list: members not here lose it. Up to 200. Use `[]` for none.",
            "example": [
              "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
            ]
          },
          "teams": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "UUIDs of the teams who get full read access. The complete list. Up to 200. Use `[]` for none.",
            "example": []
          },
          "include_new": {
            "type": "boolean",
            "description": "Only with `scope` `record`: also cover the addresses or domains the record has today that were not covered when it was first shared (see `not_included`). With `message` it has no effect. Default false.",
            "example": false,
            "default": false
          }
        }
      },
      "EmailAccessGrants.EmailAccessGrantsInput.jsonld": {
        "type": "object",
        "description": "Who the owner of a mailbox shares one email, or the emails of the record it was reached through, with (fase 5).\nGenerated from the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's. Only the owner of a\nmailbox that holds the email reaches it; for anyone else the use case answers the same 404 as a missing email.",
        "deprecated": false,
        "required": [
          "scope",
          "users",
          "teams"
        ],
        "properties": {
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailGrantScope",
            "description": "What the list applies to: `message` (only this email) or `record` (all the emails of this mailbox tied to the record in the query).",
            "example": "message"
          },
          "users": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "UUIDs of the members who get full read access. The complete list: members not here lose it. Up to 200. Use `[]` for none.",
            "example": [
              "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
            ]
          },
          "teams": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "UUIDs of the teams who get full read access. The complete list. Up to 200. Use `[]` for none.",
            "example": []
          },
          "include_new": {
            "type": "boolean",
            "description": "Only with `scope` `record`: also cover the addresses or domains the record has today that were not covered when it was first shared (see `not_included`). With `message` it has no effect. Default false.",
            "example": false,
            "default": false
          }
        }
      },
      "EmailAccessGrants.jsonld-email_access_grants.read": {
        "type": "object",
        "description": "Who the owner of a mailbox shares one email, or the emails of the record it was reached through, with (fase 5).\nGenerated from the proposal by fase-5/tools/gen_emails_api.py; the texts are the proposal's. Only the owner of a\nmailbox that holds the email reaches it; for anyone else the use case answers the same 404 as a missing email.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email the grants are read from.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "mailbox": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox of the user that holds the email, the one the user shares from.",
            "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailGrantRecordType",
            "description": "Kind of the record the request was made through.",
            "example": "contact"
          },
          "message": {
            "type": "object",
            "properties": {
              "users": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the member.",
                      "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the member.",
                      "example": "Jhon Martin"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Email of the member.",
                      "example": "jhon@easymailing.com"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the member.",
                      "example": "https://example.com/avatars/jhon.png"
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the member can also send from the mailbox, granted elsewhere. Sending implies full read access. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the member has been given full read access by the grant set being read or written.",
                      "example": true
                    }
                  }
                },
                "description": "Members with full read access.",
                "example": [
                  {
                    "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
                    "name": "Jhon Martin",
                    "email": "jhon@easymailing.com",
                    "avatar_url": null,
                    "can_send": false,
                    "read_full": true
                  }
                ]
              },
              "teams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the team.",
                      "example": "4e0fa067-dac2-4197-8684-f5b2aecd97bd"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the team.",
                      "example": "Sales"
                    },
                    "member_count": {
                      "type": "integer",
                      "description": "Number of members of the team.",
                      "example": 4,
                      "minimum": 0
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the team can also send from the mailbox, granted elsewhere. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the team has been given full read access by this grant set.",
                      "example": true
                    }
                  }
                },
                "description": "Teams with full read access.",
                "example": []
              }
            },
            "description": "Who has full read access to this one email.",
            "example": {
              "users": [
                {
                  "uuid": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b",
                  "name": "Jhon Martin",
                  "email": "jhon@easymailing.com",
                  "avatar_url": null,
                  "can_send": false,
                  "read_full": true
                }
              ],
              "teams": []
            }
          },
          "record": {
            "type": "object",
            "properties": {
              "users": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the member.",
                      "example": "1b8c7d4e-b8a0-4f75-a462-d3f08cab759b"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the member.",
                      "example": "Jhon Martin"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Email of the member.",
                      "example": "jhon@easymailing.com"
                    },
                    "avatar_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Photo of the member.",
                      "example": "https://example.com/avatars/jhon.png"
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the member can also send from the mailbox, granted elsewhere. Sending implies full read access. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the member has been given full read access by the grant set being read or written.",
                      "example": true
                    }
                  }
                },
                "description": "Members with full read access to the emails of the record.",
                "example": []
              },
              "teams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "UUID of the team.",
                      "example": "4e0fa067-dac2-4197-8684-f5b2aecd97bd"
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the team.",
                      "example": "Sales"
                    },
                    "member_count": {
                      "type": "integer",
                      "description": "Number of members of the team.",
                      "example": 4,
                      "minimum": 0
                    },
                    "can_send": {
                      "type": "boolean",
                      "description": "Whether the team can also send from the mailbox, granted elsewhere. This operation never changes it.",
                      "example": false
                    },
                    "read_full": {
                      "type": "boolean",
                      "description": "Whether the team has been given full read access by this grant set.",
                      "example": true
                    }
                  }
                },
                "description": "Teams with full read access to the emails of the record.",
                "example": [
                  {
                    "uuid": "4e0fa067-dac2-4197-8684-f5b2aecd97bd",
                    "name": "Sales",
                    "member_count": 4,
                    "can_send": false,
                    "read_full": true
                  }
                ]
              },
              "value_kind": {
                "$ref": "#/components/schemas/EmailGrantValueKind",
                "description": "What identifies the emails of the record: `address` (a contact or opportunity: email addresses) or `domain` (a company: domains).",
                "example": "address"
              },
              "not_included": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Addresses or domains the record has now that were not part of the record grant when it was given. Send `include_new: true` to cover them.",
                "example": [
                  "ana.ruiz@acme.com"
                ]
              }
            },
            "description": "Who has full read access to the emails of the record (all the emails of this mailbox tied to it), plus what is not covered yet.",
            "example": {
              "users": [],
              "teams": [
                {
                  "uuid": "4e0fa067-dac2-4197-8684-f5b2aecd97bd",
                  "name": "Sales",
                  "member_count": 4,
                  "can_send": false,
                  "read_full": true
                }
              ],
              "value_kind": "address",
              "not_included": [
                "ana.ruiz@acme.com"
              ]
            }
          }
        }
      },
      "EmailAttachment-email_attachment.read": {
        "type": "object",
        "description": "`upload_email_attachment` (fase 5): one file to attach to a draft or a send, stored under the UUID the caller chose.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. The body is the\nraw file (`deserialize: false`): the processor checks `Content-Type` before it opens the body, as `set_file_content`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attachment (the one you chose).",
            "example": "3a9e1f5b-0000-4000-8000-6c474d08b1ac"
          },
          "name": {
            "type": "string",
            "description": "File name.",
            "example": "proposal.pdf"
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size in bytes.",
            "example": 184233,
            "minimum": 1
          },
          "mime_type": {
            "type": "string",
            "description": "Detected media type.",
            "example": "application/pdf"
          }
        }
      },
      "EmailAttachment.jsonld-email_attachment.read": {
        "type": "object",
        "description": "`upload_email_attachment` (fase 5): one file to attach to a draft or a send, stored under the UUID the caller chose.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. The body is the\nraw file (`deserialize: false`): the processor checks `Content-Type` before it opens the body, as `set_file_content`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attachment (the one you chose).",
            "example": "3a9e1f5b-0000-4000-8000-6c474d08b1ac"
          },
          "name": {
            "type": "string",
            "description": "File name.",
            "example": "proposal.pdf"
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size in bytes.",
            "example": 184233,
            "minimum": 1
          },
          "mime_type": {
            "type": "string",
            "description": "Detected media type.",
            "example": "application/pdf"
          }
        }
      },
      "EmailBatch-email_batch.read": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the batch.",
            "example": "3a9e1f55-0000-4000-8000-6c474d08b1a6"
          },
          "release_at": {
            "type": "string",
            "format": "date-time",
            "description": "Release time of the first email of the batch (the others follow at least five minutes apart, within the mailbox limits).",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "cancellable": {
            "type": "boolean",
            "description": "`true` while at least one email of the batch is still queued.",
            "example": true
          },
          "sends": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One send per recipient, each with the same fields as `get_email_send`.",
            "example": [
              {
                "@id": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "uuid": "3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "state": "queued",
                "failure_reason": null,
                "release_at": "2026-11-03T09:00:20+00:00",
                "scheduled_for": null,
                "sender_uuid": "3a9e1f56-0000-4000-8000-6c474d08b1a7",
                "sender_address": "sergio@acme.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record_type": "contact",
                "record_name": "Ana Ruiz",
                "mode": "compose",
                "subject": "Proposal for Acme",
                "to": [
                  "ana@example.com"
                ],
                "cc": [],
                "bcc": [],
                "recipients": [
                  {
                    "address": "ana@example.com",
                    "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                    "name": "Ana Ruiz",
                    "kind": "contact"
                  }
                ],
                "batch": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6",
                "created_at": "2026-11-03T09:00:00+00:00",
                "sent_at": null,
                "failed_at": null,
                "canceled_at": null,
                "cancellable": true,
                "retryable": false,
                "copy_visible": null
              },
              {
                "@id": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "uuid": "3a9e1f5e-0000-4000-8000-6c474d08b1af",
                "state": "queued",
                "failure_reason": null,
                "release_at": "2026-11-03T09:05:20+00:00",
                "scheduled_for": null,
                "sender_uuid": "3a9e1f56-0000-4000-8000-6c474d08b1a7",
                "sender_address": "sergio@acme.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record_type": "contact",
                "record_name": "Ana Ruiz",
                "mode": "compose",
                "subject": "Proposal for Acme",
                "to": [
                  "luis@example.com"
                ],
                "cc": [],
                "bcc": [],
                "recipients": [
                  {
                    "address": "ana@example.com",
                    "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                    "name": "Ana Ruiz",
                    "kind": "contact"
                  }
                ],
                "batch": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6",
                "created_at": "2026-11-03T09:00:00+00:00",
                "sent_at": null,
                "failed_at": null,
                "canceled_at": null,
                "cancellable": true,
                "retryable": false,
                "copy_visible": null
              }
            ]
          }
        }
      },
      "EmailBatch.EmailBatchScheduleInput": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to",
          "scheduled_at"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Recipients, one email each: 2 to 50 plain email addresses. Each gets their own email and their own unsubscribe link; they do not see each other.",
            "example": [
              "ana@example.com",
              "luis@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Must be empty in a batch.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Must be empty in a batch.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email must leave: ISO 8601 date-time WITH a time zone offset, from 90 seconds to 365 days ahead. The effective time (`release_at`) can be later if the mailbox is at its limit. There is no undo window for a scheduled email, but it can be cancelled until it starts to leave.",
            "example": "2026-11-05T09:30:00+01:00"
          }
        }
      },
      "EmailBatch.EmailBatchScheduleInput.jsonld": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to",
          "scheduled_at"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Recipients, one email each: 2 to 50 plain email addresses. Each gets their own email and their own unsubscribe link; they do not see each other.",
            "example": [
              "ana@example.com",
              "luis@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Must be empty in a batch.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Must be empty in a batch.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email must leave: ISO 8601 date-time WITH a time zone offset, from 90 seconds to 365 days ahead. The effective time (`release_at`) can be later if the mailbox is at its limit. There is no undo window for a scheduled email, but it can be cancelled until it starts to leave.",
            "example": "2026-11-05T09:30:00+01:00"
          }
        }
      },
      "EmailBatch.EmailBatchSendInput": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Recipients, one email each: 2 to 50 plain email addresses. Each gets their own email and their own unsubscribe link; they do not see each other.",
            "example": [
              "ana@example.com",
              "luis@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Must be empty in a batch.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Must be empty in a batch.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        }
      },
      "EmailBatch.EmailBatchSendInput.jsonld": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Recipients, one email each: 2 to 50 plain email addresses. Each gets their own email and their own unsubscribe link; they do not see each other.",
            "example": [
              "ana@example.com",
              "luis@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Must be empty in a batch.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Must be empty in a batch.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        }
      },
      "EmailBatch.jsonld-email_batch.read": {
        "type": "object",
        "description": "Email batches of the public API (fase 5): the same message as a separate email to each of 2 to 50 people. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `sends` are the sends of the\nbatch with the fields of `get_email_send` and their `@id`. A batch belongs to its author: for anyone else it answers\n404 `email_send_not_found`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the batch.",
            "example": "3a9e1f55-0000-4000-8000-6c474d08b1a6"
          },
          "release_at": {
            "type": "string",
            "format": "date-time",
            "description": "Release time of the first email of the batch (the others follow at least five minutes apart, within the mailbox limits).",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "cancellable": {
            "type": "boolean",
            "description": "`true` while at least one email of the batch is still queued.",
            "example": true
          },
          "sends": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One send per recipient, each with the same fields as `get_email_send`.",
            "example": [
              {
                "@id": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "uuid": "3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "state": "queued",
                "failure_reason": null,
                "release_at": "2026-11-03T09:00:20+00:00",
                "scheduled_for": null,
                "sender_uuid": "3a9e1f56-0000-4000-8000-6c474d08b1a7",
                "sender_address": "sergio@acme.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record_type": "contact",
                "record_name": "Ana Ruiz",
                "mode": "compose",
                "subject": "Proposal for Acme",
                "to": [
                  "ana@example.com"
                ],
                "cc": [],
                "bcc": [],
                "recipients": [
                  {
                    "address": "ana@example.com",
                    "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                    "name": "Ana Ruiz",
                    "kind": "contact"
                  }
                ],
                "batch": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6",
                "created_at": "2026-11-03T09:00:00+00:00",
                "sent_at": null,
                "failed_at": null,
                "canceled_at": null,
                "cancellable": true,
                "retryable": false,
                "copy_visible": null
              },
              {
                "@id": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5",
                "uuid": "3a9e1f5e-0000-4000-8000-6c474d08b1af",
                "state": "queued",
                "failure_reason": null,
                "release_at": "2026-11-03T09:05:20+00:00",
                "scheduled_for": null,
                "sender_uuid": "3a9e1f56-0000-4000-8000-6c474d08b1a7",
                "sender_address": "sergio@acme.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "record_type": "contact",
                "record_name": "Ana Ruiz",
                "mode": "compose",
                "subject": "Proposal for Acme",
                "to": [
                  "luis@example.com"
                ],
                "cc": [],
                "bcc": [],
                "recipients": [
                  {
                    "address": "ana@example.com",
                    "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                    "name": "Ana Ruiz",
                    "kind": "contact"
                  }
                ],
                "batch": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6",
                "created_at": "2026-11-03T09:00:00+00:00",
                "sent_at": null,
                "failed_at": null,
                "canceled_at": null,
                "cancellable": true,
                "retryable": false,
                "copy_visible": null
              }
            ]
          }
        }
      },
      "EmailConfig": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Whether each recipient is addressed by name in the To field.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Whether each recipient is addressed by name in the To field.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          }
        }
      },
      "EmailConfig-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Whether each recipient is addressed by name in the To field.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          }
        }
      },
      "EmailConfig.jsonld-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox (max 100 characters). Required.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "EmailDraft": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the draft. Only returned by `get_email_draft`; the list and the answers of create and update leave it out.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailDraft-email_draft.list": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailDraft-email_draft.read": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the draft. Only returned by `get_email_draft`; the list and the answers of create and update leave it out.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailDraft.EmailDraftCreateInput": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox to send from (`list_email_senders`). Optional in a draft; it is required when the email is sent.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the email is written from: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. Optional in a draft; required when the email is sent. A contact that does not exist is ignored; a company or opportunity the user cannot send from is refused.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`).",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. A draft may be incomplete: addresses are kept as typed, lower-cased, without repeats.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi Ana,</p><p>Here is the proposal we talked about.</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only for `forward`: attachments of the original email to forward (up to 100).",
            "example": []
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that belong to the draft (up to 100, 25 MB in total). Files no longer listed are detached and deleted.",
            "example": []
          }
        }
      },
      "EmailDraft.EmailDraftCreateInput.jsonld": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox to send from (`list_email_senders`). Optional in a draft; it is required when the email is sent.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the email is written from: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. Optional in a draft; required when the email is sent. A contact that does not exist is ignored; a company or opportunity the user cannot send from is refused.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`).",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. A draft may be incomplete: addresses are kept as typed, lower-cased, without repeats.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi Ana,</p><p>Here is the proposal we talked about.</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only for `forward`: attachments of the original email to forward (up to 100).",
            "example": []
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that belong to the draft (up to 100, 25 MB in total). Files no longer listed are detached and deleted.",
            "example": []
          }
        }
      },
      "EmailDraft.EmailDraftUpdateInput": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "required": [
          "revision"
        ],
        "properties": {
          "revision": {
            "type": "integer",
            "description": "The `revision` you read from the draft. If it is not the current one the save is refused (409 `draft_conflict`) so you never overwrite a newer version.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox to send from (`list_email_senders`). Optional in a draft; it is required when the email is sent.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the email is written from: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. Optional in a draft; required when the email is sent. A contact that does not exist is ignored; a company or opportunity the user cannot send from is refused.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`).",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. A draft may be incomplete: addresses are kept as typed, lower-cased, without repeats.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi Ana,</p><p>Here is the proposal we talked about.</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only for `forward`: attachments of the original email to forward (up to 100).",
            "example": []
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that belong to the draft (up to 100, 25 MB in total). Files no longer listed are detached and deleted.",
            "example": []
          }
        }
      },
      "EmailDraft.EmailDraftUpdateInput.jsonld": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "required": [
          "revision"
        ],
        "properties": {
          "revision": {
            "type": "integer",
            "description": "The `revision` you read from the draft. If it is not the current one the save is refused (409 `draft_conflict`) so you never overwrite a newer version.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox to send from (`list_email_senders`). Optional in a draft; it is required when the email is sent.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record the email is written from: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. Optional in a draft; required when the email is sent. A contact that does not exist is ignored; a company or opportunity the user cannot send from is refused.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`).",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. A draft may be incomplete: addresses are kept as typed, lower-cased, without repeats.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi Ana,</p><p>Here is the proposal we talked about.</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only for `forward`: attachments of the original email to forward (up to 100).",
            "example": []
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that belong to the draft (up to 100, 25 MB in total). Files no longer listed are detached and deleted.",
            "example": []
          }
        }
      },
      "EmailDraft.jsonld": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the draft. Only returned by `get_email_draft`; the list and the answers of create and update leave it out.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailDraft.jsonld-email_draft.list": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailDraft.jsonld-email_draft.read": {
        "type": "object",
        "description": "Email drafts of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nA draft belongs to its author: for anyone else it answers 404 `email_draft_not_found`. `create_email_draft` and\n`update_email_draft` answer without `body_html` (the panel's use case returns the draft without its body, so that an\nautosave never echoes megabytes); `get_email_draft` has it.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the draft.",
            "example": "3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "revision": {
            "type": "integer",
            "description": "Version of the draft, 1 on creation and +1 on every save. Send it back in `update_email_draft` so two saves cannot overwrite each other.",
            "example": 1
          },
          "sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the mailbox chosen to send from; null if none was chosen or the user lost access to it.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the draft is written from; null if none.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Kind of `record`; null if none.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if none.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose`, `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded; null for `compose`.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To, as typed (they are not validated until the email is sent).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject; null if not written yet.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body of the draft. Only returned by `get_email_draft`; the list and the answers of create and update leave it out.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Attachments of the original email chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Attachments linked to the draft: `uuid`, `name`, `size_bytes`, `mime_type`.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the draft was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was last saved.",
            "example": "2026-11-03T09:00:00+00:00"
          }
        }
      },
      "EmailInlineImages-email_inline_images.read": {
        "type": "object",
        "description": "`get_email_inline_images` (fase 5): the images embedded in the body of an email as `data:` URIs, read from Gmail in\nthe request (ReadEmailInlineImages). Generated from the proposal by fase-5/tools/gen_emails_api.py; the texts are\nthe proposal's. What the use case leaves out (limits, not a real image, gone from Google, Google rate limiting)\ncomes in `omitted`; only the own throttle of the API (429) fails the call.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the attachment the image is, equal to the `data-em-inline` marker in `body_html`.",
                  "example": "e5f4a1b7-85da-4c42-b139-a0cd5f7e4268"
                },
                "data_uri": {
                  "type": "string",
                  "description": "The image as a `data:<type>;base64,...` URI. The type comes from the bytes, not from the sender.",
                  "example": "data:image/png;base64,iVBORw0KGgo..."
                }
              }
            },
            "description": "Embedded images whose bytes were checked, as `data:` URIs.",
            "example": [
              {
                "uuid": "e5f4a1b7-85da-4c42-b139-a0cd5f7e4268",
                "data_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGNgYGD4DwABBAEAf8vjFQAAAABJRU5ErkJggg=="
              }
            ]
          },
          "omitted": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the embedded images that were not returned: over the limits, not a real image, no longer in Google, or Google was rate limiting.",
            "example": []
          }
        }
      },
      "EmailInlineImages.jsonld-email_inline_images.read": {
        "type": "object",
        "description": "`get_email_inline_images` (fase 5): the images embedded in the body of an email as `data:` URIs, read from Gmail in\nthe request (ReadEmailInlineImages). Generated from the proposal by fase-5/tools/gen_emails_api.py; the texts are\nthe proposal's. What the use case leaves out (limits, not a real image, gone from Google, Google rate limiting)\ncomes in `omitted`; only the own throttle of the API (429) fails the call.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the email.",
            "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the attachment the image is, equal to the `data-em-inline` marker in `body_html`.",
                  "example": "e5f4a1b7-85da-4c42-b139-a0cd5f7e4268"
                },
                "data_uri": {
                  "type": "string",
                  "description": "The image as a `data:<type>;base64,...` URI. The type comes from the bytes, not from the sender.",
                  "example": "data:image/png;base64,iVBORw0KGgo..."
                }
              }
            },
            "description": "Embedded images whose bytes were checked, as `data:` URIs.",
            "example": [
              {
                "uuid": "e5f4a1b7-85da-4c42-b139-a0cd5f7e4268",
                "data_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGNgYGD4DwABBAEAf8vjFQAAAABJRU5ErkJggg=="
              }
            ]
          },
          "omitted": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of the embedded images that were not returned: over the limits, not a real image, no longer in Google, or Google was rate limiting.",
            "example": []
          }
        }
      },
      "EmailMailbox-email_mailbox.read": {
        "type": "object",
        "description": "`list_email_mailboxes` (fase 5): the connected mailboxes whose emails the user can read. Generated from the proposal\nby fase-5/tools/gen_emails_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox.",
            "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
          },
          "address": {
            "type": "string",
            "description": "Email address of the mailbox.",
            "example": "sergio@easymailing.com"
          }
        }
      },
      "EmailMailbox.jsonld-email_mailbox.read": {
        "type": "object",
        "description": "`list_email_mailboxes` (fase 5): the connected mailboxes whose emails the user can read. Generated from the proposal\nby fase-5/tools/gen_emails_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox.",
            "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
          },
          "address": {
            "type": "string",
            "description": "Email address of the mailbox.",
            "example": "sergio@easymailing.com"
          }
        }
      },
      "EmailPersonalizationPreview-email_personalization_preview.read": {
        "type": "object",
        "description": "`preview_email_personalization` (fase 5): what the tags of an email would say for its first recipient. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only: nothing is\nstored, so the resource has no identifier of its own.",
        "deprecated": false,
        "properties": {
          "recipient": {
            "type": "object",
            "description": "`{kind, name}`: `kind` is `contact` when the first recipient matched a contact, `none` otherwise.",
            "example": {
              "kind": "contact",
              "name": "Ana Ruiz"
            }
          },
          "subject": {
            "type": "string",
            "description": "The subject with its tags filled in.",
            "example": "Proposal for Ana"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One entry per distinct tag and fallback: `id`, `value` (plain text, never HTML; null if empty), `source` (`value`, `fallback` or `empty`) and `fallback`.",
            "example": [
              {
                "id": "contact.first_name",
                "value": "Ana",
                "source": "value",
                "fallback": "there"
              }
            ]
          }
        }
      },
      "EmailPersonalizationPreview.EmailPersonalizationPreviewInput": {
        "type": "object",
        "description": "`preview_email_personalization` (fase 5): what the tags of an email would say for its first recipient. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only: nothing is\nstored, so the resource has no identifier of its own.",
        "deprecated": false,
        "required": [
          "record",
          "sender_uuid"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from (`/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`).",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox the email is written from (`list_email_senders`).",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first recipient (first address of To; without To, the first of Cc and then Bcc). Decides whose data is used.",
            "example": "ana@example.com"
          },
          "subject": {
            "type": "string",
            "description": "Subject, possibly with `{{ ... }}` tags.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Tags used in the body, each `{id, fallback}` (fallback optional). Up to 100.",
            "example": [
              {
                "id": "contact.first_name",
                "fallback": "there"
              }
            ]
          }
        }
      },
      "EmailPersonalizationPreview.EmailPersonalizationPreviewInput.jsonld": {
        "type": "object",
        "description": "`preview_email_personalization` (fase 5): what the tags of an email would say for its first recipient. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only: nothing is\nstored, so the resource has no identifier of its own.",
        "deprecated": false,
        "required": [
          "record",
          "sender_uuid"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from (`/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`).",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox the email is written from (`list_email_senders`).",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first recipient (first address of To; without To, the first of Cc and then Bcc). Decides whose data is used.",
            "example": "ana@example.com"
          },
          "subject": {
            "type": "string",
            "description": "Subject, possibly with `{{ ... }}` tags.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Tags used in the body, each `{id, fallback}` (fallback optional). Up to 100.",
            "example": [
              {
                "id": "contact.first_name",
                "fallback": "there"
              }
            ]
          }
        }
      },
      "EmailPersonalizationPreview.jsonld-email_personalization_preview.read": {
        "type": "object",
        "description": "`preview_email_personalization` (fase 5): what the tags of an email would say for its first recipient. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only: nothing is\nstored, so the resource has no identifier of its own.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "recipient": {
            "type": "object",
            "description": "`{kind, name}`: `kind` is `contact` when the first recipient matched a contact, `none` otherwise.",
            "example": {
              "kind": "contact",
              "name": "Ana Ruiz"
            }
          },
          "subject": {
            "type": "string",
            "description": "The subject with its tags filled in.",
            "example": "Proposal for Ana"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "One entry per distinct tag and fallback: `id`, `value` (plain text, never HTML; null if empty), `source` (`value`, `fallback` or `empty`) and `fallback`.",
            "example": [
              {
                "id": "contact.first_name",
                "value": "Ana",
                "source": "value",
                "fallback": "there"
              }
            ]
          }
        }
      },
      "EmailPersonalizationTag-email_personalization_tag.read": {
        "type": "object",
        "description": "`list_email_personalization_tags` (fase 5): the tags that can personalize an email written from one record.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the tag, used in `data-email-tag-id` and in `{{ id }}`.",
            "example": "contact.first_name"
          },
          "label": {
            "type": "string",
            "description": "Name shown to the user.",
            "example": "First name"
          },
          "group": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagGroup",
            "description": "`contact` (the contact and its custom fields), `company` (the company of the contact), `sender` (the user who sends) or `opportunity` (only when writing from an opportunity).",
            "example": "contact"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Presentation hierarchy, each item `{id, label}` (for example Location > City).",
            "example": []
          },
          "semantic_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of value the tag holds (for example `text`); null if unknown.",
            "example": "text"
          },
          "allows_default": {
            "type": "boolean",
            "description": "Whether a fallback value (`data-email-tag-fallback` or `| default: \"...\"`) is accepted.",
            "example": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagAvailability",
            "description": "`ready` tags are filled in when the email leaves. `pending` tags are listed but never resolve: do not use them.",
            "example": "ready"
          }
        }
      },
      "EmailPersonalizationTag.jsonld-email_personalization_tag.read": {
        "type": "object",
        "description": "`list_email_personalization_tags` (fase 5): the tags that can personalize an email written from one record.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Id of the tag, used in `data-email-tag-id` and in `{{ id }}`.",
            "example": "contact.first_name"
          },
          "label": {
            "type": "string",
            "description": "Name shown to the user.",
            "example": "First name"
          },
          "group": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagGroup",
            "description": "`contact` (the contact and its custom fields), `company` (the company of the contact), `sender` (the user who sends) or `opportunity` (only when writing from an opportunity).",
            "example": "contact"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Presentation hierarchy, each item `{id, label}` (for example Location > City).",
            "example": []
          },
          "semantic_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of value the tag holds (for example `text`); null if unknown.",
            "example": "text"
          },
          "allows_default": {
            "type": "boolean",
            "description": "Whether a fallback value (`data-email-tag-fallback` or `| default: \"...\"`) is accepted.",
            "example": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagAvailability",
            "description": "`ready` tags are filled in when the email leaves. `pending` tags are listed but never resolve: do not use them.",
            "example": "ready"
          }
        }
      },
      "EmailRecipientCandidate-email_recipient_candidate.read": {
        "type": "object",
        "description": "`list_email_recipient_candidates` (fase 5): the contacts of a company or opportunity with an email address, to pick\nrecipients. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the contact.",
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the contact; null if it has none.",
            "example": "Ana Ruiz"
          },
          "email": {
            "type": "string",
            "description": "Main email of the contact: the address to put in `to`.",
            "example": "ana@example.com"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailRecipientCandidateSource"
            },
            "description": "Where it comes from: `company` (works at the company) and/or `opportunity` (assigned to the opportunity).",
            "example": [
              "company"
            ]
          }
        }
      },
      "EmailRecipientCandidate.jsonld-email_recipient_candidate.read": {
        "type": "object",
        "description": "`list_email_recipient_candidates` (fase 5): the contacts of a company or opportunity with an email address, to pick\nrecipients. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the contact.",
            "example": "3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the contact; null if it has none.",
            "example": "Ana Ruiz"
          },
          "email": {
            "type": "string",
            "description": "Main email of the contact: the address to put in `to`.",
            "example": "ana@example.com"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailRecipientCandidateSource"
            },
            "description": "Where it comes from: `company` (works at the company) and/or `opportunity` (assigned to the opportunity).",
            "example": [
              "company"
            ]
          }
        }
      },
      "EmailRecipientCheck-email_recipient_check.read": {
        "type": "object",
        "description": "`check_email_recipients` (fase 5): which addresses will not show the email on the record, and which opted out.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only.",
        "deprecated": false,
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record that was checked.",
            "example": "/companies/3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of record.",
            "example": "company"
          },
          "excluded": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Addresses whose email would NOT appear in the history of the record, each `{address, reason}`. `reason`: `other_domain` (not a domain of the company), `public_domain` (a public provider such as gmail.com), `not_a_contact` (not the address of a contact of the opportunity), `record_closed` (the opportunity is closed).",
            "example": [
              {
                "address": "ana@gmail.com",
                "reason": "public_domain"
              }
            ]
          },
          "opted_out": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Addresses of people who asked not to receive CRM email, each `{address, opted_out_at}`. Sending to them needs `acknowledged_opt_outs`.",
            "example": [
              {
                "address": "luis@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "EmailRecipientCheck.EmailRecipientCheckInput": {
        "type": "object",
        "description": "`check_email_recipients` (fase 5): which addresses will not show the email on the record, and which opted out.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only.",
        "deprecated": false,
        "required": [
          "record",
          "addresses"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email will be written from.",
            "example": "/companies/3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses to check (up to 500).",
            "example": [
              "ana@gmail.com",
              "luis@example.com"
            ]
          }
        }
      },
      "EmailRecipientCheck.EmailRecipientCheckInput.jsonld": {
        "type": "object",
        "description": "`check_email_recipients` (fase 5): which addresses will not show the email on the record, and which opted out.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only.",
        "deprecated": false,
        "required": [
          "record",
          "addresses"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email will be written from.",
            "example": "/companies/3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses to check (up to 500).",
            "example": [
              "ana@gmail.com",
              "luis@example.com"
            ]
          }
        }
      },
      "EmailRecipientCheck.jsonld-email_recipient_check.read": {
        "type": "object",
        "description": "`check_email_recipients` (fase 5): which addresses will not show the email on the record, and which opted out.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record that was checked.",
            "example": "/companies/3a9e1f58-0000-4000-8000-6c474d08b1a9"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of record.",
            "example": "company"
          },
          "excluded": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Addresses whose email would NOT appear in the history of the record, each `{address, reason}`. `reason`: `other_domain` (not a domain of the company), `public_domain` (a public provider such as gmail.com), `not_a_contact` (not the address of a contact of the opportunity), `record_closed` (the opportunity is closed).",
            "example": [
              {
                "address": "ana@gmail.com",
                "reason": "public_domain"
              }
            ]
          },
          "opted_out": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Addresses of people who asked not to receive CRM email, each `{address, opted_out_at}`. Sending to them needs `acknowledged_opt_outs`.",
            "example": [
              {
                "address": "luis@example.com",
                "opted_out_at": "2026-10-20T10:00:00+00:00"
              }
            ]
          }
        }
      },
      "EmailSend-email_send.read": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send.",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendState",
            "description": "`queued`: waiting for its time (cancellable). `sending`: leaving now. `sent`: Gmail accepted it. `failed`: it did not leave, see `failure_reason`. `unconfirmed`: Gmail's answer was unclear and it may or may not have left. `canceled`: cancelled before leaving.",
            "example": "queued"
          },
          "failure_reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendFailureReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `failed` send did not leave: `rejected` (Gmail refused it), `too_large`, `message_too_large`, `sending_limit` (Gmail limit), `access_lost` (the mailbox connection was lost), `permission_lost` (the user can no longer send from that sender or record), `capability_inactive` (the CRM module is off), `attachment_unavailable` (a forwarded attachment is gone from Gmail), `provider_unavailable` (Gmail kept failing), `personalization_failed` (a tag could not be filled). Null otherwise.",
            "example": null
          },
          "release_at": {
            "type": "string",
            "format": "date-time",
            "description": "Effective time at which it is released to Gmail. Never earlier than 20 seconds after creation (10 s to undo plus 10 s of grace), never earlier than `scheduled_at`, and later when the mailbox is at its limit.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The time chosen with `schedule_email`; null for an email sent right away. `release_at` is never earlier.",
            "example": "2026-11-05T08:30:00+00:00"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox it leaves from (`list_email_senders`).",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "sender_address": {
            "type": "string",
            "format": "email",
            "description": "Email address it leaves from.",
            "example": "sergio@acme.com"
          },
          "contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact the email is linked to, or null when it was written from a company or opportunity.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity it was written from. Null only on very old sends.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of `record`.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if it was deleted.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (new email), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. Null once the content was deleted (after discarding a failed send).",
            "example": "Proposal for Acme"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. Empty once the content was deleted (after discarding).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The `to` addresses, each with who it is: `address`, `contact` (IRI of the contact that owns the address, or null), `name` (or null) and `kind` (`contact`, `member` for a user of the account, `shared_mailbox`, `internal` or `external` when unknown).",
            "example": [
              {
                "address": "ana@example.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "name": "Ana Ruiz",
                "kind": "contact"
              }
            ]
          },
          "batch": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the batch it belongs to when it was sent with `send_email_batch`; null for a single email.",
            "example": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the send was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When Gmail accepted it; null until then.",
            "example": "2026-11-03T09:00:21+00:00"
          },
          "failed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it failed; null otherwise.",
            "example": "2026-11-03T09:00:25+00:00"
          },
          "canceled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was cancelled; null otherwise.",
            "example": "2026-11-03T09:00:12+00:00"
          },
          "cancellable": {
            "type": "boolean",
            "description": "`true` while `state` is `queued`: `cancel_email_send` still works.",
            "example": true
          },
          "retryable": {
            "type": "boolean",
            "description": "`true` for a failed or unconfirmed send whose content is kept and that is not part of a sequence: `retry_email_send` works.",
            "example": false
          },
          "copy_visible": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the copy synced from Gmail will appear in the email history of the record. Null until it is known; false when the mailbox rules hide it.",
            "example": true
          }
        }
      },
      "EmailSend.EmailScheduleInput": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to",
          "scheduled_at"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To (plain email addresses, no display names). Up to 500 addresses between `to`, `cc` and `bcc`. All of them get the same single email and see each other.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Optional.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Optional.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email must leave: ISO 8601 date-time WITH a time zone offset, from 90 seconds to 365 days ahead. The effective time (`release_at`) can be later if the mailbox is at its limit. There is no undo window for a scheduled email, but it can be cancelled until it starts to leave.",
            "example": "2026-11-05T09:30:00+01:00"
          }
        }
      },
      "EmailSend.EmailScheduleInput.jsonld": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to",
          "scheduled_at"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To (plain email addresses, no display names). Up to 500 addresses between `to`, `cc` and `bcc`. All of them get the same single email and see each other.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Optional.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Optional.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the email must leave: ISO 8601 date-time WITH a time zone offset, from 90 seconds to 365 days ahead. The effective time (`release_at`) can be later if the mailbox is at its limit. There is no undo window for a scheduled email, but it can be cancelled until it starts to leave.",
            "example": "2026-11-05T09:30:00+01:00"
          }
        }
      },
      "EmailSend.EmailSendInput": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To (plain email addresses, no display names). Up to 500 addresses between `to`, `cc` and `bcc`. All of them get the same single email and see each other.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Optional.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Optional.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        }
      },
      "EmailSend.EmailSendInput.jsonld": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "required": [
          "idempotency_key",
          "sender_uuid",
          "record",
          "to"
        ],
        "properties": {
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "A UUID you generate for this intended email. Repeating the request with the same key returns the same send instead of creating a second email, so reuse it only to retry after a timeout or a 503. Use a new UUID for every new email.",
            "example": "3a9e1f5d-0000-4000-8000-6c474d08b1ae"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox to send from, taken from `list_email_senders`.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the email is written from and recorded on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. The recipient addresses do not have to belong to it.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (default) writes a new email. `reply`, `reply_all` and `forward` answer `source_email`, quote it and keep the thread (reply, reply_all) or attach its files (forward).",
            "example": "compose"
          },
          "source_email": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the email being answered or forwarded (`/emails/{uuid}`). Required unless `mode` is `compose`. The user must be able to see the whole original.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To (plain email addresses, no display names). Up to 500 addresses between `to`, `cc` and `bcc`. All of them get the same single email and see each other.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc. Optional.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc. Optional.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject, up to 998 characters. It may contain personalization tags written as `{{ contact.first_name | default: \"there\" }}` (ids from `list_email_personalization_tags`). Line breaks are turned into spaces. Replies and forwards keep the original subject: write `Re: ...` or `Fwd: ...` yourself if you want it.",
            "example": "Proposal for {{ contact.first_name | default: \"you\" }}"
          },
          "body_html": {
            "type": "string",
            "description": "Body of the email as limited HTML: paragraphs, line breaks, headings, bold, italic, underline, links, lists, quotes, tables and images. Scripts and unknown markup are removed. Three special pieces are understood: (1) a personalization chip `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>`, filled in for the recipient when the email leaves (ids from `list_email_personalization_tags`; the fallback is optional); (2) the signature, which is not added for you: paste the `html` of the signature you want from `list_email_senders` at the end; (3) an optional unsubscribe block `<div data-email-unsubscribe data-language=\"en\" data-prefix=\"If you prefer not to get more emails from Sergio,\" data-link-label=\"unsubscribe here\"></div>`, which becomes a signed opt-out link (see `get_contact_email_opt_out`). Without that block the email carries no unsubscribe link. When replying or forwarding, the quoted original is added for you; do not paste it.",
            "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Here is the proposal we talked about.</p>"
          },
          "attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "UUIDs of files uploaded with `upload_email_attachment` that go with the email. Up to 100; 25 MB in total between attachments, inline images and forwarded files.",
            "example": []
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only with `mode` `forward`: ids of attachments of the original email to forward too (up to 40). They are downloaded from Gmail when the email leaves.",
            "example": []
          },
          "acknowledged_opt_outs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses of recipients who asked not to receive CRM email and that the user has confirmed they still want to write to. Leave it out unless a previous attempt answered `recipient_opted_out`.",
            "example": []
          },
          "draft": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the draft this email comes from (`/email_drafts/{uuid}`). The draft is deleted in the same transaction that creates the send. Optional.",
            "example": "/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4"
          },
          "replaces_send": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of a failed or unconfirmed send of the user (`/email_sends/{uuid}`) that this email replaces: it is discarded in the same transaction, so both never exist. A send that is alive (queued, sending or sent) gives 409 `replaced_send_changed`. Optional.",
            "example": "/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5"
          }
        }
      },
      "EmailSend.jsonld-email_send.read": {
        "type": "object",
        "description": "Email sends of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the\ntexts are the proposal's. Every operation checks the CRM access in its provider or processor before anything else,\nbecause API Platform evaluates `security` after the provider.\n\nSending and scheduling are two operations over the same use case (QueueEmailSend): `send_email` takes no\n`scheduled_at` and `schedule_email` requires it. Both answer 202: the email is queued and the `worker` sends it.\nThe actions (`cancel`, `send_now`, `retry`, `discard`) take no body and answer the send as it is afterwards. A send\nbelongs to its author: for anyone else it answers 404 `email_send_not_found`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send.",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendState",
            "description": "`queued`: waiting for its time (cancellable). `sending`: leaving now. `sent`: Gmail accepted it. `failed`: it did not leave, see `failure_reason`. `unconfirmed`: Gmail's answer was unclear and it may or may not have left. `canceled`: cancelled before leaving.",
            "example": "queued"
          },
          "failure_reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendFailureReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `failed` send did not leave: `rejected` (Gmail refused it), `too_large`, `message_too_large`, `sending_limit` (Gmail limit), `access_lost` (the mailbox connection was lost), `permission_lost` (the user can no longer send from that sender or record), `capability_inactive` (the CRM module is off), `attachment_unavailable` (a forwarded attachment is gone from Gmail), `provider_unavailable` (Gmail kept failing), `personalization_failed` (a tag could not be filled). Null otherwise.",
            "example": null
          },
          "release_at": {
            "type": "string",
            "format": "date-time",
            "description": "Effective time at which it is released to Gmail. Never earlier than 20 seconds after creation (10 s to undo plus 10 s of grace), never earlier than `scheduled_at`, and later when the mailbox is at its limit.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The time chosen with `schedule_email`; null for an email sent right away. `release_at` is never earlier.",
            "example": "2026-11-05T08:30:00+00:00"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox it leaves from (`list_email_senders`).",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "sender_address": {
            "type": "string",
            "format": "email",
            "description": "Email address it leaves from.",
            "example": "sergio@acme.com"
          },
          "contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact the email is linked to, or null when it was written from a company or opportunity.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity it was written from. Null only on very old sends.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of `record`.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record; null if it was deleted.",
            "example": "Ana Ruiz"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "`compose` (new email), `reply`, `reply_all` or `forward`.",
            "example": "compose"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject. Null once the content was deleted (after discarding a failed send).",
            "example": "Proposal for Acme"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To. Empty once the content was deleted (after discarding).",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The `to` addresses, each with who it is: `address`, `contact` (IRI of the contact that owns the address, or null), `name` (or null) and `kind` (`contact`, `member` for a user of the account, `shared_mailbox`, `internal` or `external` when unknown).",
            "example": [
              {
                "address": "ana@example.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "name": "Ana Ruiz",
                "kind": "contact"
              }
            ]
          },
          "batch": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the batch it belongs to when it was sent with `send_email_batch`; null for a single email.",
            "example": "/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the send was created.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When Gmail accepted it; null until then.",
            "example": "2026-11-03T09:00:21+00:00"
          },
          "failed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it failed; null otherwise.",
            "example": "2026-11-03T09:00:25+00:00"
          },
          "canceled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was cancelled; null otherwise.",
            "example": "2026-11-03T09:00:12+00:00"
          },
          "cancellable": {
            "type": "boolean",
            "description": "`true` while `state` is `queued`: `cancel_email_send` still works.",
            "example": true
          },
          "retryable": {
            "type": "boolean",
            "description": "`true` for a failed or unconfirmed send whose content is kept and that is not part of a sequence: `retry_email_send` works.",
            "example": false
          },
          "copy_visible": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the copy synced from Gmail will appear in the email history of the record. Null until it is known; false when the mailbox rules hide it.",
            "example": true
          }
        }
      },
      "EmailSendCancellation-email_send_cancellation.read": {
        "type": "object",
        "description": "`cancel_all_email_sends` (fase 5): how many queued sends of the user were cancelled. Generated from the proposal by\nfase-5/tools/gen_email_sending_api.py; the texts are the proposal's. It reads no record: the processor does the work.",
        "deprecated": false,
        "properties": {
          "canceled": {
            "type": "integer",
            "description": "Number of emails cancelled.",
            "example": 3
          }
        }
      },
      "EmailSendCancellation.jsonld-email_send_cancellation.read": {
        "type": "object",
        "description": "`cancel_all_email_sends` (fase 5): how many queued sends of the user were cancelled. Generated from the proposal by\nfase-5/tools/gen_email_sending_api.py; the texts are the proposal's. It reads no record: the processor does the work.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "canceled": {
            "type": "integer",
            "description": "Number of emails cancelled.",
            "example": 3
          }
        }
      },
      "EmailSendEstimate-email_send_estimate.read": {
        "type": "object",
        "description": "`get_email_send_estimate` (fase 5): when an email or a batch would leave if it were sent now. Generated from the\nproposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The mailbox the estimate is for.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "count": {
            "type": "integer",
            "description": "The number of recipients asked for.",
            "example": 20
          },
          "separate": {
            "type": "boolean",
            "description": "Whether it was estimated as separate emails.",
            "example": true
          },
          "first_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the first email would leave.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "last_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the last email would leave.",
            "example": "2026-11-03T10:35:20+00:00"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendEstimateReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why it is not immediate: `separate` (separate emails are spaced five minutes apart), `hour` (hourly limit) or `day` (daily limit). Null when it leaves right away.",
            "example": "separate"
          },
          "immediate": {
            "type": "boolean",
            "description": "`true` when nothing delays it (`reason` is null).",
            "example": false
          }
        }
      },
      "EmailSendEstimate.jsonld-email_send_estimate.read": {
        "type": "object",
        "description": "`get_email_send_estimate` (fase 5): when an email or a batch would leave if it were sent now. Generated from the\nproposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The mailbox the estimate is for.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "count": {
            "type": "integer",
            "description": "The number of recipients asked for.",
            "example": 20
          },
          "separate": {
            "type": "boolean",
            "description": "Whether it was estimated as separate emails.",
            "example": true
          },
          "first_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the first email would leave.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "last_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the last email would leave.",
            "example": "2026-11-03T10:35:20+00:00"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSendEstimateReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why it is not immediate: `separate` (separate emails are spaced five minutes apart), `hour` (hourly limit) or `day` (daily limit). Null when it leaves right away.",
            "example": "separate"
          },
          "immediate": {
            "type": "boolean",
            "description": "`true` when nothing delays it (`reason` is null).",
            "example": false
          }
        }
      },
      "EmailSendReopening-email_send_reopening.read": {
        "type": "object",
        "description": "`reopen_email_send` (fase 5): the content of a send that did not leave, ready to edit and send again, with fresh\ncopies of its attachments. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the\nproposal's. A POST and not a PUT: every call makes new copies of the attachments.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send that was opened.",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailReopenableSendState",
            "description": "State of the original send: `queued`, `failed` or `unconfirmed`.",
            "example": "failed"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox the original used.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record it was written from.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of `record`.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record.",
            "example": "Ana Ruiz"
          },
          "contact_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Main email of the contact of the record, if any.",
            "example": "ana@example.com"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "Mode of the original.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the original email when it was a reply or forward.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": "string",
            "description": "Body as the editor wrote it, without the quoted original and without the unsubscribe URL of that send.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Original attachments chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Loose copies of the attachments of the send (`uuid`, `name`, `size_bytes`, `mime_type`), valid for 24 hours, ready to use in `attachment_ids`. The originals are untouched.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          }
        }
      },
      "EmailSendReopening.jsonld-email_send_reopening.read": {
        "type": "object",
        "description": "`reopen_email_send` (fase 5): the content of a send that did not leave, ready to edit and send again, with fresh\ncopies of its attachments. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the\nproposal's. A POST and not a PUT: every call makes new copies of the attachments.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send that was opened.",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/EmailReopenableSendState",
            "description": "State of the original send: `queued`, `failed` or `unconfirmed`.",
            "example": "failed"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox the original used.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "record": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the record it was written from.",
            "example": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendRecordType",
            "description": "Kind of `record`.",
            "example": "contact"
          },
          "record_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the record.",
            "example": "Ana Ruiz"
          },
          "contact_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Main email of the contact of the record, if any.",
            "example": "ana@example.com"
          },
          "mode": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSendMode",
            "description": "Mode of the original.",
            "example": "compose"
          },
          "source_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the original email when it was a reply or forward.",
            "example": "/emails/3a9e1f5a-0000-4000-8000-6c474d08b1ab"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in To.",
            "example": [
              "ana@example.com"
            ]
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Cc.",
            "example": []
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Addresses in Bcc.",
            "example": []
          },
          "subject": {
            "type": "string",
            "description": "Subject.",
            "example": "Proposal for Acme"
          },
          "body_html": {
            "type": "string",
            "description": "Body as the editor wrote it, without the quoted original and without the unsubscribe URL of that send.",
            "example": "<p>Hi Ana,</p>"
          },
          "forwarded_attachment_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Original attachments chosen to be forwarded.",
            "example": []
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Loose copies of the attachments of the send (`uuid`, `name`, `size_bytes`, `mime_type`), valid for 24 hours, ready to use in `attachment_ids`. The originals are untouched.",
            "example": [
              {
                "uuid": "3a9e1f5b-0000-4000-8000-6c474d08b1ac",
                "name": "proposal.pdf",
                "size_bytes": 184233,
                "mime_type": "application/pdf"
              }
            ]
          }
        }
      },
      "EmailSender-email_sender.read": {
        "type": "object",
        "description": "`list_email_senders` (fase 5): the mailboxes the user can send CRM email from, with their signatures. Generated from\nthe proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. There is no GET of one sender:\nthe other operations take its `uuid` as `sender_uuid`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox; use it as `sender_uuid` everywhere.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "address": {
            "type": "string",
            "format": "email",
            "description": "Email address of the mailbox.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": "string",
            "description": "Display name of the mailbox.",
            "example": "Sergio Gallego"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSenderKind",
            "description": "`personal`: a mailbox of one person. `shared`: a shared mailbox of the account.",
            "example": "personal"
          },
          "owned": {
            "type": "boolean",
            "description": "`true` when the mailbox belongs to the user who owns the token; `false` when it was shared with them.",
            "example": true
          },
          "signatures": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Signatures of that mailbox: `uuid`, `name`, `html` (ready to paste at the end of `body_html`), `default` (the one the app adds by default) and `revision`.",
            "example": [
              {
                "uuid": "3a9e1f5c-0000-4000-8000-6c474d08b1ad",
                "name": "Sergio",
                "html": "<p>Sergio Gallego<br>Acme</p>",
                "default": true,
                "revision": 1
              }
            ]
          }
        }
      },
      "EmailSender.jsonld-email_sender.read": {
        "type": "object",
        "description": "`list_email_senders` (fase 5): the mailboxes the user can send CRM email from, with their signatures. Generated from\nthe proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. There is no GET of one sender:\nthe other operations take its `uuid` as `sender_uuid`.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox; use it as `sender_uuid` everywhere.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "address": {
            "type": "string",
            "format": "email",
            "description": "Email address of the mailbox.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": "string",
            "description": "Display name of the mailbox.",
            "example": "Sergio Gallego"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSenderKind",
            "description": "`personal`: a mailbox of one person. `shared`: a shared mailbox of the account.",
            "example": "personal"
          },
          "owned": {
            "type": "boolean",
            "description": "`true` when the mailbox belongs to the user who owns the token; `false` when it was shared with them.",
            "example": true
          },
          "signatures": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Signatures of that mailbox: `uuid`, `name`, `html` (ready to paste at the end of `body_html`), `default` (the one the app adds by default) and `revision`.",
            "example": [
              {
                "uuid": "3a9e1f5c-0000-4000-8000-6c474d08b1ad",
                "name": "Sergio",
                "html": "<p>Sergio Gallego<br>Acme</p>",
                "default": true,
                "revision": 1
              }
            ]
          }
        }
      },
      "EmailSenderLimit-email_sender_limit.read": {
        "type": "object",
        "description": "`list_email_sender_limits` (fase 5): the senders of the user that have reached their hourly or daily limit. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox that is at its limit.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "address": {
            "type": "string",
            "description": "Email address of the mailbox.",
            "example": "sergio@acme.com"
          },
          "reason": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSenderLimitReason",
            "description": "`hour`: 12 emails in the last hour. `day`: 200 emails in the last 24 hours.",
            "example": "hour"
          },
          "resumes_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the mailbox can send again.",
            "example": "2026-11-05T08:30:00+00:00"
          }
        }
      },
      "EmailSenderLimit.jsonld-email_sender_limit.read": {
        "type": "object",
        "description": "`list_email_sender_limits` (fase 5): the senders of the user that have reached their hourly or daily limit. Generated\nfrom the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the mailbox that is at its limit.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "address": {
            "type": "string",
            "description": "Email address of the mailbox.",
            "example": "sergio@acme.com"
          },
          "reason": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSenderLimitReason",
            "description": "`hour`: 12 emails in the last hour. `day`: 200 emails in the last 24 hours.",
            "example": "hour"
          },
          "resumes_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the mailbox can send again.",
            "example": "2026-11-05T08:30:00+00:00"
          }
        }
      },
      "EmailSequence-email_sequence.list": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the sequence.",
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the sequence, up to 120 characters. Empty in sequences created before titles existed: see `untitled`.",
            "example": "Follow-up after demo",
            "maxLength": 120
          },
          "untitled": {
            "type": "boolean",
            "description": "The sequence has no title.",
            "example": false,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceStatus",
            "description": "State of the sequence. `draft`: never published. `active`: published and open to new enrollments. `paused`: published but closed to new enrollments and sending nothing to anybody (paused with `pause_email_sequence`, or just restored). `archived`: hidden from the default list and closed to new enrollments, but the enrollments already running keep sending. `commercial-paused`: paused by Easymailing because the account lost CRM Pro; `reactivate_email_sequence` brings it back.",
            "example": "active",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what you edited is not what new enrollments will send until `publish_email_sequence`.",
            "example": true,
            "readOnly": true
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the draft.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the draft.",
            "example": 1,
            "minimum": 0,
            "readOnly": true
          },
          "active_enrollment_count": {
            "type": "integer",
            "description": "Enrollments still running (not exited).",
            "example": 7,
            "minimum": 0,
            "readOnly": true
          },
          "total_days": {
            "type": "integer",
            "description": "Sum of the days of the waits in the draft: how long the sequence lasts from its first email to its last.",
            "example": 3,
            "minimum": 0,
            "readOnly": true
          },
          "last_activity_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last event of the sequence (enrollment, send, exit…), ISO 8601. `null` while nothing has happened.",
            "example": "2026-10-30T16:20:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sequence was last edited or published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "published_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) of the current published version: the one every new enrollment uses. `null` without a published version or sender.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "can_enroll": {
            "type": "boolean",
            "description": "Whether the user who owns the token can enroll contacts right now: the sequence is `active`, its published sender is sound and the user owns that mailbox or has the send permission on it.",
            "example": true,
            "readOnly": true
          }
        }
      },
      "EmailSequence-email_sequence.read": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the sequence.",
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the sequence, up to 120 characters. Empty in sequences created before titles existed: see `untitled`.",
            "example": "Follow-up after demo",
            "maxLength": 120
          },
          "untitled": {
            "type": "boolean",
            "description": "The sequence has no title.",
            "example": false,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceStatus",
            "description": "State of the sequence. `draft`: never published. `active`: published and open to new enrollments. `paused`: published but closed to new enrollments and sending nothing to anybody (paused with `pause_email_sequence`, or just restored). `archived`: hidden from the default list and closed to new enrollments, but the enrollments already running keep sending. `commercial-paused`: paused by Easymailing because the account lost CRM Pro; `reactivate_email_sequence` brings it back.",
            "example": "active",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what you edited is not what new enrollments will send until `publish_email_sequence`.",
            "example": true,
            "readOnly": true
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the draft.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the draft.",
            "example": 1,
            "minimum": 0,
            "readOnly": true
          },
          "active_enrollment_count": {
            "type": "integer",
            "description": "Enrollments still running (not exited).",
            "example": 7,
            "minimum": 0,
            "readOnly": true
          },
          "total_days": {
            "type": "integer",
            "description": "Sum of the days of the waits in the draft: how long the sequence lasts from its first email to its last.",
            "example": 3,
            "minimum": 0,
            "readOnly": true
          },
          "last_activity_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last event of the sequence (enrollment, send, exit…), ISO 8601. `null` while nothing has happened.",
            "example": "2026-10-30T16:20:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sequence was last edited or published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "published_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) of the current published version: the one every new enrollment uses. `null` without a published version or sender.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "can_enroll": {
            "type": "boolean",
            "description": "Whether the user who owns the token can enroll contacts right now: the sequence is `active`, its published sender is sound and the user owns that mailbox or has the send permission on it.",
            "example": true,
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Concurrency token of the draft. Send it back as `expected_draft_version` to `update_email_sequence_draft` and `publish_email_sequence`; every save and publish raises it.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "threading": {
            "type": "boolean",
            "description": "Follow-ups keep the first subject and reply in the same email thread (default `true`).",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails may leave: days of the week and daily window. A wait is a minimum; the real send moves to the next slot this allows.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A meeting booked by the contact ends the enrollment.",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply from the contact ends the enrollment (automatic replies only pause it).",
            "example": true
          },
          "meeting_exit_undetectable": {
            "type": "boolean",
            "description": "Some live enrollment exits on meetings but its mailbox has no Google Calendar connected for reading, so that exit cannot be detected.",
            "example": false,
            "readOnly": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) chosen in the draft, shown even if the user cannot send from it. `null` while none is chosen; a sequence without sender cannot be published.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "sender_problem": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSequenceSenderProblem"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the current published version takes no new enrollments because of its sender: `missing` (no sender), `mailbox_unavailable` (disconnected or unusable), `not_allowed` (whoever published it lost the send permission) or `signature_missing` (the signature is gone). `null` when sound or unpublished.",
            "example": null,
            "readOnly": true
          },
          "stats": {
            "type": "object",
            "properties": {
              "enrolled": {
                "type": "integer",
                "description": "Every enrollment ever created, live or finished.",
                "example": 12,
                "minimum": 0
              },
              "sent": {
                "type": "integer",
                "description": "Emails sent.",
                "example": 31,
                "minimum": 0
              },
              "replied": {
                "type": "integer",
                "description": "Enrollments that ended because the contact replied.",
                "example": 3,
                "minimum": 0
              },
              "meetings": {
                "type": "integer",
                "description": "Enrollments that ended because the contact booked a meeting.",
                "example": 1,
                "minimum": 0
              },
              "bounced": {
                "type": "integer",
                "description": "Enrollments that ended because an email bounced.",
                "example": 0,
                "minimum": 0
              },
              "unsubscribed": {
                "type": "integer",
                "description": "Enrollments that ended because the contact unsubscribed.",
                "example": 1,
                "minimum": 0
              },
              "excluded": {
                "type": "integer",
                "description": "Enrollments that ended for any other reason than the ones above and completion (manual exclusion, invalid or suppressed address, contact removed…).",
                "example": 1,
                "minimum": 0
              },
              "completed": {
                "type": "integer",
                "description": "Enrollments that received every email.",
                "example": 5,
                "minimum": 0
              }
            },
            "description": "Counts of the sequence: enrollments by exit reason and emails sent. `get_email_sequence_statistics` adds replies per email and a daily series.",
            "example": {
              "enrolled": 12,
              "sent": 31,
              "replied": 3,
              "meetings": 1,
              "bounced": 0,
              "unsubscribed": 1,
              "excluded": 1,
              "completed": 5
            },
            "readOnly": true
          },
          "step_stats": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "`uuid` of the email step.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent from that step.",
                  "example": 12,
                  "minimum": 0
                }
              }
            },
            "description": "Emails sent per email of the current published version.",
            "example": [
              {
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "sent": 12
              },
              {
                "step_uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "sent": 19
              }
            ],
            "readOnly": true
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              }
            },
            "description": "The steps of the DRAFT, in order.",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62",
                    "filename": "Price sheet 2026.pdf",
                    "size_bytes": 482113,
                    "mime_type": "application/pdf"
                  }
                ]
              }
            ]
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-10-30T09:15:00+00:00"
                },
                "published_by": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the account member who published it.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "email_count": {
                  "type": "integer",
                  "description": "Emails in that version.",
                  "example": 2,
                  "minimum": 0
                },
                "wait_count": {
                  "type": "integer",
                  "description": "Waits in that version.",
                  "example": 1,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Read one with `get_email_sequence_version`.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-10-30T09:15:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "email_count": 2,
                "wait_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-10-20T08:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "email_count": 2,
                "wait_count": 1
              }
            ],
            "readOnly": true
          }
        }
      },
      "EmailSequence.EmailSequenceCreateInput": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the sequence, 1 to 120 characters.",
            "example": "Follow-up after demo",
            "minLength": 1,
            "maxLength": 120
          },
          "template": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSequenceTemplate",
            "description": "Starting content. `blank`: one email with empty subject and body (and empty footer texts, which you must fill before publishing). `sales_follow_up`: three follow-up emails with two waits (2 and 4 days) already written, footer included. Default `blank`.",
            "example": "blank",
            "default": "blank"
          }
        }
      },
      "EmailSequence.EmailSequenceCreateInput.jsonld": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the sequence, 1 to 120 characters.",
            "example": "Follow-up after demo",
            "minLength": 1,
            "maxLength": 120
          },
          "template": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/EmailSequenceTemplate",
            "description": "Starting content. `blank`: one email with empty subject and body (and empty footer texts, which you must fill before publishing). `sales_follow_up`: three follow-up emails with two waits (2 and 4 days) already written, footer included. Default `blank`.",
            "example": "blank",
            "default": "blank"
          }
        }
      },
      "EmailSequence.EmailSequenceDraftInput": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "title",
          "expected_draft_version",
          "threading",
          "schedule",
          "exit_on_meeting",
          "exit_on_reply",
          "sender",
          "steps"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the sequence, 1 to 120 characters.",
            "example": "Follow-up after demo",
            "minLength": 1,
            "maxLength": 120
          },
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the sequence as you read it. If someone saved in between you get `draft_version_conflict` and nothing is saved.",
            "example": 3,
            "minimum": 1
          },
          "threading": {
            "type": "boolean",
            "description": "On: the first email creates the thread and the follow-ups reply in it, keeping the first subject (their `subject` must be `null`). Off: every email is separate and needs its own subject.",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails may leave: days of the week and a daily window. A wait is a minimum; the real send moves to the next slot this allows.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A meeting booked by the contact ends the enrollment. Needs the mailbox to read a Google Calendar to be detected (see `meeting_exit_undetectable`).",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply from the contact ends the enrollment. Automatic replies (out of office) only pause it.",
            "example": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of a connected Gmail mailbox you can send from: your own, or a shared one where you have the send permission. Get it from `list_email_senders`.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of a signature of that mailbox (also from `list_email_senders`), or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              }
            },
            "required": [
              "mailbox",
              "signature"
            ],
            "description": "Mailbox and signature the emails are sent from. `null` leaves it unset, which makes the sequence unpublishable. You must own the mailbox or hold its send permission on a shared one; the signature must belong to that mailbox.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              },
              "required": [
                "uuid",
                "kind",
                "subject",
                "html",
                "unsubscribe",
                "variables",
                "attachments",
                "days"
              ]
            },
            "maxItems": 60,
            "description": "ALL the steps of the sequence in order, replacing the current ones. Up to 60 steps and 20 emails. Every step carries exactly the keys of its `kind` (`email`: `uuid`, `kind`, `subject`, `html`, `unsubscribe`, `variables`, `attachments`; `wait`: `uuid`, `kind`, `days`).",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                  }
                ]
              }
            ]
          }
        }
      },
      "EmailSequence.EmailSequenceDraftInput.jsonld": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "title",
          "expected_draft_version",
          "threading",
          "schedule",
          "exit_on_meeting",
          "exit_on_reply",
          "sender",
          "steps"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the sequence, 1 to 120 characters.",
            "example": "Follow-up after demo",
            "minLength": 1,
            "maxLength": 120
          },
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the sequence as you read it. If someone saved in between you get `draft_version_conflict` and nothing is saved.",
            "example": 3,
            "minimum": 1
          },
          "threading": {
            "type": "boolean",
            "description": "On: the first email creates the thread and the follow-ups reply in it, keeping the first subject (their `subject` must be `null`). Off: every email is separate and needs its own subject.",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails may leave: days of the week and a daily window. A wait is a minimum; the real send moves to the next slot this allows.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A meeting booked by the contact ends the enrollment. Needs the mailbox to read a Google Calendar to be detected (see `meeting_exit_undetectable`).",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply from the contact ends the enrollment. Automatic replies (out of office) only pause it.",
            "example": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of a connected Gmail mailbox you can send from: your own, or a shared one where you have the send permission. Get it from `list_email_senders`.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of a signature of that mailbox (also from `list_email_senders`), or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              }
            },
            "required": [
              "mailbox",
              "signature"
            ],
            "description": "Mailbox and signature the emails are sent from. `null` leaves it unset, which makes the sequence unpublishable. You must own the mailbox or hold its send permission on a shared one; the signature must belong to that mailbox.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              },
              "required": [
                "uuid",
                "kind",
                "subject",
                "html",
                "unsubscribe",
                "variables",
                "attachments",
                "days"
              ]
            },
            "maxItems": 60,
            "description": "ALL the steps of the sequence in order, replacing the current ones. Up to 60 steps and 20 emails. Every step carries exactly the keys of its `kind` (`email`: `uuid`, `kind`, `subject`, `html`, `unsubscribe`, `variables`, `attachments`; `wait`: `uuid`, `kind`, `days`).",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                  }
                ]
              }
            ]
          }
        }
      },
      "EmailSequence.EmailSequenceDuplicateInput": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the copy, 1 to 120 characters. If you leave it out, the copy is called like the original followed by « (copia)».",
            "example": "Follow-up after demo (Spanish)",
            "maxLength": 120
          }
        }
      },
      "EmailSequence.EmailSequenceDuplicateInput.jsonld": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the copy, 1 to 120 characters. If you leave it out, the copy is called like the original followed by « (copia)».",
            "example": "Follow-up after demo (Spanish)",
            "maxLength": 120
          }
        }
      },
      "EmailSequence.EmailSequencePublishInput": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "expected_draft_version"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft being published, as you read it. If it changed since, nothing is published and you get `draft_version_conflict`.",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "EmailSequence.EmailSequencePublishInput.jsonld": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "required": [
          "expected_draft_version"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft being published, as you read it. If it changed since, nothing is published and you get `draft_version_conflict`.",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "EmailSequence.jsonld-email_sequence.list": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the sequence.",
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the sequence, up to 120 characters. Empty in sequences created before titles existed: see `untitled`.",
            "example": "Follow-up after demo",
            "maxLength": 120
          },
          "untitled": {
            "type": "boolean",
            "description": "The sequence has no title.",
            "example": false,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceStatus",
            "description": "State of the sequence. `draft`: never published. `active`: published and open to new enrollments. `paused`: published but closed to new enrollments and sending nothing to anybody (paused with `pause_email_sequence`, or just restored). `archived`: hidden from the default list and closed to new enrollments, but the enrollments already running keep sending. `commercial-paused`: paused by Easymailing because the account lost CRM Pro; `reactivate_email_sequence` brings it back.",
            "example": "active",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what you edited is not what new enrollments will send until `publish_email_sequence`.",
            "example": true,
            "readOnly": true
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the draft.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the draft.",
            "example": 1,
            "minimum": 0,
            "readOnly": true
          },
          "active_enrollment_count": {
            "type": "integer",
            "description": "Enrollments still running (not exited).",
            "example": 7,
            "minimum": 0,
            "readOnly": true
          },
          "total_days": {
            "type": "integer",
            "description": "Sum of the days of the waits in the draft: how long the sequence lasts from its first email to its last.",
            "example": 3,
            "minimum": 0,
            "readOnly": true
          },
          "last_activity_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last event of the sequence (enrollment, send, exit…), ISO 8601. `null` while nothing has happened.",
            "example": "2026-10-30T16:20:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sequence was last edited or published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "published_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) of the current published version: the one every new enrollment uses. `null` without a published version or sender.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "can_enroll": {
            "type": "boolean",
            "description": "Whether the user who owns the token can enroll contacts right now: the sequence is `active`, its published sender is sound and the user owns that mailbox or has the send permission on it.",
            "example": true,
            "readOnly": true
          }
        }
      },
      "EmailSequence.jsonld-email_sequence.read": {
        "type": "object",
        "description": "Email sequences of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_email_sequences_api.py;\nthe texts are the proposal's. Every operation checks its capability in the provider or processor before anything\nelse ({@see \\App\\Application\\Crm\\ApiEmailSequenceAccess}), because API Platform evaluates `security` after the\nprovider. The rules, transactions and authority live in the CoreBundle use cases (`Service\\App\\Automation\\Sequences`).\n\nThe list shows the summary; every other operation answers the whole sequence as it is afterwards. `delete` answers\n202 without a body: the purge ends in the background (EmailSequenceTombstone). `/email_sequences/personalization_tags`\nis list_email_sequence_personalization_tags, not a sequence.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the sequence.",
            "example": "b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the sequence, up to 120 characters. Empty in sequences created before titles existed: see `untitled`.",
            "example": "Follow-up after demo",
            "maxLength": 120
          },
          "untitled": {
            "type": "boolean",
            "description": "The sequence has no title.",
            "example": false,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceStatus",
            "description": "State of the sequence. `draft`: never published. `active`: published and open to new enrollments. `paused`: published but closed to new enrollments and sending nothing to anybody (paused with `pause_email_sequence`, or just restored). `archived`: hidden from the default list and closed to new enrollments, but the enrollments already running keep sending. `commercial-paused`: paused by Easymailing because the account lost CRM Pro; `reactivate_email_sequence` brings it back.",
            "example": "active",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what you edited is not what new enrollments will send until `publish_email_sequence`.",
            "example": true,
            "readOnly": true
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the draft.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the draft.",
            "example": 1,
            "minimum": 0,
            "readOnly": true
          },
          "active_enrollment_count": {
            "type": "integer",
            "description": "Enrollments still running (not exited).",
            "example": 7,
            "minimum": 0,
            "readOnly": true
          },
          "total_days": {
            "type": "integer",
            "description": "Sum of the days of the waits in the draft: how long the sequence lasts from its first email to its last.",
            "example": 3,
            "minimum": 0,
            "readOnly": true
          },
          "last_activity_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last event of the sequence (enrollment, send, exit…), ISO 8601. `null` while nothing has happened.",
            "example": "2026-10-30T16:20:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the sequence was last edited or published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "published_sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) of the current published version: the one every new enrollment uses. `null` without a published version or sender.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "can_enroll": {
            "type": "boolean",
            "description": "Whether the user who owns the token can enroll contacts right now: the sequence is `active`, its published sender is sound and the user owns that mailbox or has the send permission on it.",
            "example": true,
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Concurrency token of the draft. Send it back as `expected_draft_version` to `update_email_sequence_draft` and `publish_email_sequence`; every save and publish raises it.",
            "example": 3,
            "minimum": 1,
            "readOnly": true
          },
          "threading": {
            "type": "boolean",
            "description": "Follow-ups keep the first subject and reply in the same email thread (default `true`).",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails may leave: days of the week and daily window. A wait is a minimum; the real send moves to the next slot this allows.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A meeting booked by the contact ends the enrollment.",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply from the contact ends the enrollment (automatic replies only pause it).",
            "example": true
          },
          "meeting_exit_undetectable": {
            "type": "boolean",
            "description": "Some live enrollment exits on meetings but its mailbox has no Google Calendar connected for reading, so that exit cannot be detected.",
            "example": false,
            "readOnly": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender (mailbox and signature) chosen in the draft, shown even if the user cannot send from it. `null` while none is chosen; a sequence without sender cannot be published.",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "sender_problem": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSequenceSenderProblem"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the current published version takes no new enrollments because of its sender: `missing` (no sender), `mailbox_unavailable` (disconnected or unusable), `not_allowed` (whoever published it lost the send permission) or `signature_missing` (the signature is gone). `null` when sound or unpublished.",
            "example": null,
            "readOnly": true
          },
          "stats": {
            "type": "object",
            "properties": {
              "enrolled": {
                "type": "integer",
                "description": "Every enrollment ever created, live or finished.",
                "example": 12,
                "minimum": 0
              },
              "sent": {
                "type": "integer",
                "description": "Emails sent.",
                "example": 31,
                "minimum": 0
              },
              "replied": {
                "type": "integer",
                "description": "Enrollments that ended because the contact replied.",
                "example": 3,
                "minimum": 0
              },
              "meetings": {
                "type": "integer",
                "description": "Enrollments that ended because the contact booked a meeting.",
                "example": 1,
                "minimum": 0
              },
              "bounced": {
                "type": "integer",
                "description": "Enrollments that ended because an email bounced.",
                "example": 0,
                "minimum": 0
              },
              "unsubscribed": {
                "type": "integer",
                "description": "Enrollments that ended because the contact unsubscribed.",
                "example": 1,
                "minimum": 0
              },
              "excluded": {
                "type": "integer",
                "description": "Enrollments that ended for any other reason than the ones above and completion (manual exclusion, invalid or suppressed address, contact removed…).",
                "example": 1,
                "minimum": 0
              },
              "completed": {
                "type": "integer",
                "description": "Enrollments that received every email.",
                "example": 5,
                "minimum": 0
              }
            },
            "description": "Counts of the sequence: enrollments by exit reason and emails sent. `get_email_sequence_statistics` adds replies per email and a daily series.",
            "example": {
              "enrolled": 12,
              "sent": 31,
              "replied": 3,
              "meetings": 1,
              "bounced": 0,
              "unsubscribed": 1,
              "excluded": 1,
              "completed": 5
            },
            "readOnly": true
          },
          "step_stats": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "`uuid` of the email step.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent from that step.",
                  "example": 12,
                  "minimum": 0
                }
              }
            },
            "description": "Emails sent per email of the current published version.",
            "example": [
              {
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "sent": 12
              },
              {
                "step_uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "sent": 19
              }
            ],
            "readOnly": true
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              }
            },
            "description": "The steps of the DRAFT, in order.",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62",
                    "filename": "Price sheet 2026.pdf",
                    "size_bytes": 482113,
                    "mime_type": "application/pdf"
                  }
                ]
              }
            ]
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-10-30T09:15:00+00:00"
                },
                "published_by": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the account member who published it.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "email_count": {
                  "type": "integer",
                  "description": "Emails in that version.",
                  "example": 2,
                  "minimum": 0
                },
                "wait_count": {
                  "type": "integer",
                  "description": "Waits in that version.",
                  "example": 1,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Read one with `get_email_sequence_version`.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-10-30T09:15:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "email_count": 2,
                "wait_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-10-20T08:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "email_count": 2,
                "wait_count": 1
              }
            ],
            "readOnly": true
          }
        }
      },
      "EmailSequenceActivity-email_sequence_activity.read": {
        "type": "object",
        "description": "`list_email_sequence_activity` (fase 5): the events of a sequence, newest first. Generated from the proposal by\nfase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. An event has no reading of its own: the item\nroute only names its `@id`, never exposed. `sequenceUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the event.",
            "example": "92c4e6a8-1b3d-4f57-8a09-c1e3b5d7f924"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceEventType",
            "description": "Kind of event. `enrolled`, `email_sent`, `exited` (the enrollment finished; `reason` says why), `completed`, `paused` / `resumed` / `retried` (of an enrollment), `failed` (an email failed), and, of the sequence itself, `commercial_paused`, `reactivated`, `archived` and `restored`.",
            "example": "email_sent"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Machine reason of the event: the exit reason, the pause reason or the failure code. `null` when it has none.",
            "example": "reply"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it happened, ISO 8601.",
            "example": "2026-10-31T09:00:00+00:00"
          },
          "actor": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member.",
                "example": "Sergio Gallego"
              }
            },
            "description": "Who acted: the person who enrolled, paused, excluded… `null` for the engine (an email sent, a reply detected) or when that person is no longer a member.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "name": "Sergio Gallego"
            }
          },
          "enrollment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the enrollment the event belongs to. `null` on events of the sequence itself.",
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          },
          "contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact. `null` on events of the sequence itself.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contact_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the contact. `null` when `privacy` is `aggregate`, the contact has no name or no longer exists.",
            "example": "Ana García"
          },
          "recipient_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address of the recipient. `null` when `privacy` is `aggregate`.",
            "example": "ana@example.com"
          },
          "email_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Position of the email among the emails of the enrolled version, for events tied to one.",
            "example": 1,
            "minimum": 1
          },
          "privacy": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequencePrivacy",
            "description": "`full`, or `aggregate` when the user cannot read contacts: then names and addresses are `null`.",
            "example": "full"
          },
          "email": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the synchronized email. Read it with `get_email` passing this row's `contact` as `contact`.",
                "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
              },
              "access": {
                "$ref": "#/components/schemas/EmailAccessLevel",
                "description": "How much of the email the user may see, decided by the access to the mailbox.",
                "example": "subject_and_metadata"
              },
              "content_state": {
                "$ref": "#/components/schemas/EmailContentState",
                "description": "Whether the body is available: `index_only`, `hydrating`, `full` or `unavailable`.",
                "example": "full"
              },
              "subject": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Subject. `null` when the access does not allow it.",
                "example": "Quick follow-up on our demo"
              },
              "snippet": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Start of the email. `null` when the access does not allow it.",
                "example": "Hi Ana, Thanks for your time on Tuesday…"
              },
              "preview": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The snippet without the quoted previous email or the unsubscribe footer.",
                "example": "Hi Ana, Thanks for your time on Tuesday…"
              },
              "sender_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the sender.",
                "example": "Sergio Gallego"
              },
              "sender_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the sender.",
                "example": "sergio@easymailing.com"
              },
              "recipient_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the first recipient.",
                "example": "Ana García"
              },
              "recipient_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the first recipient.",
                "example": "ana@example.com"
              },
              "recipient_others": {
                "type": "integer",
                "description": "Other recipients besides the first one.",
                "example": 0,
                "minimum": 0
              },
              "attachment_count": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Attachments of the email. `null` when unknown.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "On `email_sent`, the copy of the sent email; on an `exited` with reason `reply`, the reply that ended the enrollment. `null` on other events, with `privacy` `aggregate`, before the sent copy is synchronized, or when the user cannot read that mailbox.",
            "example": {
              "uuid": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35",
              "access": "subject_and_metadata",
              "content_state": "full",
              "subject": "Quick follow-up on our demo",
              "snippet": "Hi Ana, Thanks for your time on Tuesday…",
              "preview": "Hi Ana, Thanks for your time on Tuesday…",
              "sender_name": "Sergio Gallego",
              "sender_address": "sergio@easymailing.com",
              "recipient_name": "Ana García",
              "recipient_address": "ana@example.com",
              "recipient_others": 0,
              "attachment_count": 0
            }
          }
        }
      },
      "EmailSequenceActivity.jsonld-email_sequence_activity.read": {
        "type": "object",
        "description": "`list_email_sequence_activity` (fase 5): the events of a sequence, newest first. Generated from the proposal by\nfase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. An event has no reading of its own: the item\nroute only names its `@id`, never exposed. `sequenceUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the event.",
            "example": "92c4e6a8-1b3d-4f57-8a09-c1e3b5d7f924"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceEventType",
            "description": "Kind of event. `enrolled`, `email_sent`, `exited` (the enrollment finished; `reason` says why), `completed`, `paused` / `resumed` / `retried` (of an enrollment), `failed` (an email failed), and, of the sequence itself, `commercial_paused`, `reactivated`, `archived` and `restored`.",
            "example": "email_sent"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Machine reason of the event: the exit reason, the pause reason or the failure code. `null` when it has none.",
            "example": "reply"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it happened, ISO 8601.",
            "example": "2026-10-31T09:00:00+00:00"
          },
          "actor": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the member.",
                "example": "Sergio Gallego"
              }
            },
            "description": "Who acted: the person who enrolled, paused, excluded… `null` for the engine (an email sent, a reply detected) or when that person is no longer a member.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "name": "Sergio Gallego"
            }
          },
          "enrollment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the enrollment the event belongs to. `null` on events of the sequence itself.",
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          },
          "contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the contact. `null` on events of the sequence itself.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contact_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the contact. `null` when `privacy` is `aggregate`, the contact has no name or no longer exists.",
            "example": "Ana García"
          },
          "recipient_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address of the recipient. `null` when `privacy` is `aggregate`.",
            "example": "ana@example.com"
          },
          "email_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Position of the email among the emails of the enrolled version, for events tied to one.",
            "example": 1,
            "minimum": 1
          },
          "privacy": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequencePrivacy",
            "description": "`full`, or `aggregate` when the user cannot read contacts: then names and addresses are `null`.",
            "example": "full"
          },
          "email": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the synchronized email. Read it with `get_email` passing this row's `contact` as `contact`.",
                "example": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35"
              },
              "access": {
                "$ref": "#/components/schemas/EmailAccessLevel",
                "description": "How much of the email the user may see, decided by the access to the mailbox.",
                "example": "subject_and_metadata"
              },
              "content_state": {
                "$ref": "#/components/schemas/EmailContentState",
                "description": "Whether the body is available: `index_only`, `hydrating`, `full` or `unavailable`.",
                "example": "full"
              },
              "subject": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Subject. `null` when the access does not allow it.",
                "example": "Quick follow-up on our demo"
              },
              "snippet": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Start of the email. `null` when the access does not allow it.",
                "example": "Hi Ana, Thanks for your time on Tuesday…"
              },
              "preview": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The snippet without the quoted previous email or the unsubscribe footer.",
                "example": "Hi Ana, Thanks for your time on Tuesday…"
              },
              "sender_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the sender.",
                "example": "Sergio Gallego"
              },
              "sender_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the sender.",
                "example": "sergio@easymailing.com"
              },
              "recipient_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the first recipient.",
                "example": "Ana García"
              },
              "recipient_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the first recipient.",
                "example": "ana@example.com"
              },
              "recipient_others": {
                "type": "integer",
                "description": "Other recipients besides the first one.",
                "example": 0,
                "minimum": 0
              },
              "attachment_count": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Attachments of the email. `null` when unknown.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "On `email_sent`, the copy of the sent email; on an `exited` with reason `reply`, the reply that ended the enrollment. `null` on other events, with `privacy` `aggregate`, before the sent copy is synchronized, or when the user cannot read that mailbox.",
            "example": {
              "uuid": "b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35",
              "access": "subject_and_metadata",
              "content_state": "full",
              "subject": "Quick follow-up on our demo",
              "snippet": "Hi Ana, Thanks for your time on Tuesday…",
              "preview": "Hi Ana, Thanks for your time on Tuesday…",
              "sender_name": "Sergio Gallego",
              "sender_address": "sergio@easymailing.com",
              "recipient_name": "Ana García",
              "recipient_address": "ana@example.com",
              "recipient_others": 0,
              "attachment_count": 0
            }
          }
        }
      },
      "EmailSequenceAsset-email_sequence_asset.read": {
        "type": "object",
        "description": "`upload_email_sequence_asset` (fase 5): one file to attach to an email of a sequence, stored under the UUID the\ncaller chose. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's.\nThe body is the raw file (`deserialize: false`): the processor checks `Content-Type` before it opens the body, as\n`upload_email_attachment`.",
        "deprecated": false,
        "properties": {
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence the asset belongs to.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "asset_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the asset, the one you chose.",
            "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
          },
          "filename": {
            "type": "string",
            "description": "Name of the file as stored.",
            "example": "Price sheet 2026.pdf"
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20,971,520 through the public API).",
            "example": 482113,
            "minimum": 1,
            "maximum": 20971520
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file.",
            "example": "application/pdf"
          }
        }
      },
      "EmailSequenceAsset.jsonld-email_sequence_asset.read": {
        "type": "object",
        "description": "`upload_email_sequence_asset` (fase 5): one file to attach to an email of a sequence, stored under the UUID the\ncaller chose. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's.\nThe body is the raw file (`deserialize: false`): the processor checks `Content-Type` before it opens the body, as\n`upload_email_attachment`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence the asset belongs to.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "asset_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the asset, the one you chose.",
            "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
          },
          "filename": {
            "type": "string",
            "description": "Name of the file as stored.",
            "example": "Price sheet 2026.pdf"
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20,971,520 through the public API).",
            "example": 482113,
            "minimum": 1,
            "maximum": 20971520
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file.",
            "example": "application/pdf"
          }
        }
      },
      "EmailSequenceEnrollment-email_sequence_enrollment.read": {
        "type": "object",
        "description": "Enrollments of an email sequence (fase 5): the list and the four actions on one of them. Generated from the proposal\nby fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. The actions answer 204 without a body, as in\nthe panel; there is no reading of one enrollment (the list is its card). `sequenceUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the enrollment. Use it in the enrollment actions.",
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the enrolled contact.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contact_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the contact. `null` when `privacy` is `aggregate`, the contact has no name or no longer exists.",
            "example": "Ana García"
          },
          "recipient_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address the emails go to, fixed for the whole enrollment. `null` when `privacy` is `aggregate`.",
            "example": "ana@example.com"
          },
          "sender": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member who owns the sending mailbox.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "mailbox_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the sending mailbox. `null` while that mailbox is not connected. Its content is never exposed.",
                "example": "sergio@easymailing.com"
              }
            },
            "description": "Who sends the emails of this enrollment.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "mailbox_address": "sergio@easymailing.com"
            }
          },
          "revision": {
            "type": "integer",
            "description": "Revision of the published version the enrollment runs on; it never changes.",
            "example": 2,
            "minimum": 1
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceEnrollmentStatus",
            "description": "State of the enrollment. Live: `scheduled` (waiting for a future start), `active`, `paused` (paused by a person), `automatic-reply` (paused by an out-of-office reply; resume it to go on), `technical-error` (an email failed or its result is uncertain: retry it or exclude the enrollment). Finished: `completed`, `replied`, `meeting-booked`, `bounced`, `excluded` (any other exit, see `exit_reason`).",
            "example": "active"
          },
          "current_email": {
            "type": "integer",
            "description": "Position of the current email among the emails of the enrolled version.",
            "example": 2,
            "minimum": 1
          },
          "next_send_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Next attempt, ISO 8601, while the next email is pending or being retried. `null` when finished, paused or not scheduled yet.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "requested_start_at": {
            "type": "string",
            "format": "date-time",
            "description": "Start asked for when enrolling (the enrollment time when `start` was `now`), ISO 8601.",
            "example": "2026-10-30T16:20:00+00:00"
          },
          "effective_start_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the first send, ISO 8601. `null` until it happens.",
            "example": "2026-10-31T09:00:00+00:00"
          },
          "exit_reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSequenceExitReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the enrollment finished. `null` while live.",
            "example": null
          },
          "exited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it finished, ISO 8601. `null` while live.",
            "example": "2026-11-02T10:00:00+00:00"
          },
          "privacy": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequencePrivacy",
            "description": "`full`, or `aggregate` when the user cannot read contacts (`contacts.read`): then the name and the address are `null`.",
            "example": "full"
          },
          "actionable": {
            "type": "boolean",
            "description": "Whether the user who owns the token may pause, resume, exclude or retry this enrollment: its sender, or a user with `automations.manage`. `false` once it finished or while the result of its email is uncertain.",
            "example": true
          },
          "emails_sent": {
            "type": "integer",
            "description": "Emails of the sequence already sent to this enrollment.",
            "example": 1,
            "minimum": 0
          },
          "next_email": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "position": {
                "type": "integer",
                "description": "Position of the email among the emails of the enrolled version.",
                "example": 2,
                "minimum": 1
              },
              "subject": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Subject template of that email, with its tags unresolved; a threaded follow-up shows «Re: » and the first subject.",
                "example": "Re: Quick follow-up on our demo"
              }
            },
            "description": "The email that leaves next. `null` once the enrollment finished.",
            "example": {
              "position": 2,
              "subject": "Re: Quick follow-up on our demo"
            }
          }
        }
      },
      "EmailSequenceEnrollment.jsonld-email_sequence_enrollment.read": {
        "type": "object",
        "description": "Enrollments of an email sequence (fase 5): the list and the four actions on one of them. Generated from the proposal\nby fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. The actions answer 204 without a body, as in\nthe panel; there is no reading of one enrollment (the list is its card). `sequenceUuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the enrollment. Use it in the enrollment actions.",
            "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the enrolled contact.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contact_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the contact. `null` when `privacy` is `aggregate`, the contact has no name or no longer exists.",
            "example": "Ana García"
          },
          "recipient_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address the emails go to, fixed for the whole enrollment. `null` when `privacy` is `aggregate`.",
            "example": "ana@example.com"
          },
          "sender": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member who owns the sending mailbox.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "mailbox_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the sending mailbox. `null` while that mailbox is not connected. Its content is never exposed.",
                "example": "sergio@easymailing.com"
              }
            },
            "description": "Who sends the emails of this enrollment.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "mailbox_address": "sergio@easymailing.com"
            }
          },
          "revision": {
            "type": "integer",
            "description": "Revision of the published version the enrollment runs on; it never changes.",
            "example": 2,
            "minimum": 1
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceEnrollmentStatus",
            "description": "State of the enrollment. Live: `scheduled` (waiting for a future start), `active`, `paused` (paused by a person), `automatic-reply` (paused by an out-of-office reply; resume it to go on), `technical-error` (an email failed or its result is uncertain: retry it or exclude the enrollment). Finished: `completed`, `replied`, `meeting-booked`, `bounced`, `excluded` (any other exit, see `exit_reason`).",
            "example": "active"
          },
          "current_email": {
            "type": "integer",
            "description": "Position of the current email among the emails of the enrolled version.",
            "example": 2,
            "minimum": 1
          },
          "next_send_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Next attempt, ISO 8601, while the next email is pending or being retried. `null` when finished, paused or not scheduled yet.",
            "example": "2026-11-03T09:00:00+00:00"
          },
          "requested_start_at": {
            "type": "string",
            "format": "date-time",
            "description": "Start asked for when enrolling (the enrollment time when `start` was `now`), ISO 8601.",
            "example": "2026-10-30T16:20:00+00:00"
          },
          "effective_start_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the first send, ISO 8601. `null` until it happens.",
            "example": "2026-10-31T09:00:00+00:00"
          },
          "exit_reason": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSequenceExitReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the enrollment finished. `null` while live.",
            "example": null
          },
          "exited_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it finished, ISO 8601. `null` while live.",
            "example": "2026-11-02T10:00:00+00:00"
          },
          "privacy": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequencePrivacy",
            "description": "`full`, or `aggregate` when the user cannot read contacts (`contacts.read`): then the name and the address are `null`.",
            "example": "full"
          },
          "actionable": {
            "type": "boolean",
            "description": "Whether the user who owns the token may pause, resume, exclude or retry this enrollment: its sender, or a user with `automations.manage`. `false` once it finished or while the result of its email is uncertain.",
            "example": true
          },
          "emails_sent": {
            "type": "integer",
            "description": "Emails of the sequence already sent to this enrollment.",
            "example": 1,
            "minimum": 0
          },
          "next_email": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "position": {
                "type": "integer",
                "description": "Position of the email among the emails of the enrolled version.",
                "example": 2,
                "minimum": 1
              },
              "subject": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Subject template of that email, with its tags unresolved; a threaded follow-up shows «Re: » and the first subject.",
                "example": "Re: Quick follow-up on our demo"
              }
            },
            "description": "The email that leaves next. `null` once the enrollment finished.",
            "example": {
              "position": 2,
              "subject": "Re: Quick follow-up on our demo"
            }
          }
        }
      },
      "EmailSequenceEnrollmentRun-email_sequence_enrollment_run.read": {
        "type": "object",
        "description": "`enroll_contacts_in_email_sequence` (fase 5, decision 36): the outcome of enrolling up to 25 contacts, one entry per\ncontact. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. A POST\nthat answers 200: it creates enrollments, not a resource with a reading of its own. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "enrolled": {
            "type": "integer",
            "description": "Contacts enrolled.",
            "example": 1,
            "minimum": 0
          },
          "skipped": {
            "type": "integer",
            "description": "Contacts not enrolled on purpose, see `reason`.",
            "example": 1,
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "description": "Contacts that could not be enrolled because of an error that applies to the request.",
            "example": 0,
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "contact": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "outcome": {
                  "$ref": "#/components/schemas/EmailSequenceEnrollmentOutcome",
                  "description": "What happened to the contact.",
                  "example": "enrolled"
                },
                "reason": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/EmailSequenceEnrollmentReason"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why it was skipped or failed, or `reentered` for an enrolled contact that had finished this sequence before. `null` otherwise.",
                  "example": null
                },
                "enrollment": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the enrollment, to use in the enrollment actions. `null` unless `outcome` is `enrolled`.",
                  "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
                }
              }
            },
            "description": "One entry per contact, in the order sent. `outcome` is `enrolled` (`reason` is `reentered` when the contact had already finished this sequence before and entered again), `skipped` or `failed`. A contact is `skipped` with `reason` `no_email` (no valid primary email), `opted_out` (the address unsubscribed from CRM emails), `enrollment_conflict` (that address is already in a live sequence: an address can be in only one at a time), `recipient_not_contact_email` or `contact_not_found`. If the engine refuses something that applies to the whole request while enrolling (`sequence_not_publishable_entry`, `sender_not_allowed`, `sequence_sender_missing`, `sequence_sender_revoked`, `mailbox_unavailable` or `signature_foreign`), that contact is `failed` with that `reason` and every contact after it is `skipped` with the same `reason`.",
            "example": []
          }
        }
      },
      "EmailSequenceEnrollmentRun.EmailSequenceEnrollInput": {
        "type": "object",
        "description": "`enroll_contacts_in_email_sequence` (fase 5, decision 36): the outcome of enrolling up to 25 contacts, one entry per\ncontact. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. A POST\nthat answers 200: it creates enrollments, not a resource with a reading of its own. `uuid` is only the path.",
        "deprecated": false,
        "required": [
          "contacts"
        ],
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 25,
            "description": "IRIs of the contacts to enroll, 1 to 25: `/contacts/{uuid}`. They are enrolled at their primary email address.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
              "/contacts/8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
            ]
          },
          "start": {
            "type": "string",
            "description": "`now` (default): the first email goes at the first slot the schedule allows. Or an ISO 8601 date and time with offset in the future: the first email goes at the first slot from then on.",
            "example": "now",
            "default": "now"
          }
        }
      },
      "EmailSequenceEnrollmentRun.EmailSequenceEnrollInput.jsonld": {
        "type": "object",
        "description": "`enroll_contacts_in_email_sequence` (fase 5, decision 36): the outcome of enrolling up to 25 contacts, one entry per\ncontact. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. A POST\nthat answers 200: it creates enrollments, not a resource with a reading of its own. `uuid` is only the path.",
        "deprecated": false,
        "required": [
          "contacts"
        ],
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 25,
            "description": "IRIs of the contacts to enroll, 1 to 25: `/contacts/{uuid}`. They are enrolled at their primary email address.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
              "/contacts/8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
            ]
          },
          "start": {
            "type": "string",
            "description": "`now` (default): the first email goes at the first slot the schedule allows. Or an ISO 8601 date and time with offset in the future: the first email goes at the first slot from then on.",
            "example": "now",
            "default": "now"
          }
        }
      },
      "EmailSequenceEnrollmentRun.jsonld-email_sequence_enrollment_run.read": {
        "type": "object",
        "description": "`enroll_contacts_in_email_sequence` (fase 5, decision 36): the outcome of enrolling up to 25 contacts, one entry per\ncontact. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. A POST\nthat answers 200: it creates enrollments, not a resource with a reading of its own. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "enrolled": {
            "type": "integer",
            "description": "Contacts enrolled.",
            "example": 1,
            "minimum": 0
          },
          "skipped": {
            "type": "integer",
            "description": "Contacts not enrolled on purpose, see `reason`.",
            "example": 1,
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "description": "Contacts that could not be enrolled because of an error that applies to the request.",
            "example": 0,
            "minimum": 0
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "contact": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "outcome": {
                  "$ref": "#/components/schemas/EmailSequenceEnrollmentOutcome",
                  "description": "What happened to the contact.",
                  "example": "enrolled"
                },
                "reason": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/EmailSequenceEnrollmentReason"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why it was skipped or failed, or `reentered` for an enrolled contact that had finished this sequence before. `null` otherwise.",
                  "example": null
                },
                "enrollment": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the enrollment, to use in the enrollment actions. `null` unless `outcome` is `enrolled`.",
                  "example": "1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78"
                }
              }
            },
            "description": "One entry per contact, in the order sent. `outcome` is `enrolled` (`reason` is `reentered` when the contact had already finished this sequence before and entered again), `skipped` or `failed`. A contact is `skipped` with `reason` `no_email` (no valid primary email), `opted_out` (the address unsubscribed from CRM emails), `enrollment_conflict` (that address is already in a live sequence: an address can be in only one at a time), `recipient_not_contact_email` or `contact_not_found`. If the engine refuses something that applies to the whole request while enrolling (`sequence_not_publishable_entry`, `sender_not_allowed`, `sequence_sender_missing`, `sequence_sender_revoked`, `mailbox_unavailable` or `signature_foreign`), that contact is `failed` with that `reason` and every contact after it is `skipped` with the same `reason`.",
            "example": []
          }
        }
      },
      "EmailSequencePersonalizationTag-email_sequence_personalization_tag.read": {
        "type": "object",
        "description": "`list_email_sequence_personalization_tags` (fase 5): the tags the emails of a sequence can use. Generated from the\nproposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Tag id: the value of `data-email-tag-id` in the body, of `{{ id }}` in the subject and of `tag` in `variables`.",
            "example": "contact.first_name"
          },
          "label": {
            "type": "string",
            "description": "Visible name of the tag.",
            "example": "First name"
          },
          "group": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceTagGroup",
            "description": "Whose data the tag shows: the contact, the company of the contact or the sender of the sequence.",
            "example": "contact"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Id of the level.",
                  "example": "location"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the level.",
                  "example": "Location"
                }
              }
            },
            "description": "Position of the tag in its field hierarchy, for example Location › City. Empty for flat fields.",
            "example": []
          },
          "semantic_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of data the field holds. `null` when it has none.",
            "example": "first_name"
          },
          "allows_default": {
            "type": "boolean",
            "description": "Whether a default value (`data-email-tag-fallback`) can be set for the tag.",
            "example": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagAvailability",
            "description": "`ready` tags can be used now. `pending` ones are listed but their data is not available yet.",
            "example": "ready"
          }
        }
      },
      "EmailSequencePersonalizationTag.jsonld-email_sequence_personalization_tag.read": {
        "type": "object",
        "description": "`list_email_sequence_personalization_tags` (fase 5): the tags the emails of a sequence can use. Generated from the\nproposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Tag id: the value of `data-email-tag-id` in the body, of `{{ id }}` in the subject and of `tag` in `variables`.",
            "example": "contact.first_name"
          },
          "label": {
            "type": "string",
            "description": "Visible name of the tag.",
            "example": "First name"
          },
          "group": {
            "type": "string",
            "$ref": "#/components/schemas/EmailSequenceTagGroup",
            "description": "Whose data the tag shows: the contact, the company of the contact or the sender of the sequence.",
            "example": "contact"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Id of the level.",
                  "example": "location"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the level.",
                  "example": "Location"
                }
              }
            },
            "description": "Position of the tag in its field hierarchy, for example Location › City. Empty for flat fields.",
            "example": []
          },
          "semantic_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of data the field holds. `null` when it has none.",
            "example": "first_name"
          },
          "allows_default": {
            "type": "boolean",
            "description": "Whether a default value (`data-email-tag-fallback`) can be set for the tag.",
            "example": true
          },
          "availability": {
            "type": "string",
            "$ref": "#/components/schemas/EmailPersonalizationTagAvailability",
            "description": "`ready` tags can be used now. `pending` ones are listed but their data is not available yet.",
            "example": "ready"
          }
        }
      },
      "EmailSequenceStatistics-email_sequence_statistics.read": {
        "type": "object",
        "description": "`get_email_sequence_statistics` (fase 5): the counts of a sequence, per email and per day. Generated from the proposal\nby fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "totals": {
            "type": "object",
            "properties": {
              "enrolled": {
                "type": "integer",
                "description": "Every enrollment, live or finished.",
                "example": 12,
                "minimum": 0
              },
              "contacted": {
                "type": "integer",
                "description": "Enrollments that received at least one email: the base of the reply rate.",
                "example": 11,
                "minimum": 0
              },
              "active": {
                "type": "integer",
                "description": "Enrollments still running.",
                "example": 7,
                "minimum": 0
              },
              "sent": {
                "type": "integer",
                "description": "Emails sent.",
                "example": 31,
                "minimum": 0
              },
              "replied": {
                "type": "integer",
                "description": "Enrollments that exited by a reply.",
                "example": 3,
                "minimum": 0
              },
              "meetings": {
                "type": "integer",
                "description": "Enrollments that exited by a booked meeting.",
                "example": 1,
                "minimum": 0
              },
              "bounced": {
                "type": "integer",
                "description": "Enrollments that exited by a bounce.",
                "example": 0,
                "minimum": 0
              },
              "unsubscribed": {
                "type": "integer",
                "description": "Enrollments that exited by an unsubscribe.",
                "example": 1,
                "minimum": 0
              },
              "excluded": {
                "type": "integer",
                "description": "Manual exclusions.",
                "example": 1,
                "minimum": 0
              },
              "completed": {
                "type": "integer",
                "description": "Enrollments that received every email.",
                "example": 5,
                "minimum": 0
              }
            },
            "description": "Counts of the sequence.",
            "example": {
              "enrolled": 12,
              "contacted": 11,
              "active": 7,
              "sent": 31,
              "replied": 3,
              "meetings": 1,
              "bounced": 0,
              "unsubscribed": 1,
              "excluded": 1,
              "completed": 5
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "`uuid` of the email step.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the email.",
                  "example": 1,
                  "minimum": 1
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent from this step.",
                  "example": 12,
                  "minimum": 0
                },
                "replied": {
                  "type": "integer",
                  "description": "Exits by reply whose last received email was this one.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "One row per email of the current published version, in order.",
            "example": [
              {
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "position": 1,
                "sent": 12,
                "replied": 2
              }
            ]
          },
          "daily": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date",
                  "description": "Day, `YYYY-MM-DD`, in the requested time zone.",
                  "example": "2026-10-30"
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent that day.",
                  "example": 3,
                  "minimum": 0
                },
                "replied": {
                  "type": "integer",
                  "description": "Exits by reply detected that day.",
                  "example": 1,
                  "minimum": 0
                }
              }
            },
            "description": "The last 30 days up to today in the requested time zone, oldest first; days without activity are zero.",
            "example": [
              {
                "date": "2026-10-30",
                "sent": 3,
                "replied": 1
              },
              {
                "date": "2026-10-31",
                "sent": 0,
                "replied": 0
              }
            ]
          }
        }
      },
      "EmailSequenceStatistics.jsonld-email_sequence_statistics.read": {
        "type": "object",
        "description": "`get_email_sequence_statistics` (fase 5): the counts of a sequence, per email and per day. Generated from the proposal\nby fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "totals": {
            "type": "object",
            "properties": {
              "enrolled": {
                "type": "integer",
                "description": "Every enrollment, live or finished.",
                "example": 12,
                "minimum": 0
              },
              "contacted": {
                "type": "integer",
                "description": "Enrollments that received at least one email: the base of the reply rate.",
                "example": 11,
                "minimum": 0
              },
              "active": {
                "type": "integer",
                "description": "Enrollments still running.",
                "example": 7,
                "minimum": 0
              },
              "sent": {
                "type": "integer",
                "description": "Emails sent.",
                "example": 31,
                "minimum": 0
              },
              "replied": {
                "type": "integer",
                "description": "Enrollments that exited by a reply.",
                "example": 3,
                "minimum": 0
              },
              "meetings": {
                "type": "integer",
                "description": "Enrollments that exited by a booked meeting.",
                "example": 1,
                "minimum": 0
              },
              "bounced": {
                "type": "integer",
                "description": "Enrollments that exited by a bounce.",
                "example": 0,
                "minimum": 0
              },
              "unsubscribed": {
                "type": "integer",
                "description": "Enrollments that exited by an unsubscribe.",
                "example": 1,
                "minimum": 0
              },
              "excluded": {
                "type": "integer",
                "description": "Manual exclusions.",
                "example": 1,
                "minimum": 0
              },
              "completed": {
                "type": "integer",
                "description": "Enrollments that received every email.",
                "example": 5,
                "minimum": 0
              }
            },
            "description": "Counts of the sequence.",
            "example": {
              "enrolled": 12,
              "contacted": 11,
              "active": 7,
              "sent": 31,
              "replied": 3,
              "meetings": 1,
              "bounced": 0,
              "unsubscribed": 1,
              "excluded": 1,
              "completed": 5
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "`uuid` of the email step.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the email.",
                  "example": 1,
                  "minimum": 1
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent from this step.",
                  "example": 12,
                  "minimum": 0
                },
                "replied": {
                  "type": "integer",
                  "description": "Exits by reply whose last received email was this one.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "One row per email of the current published version, in order.",
            "example": [
              {
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "position": 1,
                "sent": 12,
                "replied": 2
              }
            ]
          },
          "daily": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date",
                  "description": "Day, `YYYY-MM-DD`, in the requested time zone.",
                  "example": "2026-10-30"
                },
                "sent": {
                  "type": "integer",
                  "description": "Emails sent that day.",
                  "example": 3,
                  "minimum": 0
                },
                "replied": {
                  "type": "integer",
                  "description": "Exits by reply detected that day.",
                  "example": 1,
                  "minimum": 0
                }
              }
            },
            "description": "The last 30 days up to today in the requested time zone, oldest first; days without activity are zero.",
            "example": [
              {
                "date": "2026-10-30",
                "sent": 3,
                "replied": 1
              },
              {
                "date": "2026-10-31",
                "sent": 0,
                "replied": 0
              }
            ]
          }
        }
      },
      "EmailSequenceValidation-email_sequence_validation.read": {
        "type": "object",
        "description": "`get_email_sequence_validation` (fase 5): what keeps the draft of a sequence from being published. Generated from the\nproposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "What is wrong. `missing_email`: no email step. `first_step_email`: the first step is a wait. `wait_required`: two emails in a row, or the sequence ends in a wait. `minimum_wait`: a wait is not 1 to 365 days. `empty_subject`: an email that needs a subject has none. `empty_rich_body`: an email has no visible text. `mandatory_unsubscribe`: the footer `prefix` or `link_label` is empty. `unsupported_unsubscribe_language`: the footer language is not one Easymailing is translated into. `variable_undeclared`: a tag is used but not in `variables`. `variable_unused`: a tag is in `variables` but not used. `unknown_tag`: a tag id is not in `list_email_sequence_personalization_tags`. `attachment_missing`: an attachment file does not exist. `attachments_too_large`: the attachments of one email add up to more than 25 MB. `too_many_emails`: more than 20 emails. `sender_missing`: no sender chosen. `sender_unavailable`: the mailbox is disconnected or cannot send. `sender_not_allowed`: the user cannot send from the mailbox. `signature_missing`: the signature is not of that mailbox.",
                  "example": "empty_subject"
                },
                "severity": {
                  "$ref": "#/components/schemas/EmailSequenceIssueSeverity",
                  "description": "Always `error` today: every problem stops the publication.",
                  "example": "error"
                },
                "step_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "`uuid` of the step the problem is in. `null` when it affects the whole sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                }
              }
            },
            "description": "Problems found, empty when the draft can be published.",
            "example": [
              {
                "code": "empty_subject",
                "severity": "error",
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
              }
            ]
          }
        }
      },
      "EmailSequenceValidation.jsonld-email_sequence_validation.read": {
        "type": "object",
        "description": "`get_email_sequence_validation` (fase 5): what keeps the draft of a sequence from being published. Generated from the\nproposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "What is wrong. `missing_email`: no email step. `first_step_email`: the first step is a wait. `wait_required`: two emails in a row, or the sequence ends in a wait. `minimum_wait`: a wait is not 1 to 365 days. `empty_subject`: an email that needs a subject has none. `empty_rich_body`: an email has no visible text. `mandatory_unsubscribe`: the footer `prefix` or `link_label` is empty. `unsupported_unsubscribe_language`: the footer language is not one Easymailing is translated into. `variable_undeclared`: a tag is used but not in `variables`. `variable_unused`: a tag is in `variables` but not used. `unknown_tag`: a tag id is not in `list_email_sequence_personalization_tags`. `attachment_missing`: an attachment file does not exist. `attachments_too_large`: the attachments of one email add up to more than 25 MB. `too_many_emails`: more than 20 emails. `sender_missing`: no sender chosen. `sender_unavailable`: the mailbox is disconnected or cannot send. `sender_not_allowed`: the user cannot send from the mailbox. `signature_missing`: the signature is not of that mailbox.",
                  "example": "empty_subject"
                },
                "severity": {
                  "$ref": "#/components/schemas/EmailSequenceIssueSeverity",
                  "description": "Always `error` today: every problem stops the publication.",
                  "example": "error"
                },
                "step_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "`uuid` of the step the problem is in. `null` when it affects the whole sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                }
              }
            },
            "description": "Problems found, empty when the draft can be published.",
            "example": [
              {
                "code": "empty_subject",
                "severity": "error",
                "step_uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
              }
            ]
          }
        }
      },
      "EmailSequenceVersion-email_sequence_version.read": {
        "type": "object",
        "description": "`get_email_sequence_version` (fase 5): one published version of a sequence, frozen. Generated from the proposal by\nfase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "revision": {
            "type": "integer",
            "description": "Revision number.",
            "example": 2,
            "minimum": 1
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "published_by": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the account member who published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the version.",
            "example": 2,
            "minimum": 0
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the version.",
            "example": 1,
            "minimum": 0
          },
          "threading": {
            "type": "boolean",
            "description": "Follow-ups keep the first subject and reply in the same thread.",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails of this version may leave.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A booked meeting ends the enrollment.",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply ends the enrollment.",
            "example": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender frozen with this version. `null` in versions published without one (they take no new enrollments).",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              }
            },
            "description": "The steps of the version, in order.",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62",
                    "filename": "Price sheet 2026.pdf",
                    "size_bytes": 482113,
                    "mime_type": "application/pdf"
                  }
                ]
              }
            ]
          }
        }
      },
      "EmailSequenceVersion.jsonld-email_sequence_version.read": {
        "type": "object",
        "description": "`get_email_sequence_version` (fase 5): one published version of a sequence, frozen. Generated from the proposal by\nfase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sequence": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the sequence.",
            "example": "/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35"
          },
          "revision": {
            "type": "integer",
            "description": "Revision number.",
            "example": 2,
            "minimum": 1
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was published, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "published_by": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the account member who published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
          },
          "email_count": {
            "type": "integer",
            "description": "Emails in the version.",
            "example": 2,
            "minimum": 0
          },
          "wait_count": {
            "type": "integer",
            "description": "Waits in the version.",
            "example": 1,
            "minimum": 0
          },
          "threading": {
            "type": "boolean",
            "description": "Follow-ups keep the first subject and reply in the same thread.",
            "example": true
          },
          "schedule": {
            "type": "object",
            "properties": {
              "time_zone": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "IANA time zone used for contacts that have none of their own (the time zone of the contact always comes first). `null` falls back to the time zone of the sender, then UTC.",
                "example": "Europe/Madrid"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Days of the week emails may leave, in week order, without repeats: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.",
                "example": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri"
                ]
              },
              "start": {
                "type": "string",
                "description": "Start of the daily sending window, `HH:00` or `HH:30` (24-hour clock, inclusive), in the effective time zone.",
                "example": "09:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              },
              "end": {
                "type": "string",
                "description": "End of the window (exclusive), `HH:00` or `HH:30`, later than `start`.",
                "example": "18:00",
                "pattern": "^([01][0-9]|2[0-3]):(00|30)$"
              }
            },
            "description": "When emails of this version may leave.",
            "example": {
              "time_zone": "Europe/Madrid",
              "weekdays": [
                "mon",
                "tue",
                "wed",
                "thu",
                "fri"
              ],
              "start": "09:00",
              "end": "18:00"
            }
          },
          "exit_on_meeting": {
            "type": "boolean",
            "description": "A booked meeting ends the enrollment.",
            "example": true
          },
          "exit_on_reply": {
            "type": "boolean",
            "description": "A human reply ends the enrollment.",
            "example": true
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mailbox": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the connected Gmail mailbox the emails are sent from.",
                "example": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of that mailbox. `null` when the mailbox no longer exists in the account.",
                "example": "sergio@easymailing.com"
              },
              "signature": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "UUID of the signature of that mailbox added to every email, or `null` for none.",
                "example": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36"
              },
              "signature_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that signature. `null` without signature or when it no longer exists.",
                "example": "Sergio, Easymailing"
              }
            },
            "description": "Sender frozen with this version. `null` in versions published without one (they take no new enrollments).",
            "example": {
              "mailbox": "f6a5b2c8-96eb-4d53-8240-b1de6a8f5379",
              "address": "sergio@easymailing.com",
              "signature": "d9b3e7a1-6c52-4a84-b7f0-2e8c5a1d9b36",
              "signature_name": "Sergio, Easymailing"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Identifier of the step, a lowercase UUID chosen by you (generate a new one for a new step; keep the existing one to keep a step). Unique within the sequence.",
                  "example": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02"
                },
                "kind": {
                  "$ref": "#/components/schemas/EmailSequenceStepKind",
                  "description": "`email` sends an email; `wait` pauses the enrollment. The first step must be an email, two emails need a wait between them and the last step must be an email to publish.",
                  "example": "email"
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Subject of an `email` step, up to 255 characters. With `threading` on, only the first email has a subject; the follow-ups MUST send `null` (they reply in the same thread with «Re: » and the first subject). Personalization in the subject uses `{{ tag.id }}` or `{{ tag.id | default: \"there\" }}`. Not sent for `wait` steps.",
                  "example": "Quick follow-up on our demo",
                  "maxLength": 255
                },
                "html": {
                  "type": "string",
                  "description": "Body of an `email` step as HTML, up to 131,072 characters, in the form the Customer App editor writes. Personalization goes in chips: `<span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>` (`data-email-tag-id` from `list_email_sequence_personalization_tags`, `data-email-tag-fallback` is the default when the contact has no value, `data-email-tag-required` holds the email until the contact has a value). Do NOT write the unsubscribe footer here: it is built from `unsubscribe`, and one written by hand is removed. Not sent for `wait` steps.",
                  "example": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>"
                },
                "unsubscribe": {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "description": "Language of the footer text as a BCP-47 tag made of a supported locale, such as `en-US` or `es-ES`. A language Easymailing is not translated into is refused when the sequence is published.",
                      "example": "en-US",
                      "pattern": "^[a-z]{2,3}-[A-Z]{2}$"
                    },
                    "template_id": {
                      "$ref": "#/components/schemas/EmailSequenceUnsubscribeTemplate",
                      "description": "Wording family the footer was written from.",
                      "example": "fewer"
                    },
                    "prefix": {
                      "type": "string",
                      "description": "Text before the unsubscribe link, up to 255 characters. It must not end with the link word (that is `link_label`). Cannot be empty to publish.",
                      "example": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                      "maxLength": 255
                    },
                    "link_label": {
                      "type": "string",
                      "description": "Text of the unsubscribe link, up to 64 characters. Cannot be empty to publish.",
                      "example": "here",
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "language",
                    "template_id",
                    "prefix",
                    "link_label"
                  ],
                  "description": "Footer of an `email` step that lets the recipient unsubscribe. Mandatory to publish. Not sent for `wait` steps.",
                  "example": {
                    "language": "en-US",
                    "template_id": "fewer",
                    "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                    "link_label": "here"
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "tag": {
                        "type": "string",
                        "description": "Tag id, as in `list_email_sequence_personalization_tags`.",
                        "example": "contact.first_name"
                      },
                      "fallback": {
                        "type": "string",
                        "description": "Always an empty string: the default value of a tag is stored in its chip or its `default:` filter.",
                        "example": "",
                        "maxLength": 255
                      },
                      "required": {
                        "type": "boolean",
                        "description": "Whether the email is held until the contact has a value for the tag (it leaves the sequence if it stays empty for 72 hours).",
                        "example": false
                      }
                    },
                    "required": [
                      "tag",
                      "fallback",
                      "required"
                    ]
                  },
                  "description": "Personalization tags used by an `email` step, one entry per distinct tag found in its subject and body (no more, no fewer: otherwise `variable_undeclared` or `variable_unused` stops the publication). Send `fallback` as an empty string (the default value lives in the chip) and `required: true` only for tags whose chip carries `data-email-tag-required`. Maximum 50. Not sent for `wait` steps.",
                  "example": [
                    {
                      "tag": "contact.first_name",
                      "fallback": "",
                      "required": false
                    }
                  ]
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_uuid": {
                        "type": "string",
                        "format": "uuid",
                        "description": "UUID you chose when you uploaded the file with `upload_email_sequence_asset`.",
                        "example": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                      },
                      "filename": {
                        "type": "string",
                        "description": "Name of the file. Read only: ignored if sent.",
                        "example": "Price sheet 2026.pdf",
                        "readOnly": true
                      },
                      "size_bytes": {
                        "type": "integer",
                        "description": "Size of the file in bytes. Read only: ignored if sent.",
                        "example": 482113,
                        "readOnly": true
                      },
                      "mime_type": {
                        "type": "string",
                        "description": "Media type of the file. Read only: ignored if sent.",
                        "example": "application/pdf",
                        "readOnly": true
                      }
                    },
                    "required": [
                      "asset_uuid"
                    ]
                  },
                  "description": "Files attached to an `email` step, at most 10 per email and 25 MB in total. Upload each with `upload_email_sequence_asset` first. Not sent for `wait` steps.",
                  "example": [
                    {
                      "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62"
                    }
                  ]
                },
                "days": {
                  "type": "integer",
                  "description": "Length of a `wait` step in whole days, 1 to 365. A wait is a minimum: the real send moves to the next slot the schedule allows. Only for `wait` steps.",
                  "example": 3,
                  "minimum": 1,
                  "maximum": 365
                }
              }
            },
            "description": "The steps of the version, in order.",
            "example": [
              {
                "uuid": "5e0c7a91-2b64-4d38-8f1a-9c3d6e4b7a02",
                "kind": "email",
                "subject": "Quick follow-up on our demo",
                "html": "<p>Hi <span data-email-tag data-email-tag-id=\"contact.first_name\" data-email-tag-label=\"First name\" data-email-tag-fallback=\"there\">First name</span>,</p><p>Thanks for your time on Tuesday. Shall I send you the proposal?</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [
                  {
                    "tag": "contact.first_name",
                    "fallback": "",
                    "required": false
                  }
                ],
                "attachments": []
              },
              {
                "uuid": "a8d4f2b6-7c19-4e53-b0a8-1d5e9c3f6b27",
                "kind": "wait",
                "days": 3
              },
              {
                "uuid": "c2e9b5d7-4a38-4f61-9d02-6b8a1f7e3c54",
                "kind": "email",
                "subject": null,
                "html": "<p>Hi again, I am following up on my last email. The price sheet is attached.</p>",
                "unsubscribe": {
                  "language": "en-US",
                  "template_id": "fewer",
                  "prefix": "If you do not want to receive more personal follow-ups, you can unsubscribe",
                  "link_label": "here"
                },
                "variables": [],
                "attachments": [
                  {
                    "asset_uuid": "7d2a9e4c-1f68-4b35-a8e0-3c5b7f1d9a62",
                    "filename": "Price sheet 2026.pdf",
                    "size_bytes": 482113,
                    "mime_type": "application/pdf"
                  }
                ]
              }
            ]
          }
        }
      },
      "File": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the file.",
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the file is attached to. A file belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileOwnerType",
            "description": "Kind of record the file is attached to.",
            "example": "contact"
          },
          "display_name": {
            "type": "string",
            "description": "Name the file is shown with. It starts as the `filename` sent to `create_file` and can be changed with `update_file`, keeping the same extension. Up to 255 characters.",
            "example": "Proposal Acme 2026.pdf"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional description, up to 2,000 characters. `null` when it has none.",
            "example": "Version signed by the client"
          },
          "original_name": {
            "type": "string",
            "description": "Name the file was declared with. It never changes; its extension decides the file type.",
            "example": "Proposal Acme 2026.pdf",
            "readOnly": true
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file, decided from the extension of the declared name. It is also the `Content-Type` of the download.",
            "example": "application/pdf",
            "readOnly": true
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20 MiB = 20,971,520).",
            "example": 482113,
            "minimum": 0,
            "maximum": 20971520,
            "readOnly": true
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileSource",
            "description": "Where the file is stored. Only `upload` (stored in Easymailing) exists today.",
            "example": "upload",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileStatus",
            "description": "State of the file. `available` once its content is stored; every read of the API returns only `available` files. `uploading` (declared, waiting for its content) and `analyzing` (content received, being checked) are seen only in the response of `create_file`, including when it is repeated with the same `Idempotency-Key`.",
            "example": "available",
            "readOnly": true
          },
          "previewable": {
            "type": "boolean",
            "description": "Whether the Easymailing app can show the file without downloading it (PDF and images). The API always delivers the bytes as an attachment.",
            "example": true,
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person or system that uploaded the file. `null` when unknown.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "Identifier of the uploader. Use it as the `created_by` filter of `list_files`.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account, and in the response of `create_file` (the name is filled in by later reads).",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the file; it grows with every edit of its name or description. Send it as `expected_version` to `update_file` and `delete_file`.",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file was declared, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file last changed, ISO 8601.",
            "example": "2026-10-30T09:16:00+00:00"
          }
        }
      },
      "File-file.read": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the file.",
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the file is attached to. A file belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileOwnerType",
            "description": "Kind of record the file is attached to.",
            "example": "contact"
          },
          "display_name": {
            "type": "string",
            "description": "Name the file is shown with. It starts as the `filename` sent to `create_file` and can be changed with `update_file`, keeping the same extension. Up to 255 characters.",
            "example": "Proposal Acme 2026.pdf"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional description, up to 2,000 characters. `null` when it has none.",
            "example": "Version signed by the client"
          },
          "original_name": {
            "type": "string",
            "description": "Name the file was declared with. It never changes; its extension decides the file type.",
            "example": "Proposal Acme 2026.pdf",
            "readOnly": true
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file, decided from the extension of the declared name. It is also the `Content-Type` of the download.",
            "example": "application/pdf",
            "readOnly": true
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20 MiB = 20,971,520).",
            "example": 482113,
            "minimum": 0,
            "maximum": 20971520,
            "readOnly": true
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileSource",
            "description": "Where the file is stored. Only `upload` (stored in Easymailing) exists today.",
            "example": "upload",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileStatus",
            "description": "State of the file. `available` once its content is stored; every read of the API returns only `available` files. `uploading` (declared, waiting for its content) and `analyzing` (content received, being checked) are seen only in the response of `create_file`, including when it is repeated with the same `Idempotency-Key`.",
            "example": "available",
            "readOnly": true
          },
          "previewable": {
            "type": "boolean",
            "description": "Whether the Easymailing app can show the file without downloading it (PDF and images). The API always delivers the bytes as an attachment.",
            "example": true,
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person or system that uploaded the file. `null` when unknown.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "Identifier of the uploader. Use it as the `created_by` filter of `list_files`.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account, and in the response of `create_file` (the name is filled in by later reads).",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the file; it grows with every edit of its name or description. Send it as `expected_version` to `update_file` and `delete_file`.",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file was declared, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file last changed, ISO 8601.",
            "example": "2026-10-30T09:16:00+00:00"
          }
        }
      },
      "File.FileCreateInput": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "required": [
          "record",
          "filename",
          "size_bytes"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the file is attached to: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. It cannot be changed afterwards.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "filename": {
            "type": "string",
            "description": "Name of the file, with its extension (one of: csv, tsv, txt, rtf, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, gif, jpg, jpeg, png, webp, svg, tif, tiff, zip, rar and tar). 1 to 255 characters, no `/` or `\\`.",
            "example": "Proposal Acme 2026.pdf",
            "minLength": 1,
            "maxLength": 255
          },
          "size_bytes": {
            "type": "integer",
            "description": "Exact size in bytes of the content you will send to `set_file_content`. 1 to 20,971,520 (20 MiB). If the content has another size it is refused and the upload fails.",
            "example": 482113,
            "minimum": 1,
            "maximum": 20971520
          }
        }
      },
      "File.FileCreateInput.jsonld": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "required": [
          "record",
          "filename",
          "size_bytes"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the file is attached to: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. It cannot be changed afterwards.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "filename": {
            "type": "string",
            "description": "Name of the file, with its extension (one of: csv, tsv, txt, rtf, pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, gif, jpg, jpeg, png, webp, svg, tif, tiff, zip, rar and tar). 1 to 255 characters, no `/` or `\\`.",
            "example": "Proposal Acme 2026.pdf",
            "minLength": 1,
            "maxLength": 255
          },
          "size_bytes": {
            "type": "integer",
            "description": "Exact size in bytes of the content you will send to `set_file_content`. 1 to 20,971,520 (20 MiB). If the content has another size it is refused and the upload fails.",
            "example": 482113,
            "minimum": 1,
            "maximum": 20971520
          }
        }
      },
      "File.FileUpdateInput": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "display_name": {
            "type": "string",
            "description": "New name, up to 255 characters, with the same extension as `original_name`. Omit it to keep the current one; it cannot be `null`.",
            "example": "Proposal Acme 2026 - signed.pdf",
            "maxLength": 255
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New description, up to 2,000 characters. `null` or blank clears it. Omit it to keep the current one.",
            "example": "Signed copy received on 30 Oct",
            "maxLength": 2000
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the file you read (`version`). Required: if the file has changed since, nothing is saved and you get `crm_file_version_conflict`.",
            "example": 1,
            "minimum": 1
          }
        },
        "required": [
          "expected_version"
        ]
      },
      "File.FileUpdateInput.jsonld": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "display_name": {
            "type": "string",
            "description": "New name, up to 255 characters, with the same extension as `original_name`. Omit it to keep the current one; it cannot be `null`.",
            "example": "Proposal Acme 2026 - signed.pdf",
            "maxLength": 255
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New description, up to 2,000 characters. `null` or blank clears it. Omit it to keep the current one.",
            "example": "Signed copy received on 30 Oct",
            "maxLength": 2000
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the file you read (`version`). Required: if the file has changed since, nothing is saved and you get `crm_file_version_conflict`.",
            "example": 1,
            "minimum": 1
          }
        },
        "required": [
          "expected_version"
        ]
      },
      "File.jsonld": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the file.",
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the file is attached to. A file belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileOwnerType",
            "description": "Kind of record the file is attached to.",
            "example": "contact"
          },
          "display_name": {
            "type": "string",
            "description": "Name the file is shown with. It starts as the `filename` sent to `create_file` and can be changed with `update_file`, keeping the same extension. Up to 255 characters.",
            "example": "Proposal Acme 2026.pdf"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional description, up to 2,000 characters. `null` when it has none.",
            "example": "Version signed by the client"
          },
          "original_name": {
            "type": "string",
            "description": "Name the file was declared with. It never changes; its extension decides the file type.",
            "example": "Proposal Acme 2026.pdf",
            "readOnly": true
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file, decided from the extension of the declared name. It is also the `Content-Type` of the download.",
            "example": "application/pdf",
            "readOnly": true
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20 MiB = 20,971,520).",
            "example": 482113,
            "minimum": 0,
            "maximum": 20971520,
            "readOnly": true
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileSource",
            "description": "Where the file is stored. Only `upload` (stored in Easymailing) exists today.",
            "example": "upload",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileStatus",
            "description": "State of the file. `available` once its content is stored; every read of the API returns only `available` files. `uploading` (declared, waiting for its content) and `analyzing` (content received, being checked) are seen only in the response of `create_file`, including when it is repeated with the same `Idempotency-Key`.",
            "example": "available",
            "readOnly": true
          },
          "previewable": {
            "type": "boolean",
            "description": "Whether the Easymailing app can show the file without downloading it (PDF and images). The API always delivers the bytes as an attachment.",
            "example": true,
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person or system that uploaded the file. `null` when unknown.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "Identifier of the uploader. Use it as the `created_by` filter of `list_files`.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account, and in the response of `create_file` (the name is filled in by later reads).",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the file; it grows with every edit of its name or description. Send it as `expected_version` to `update_file` and `delete_file`.",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file was declared, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file last changed, ISO 8601.",
            "example": "2026-10-30T09:16:00+00:00"
          }
        }
      },
      "File.jsonld-file.read": {
        "type": "object",
        "description": "CRM Files of the public API (fase 5). Generated from the proposal by fase-5/tools/gen_files_api.py and edited by hand\nafterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or processor before\nanything else, because API Platform evaluates `security` after the provider.\n\nTwo operations are binary, as in the panel's internal API: `set_file_content` takes the raw bytes (`deserialize:\nfalse`, its `Content-Type` is checked by the processor before the body is opened) and `get_file_content` answers a\nstreamed attachment (`output: false`, `serialize: false`). Their bodies are declared by hand in `openapiContext`.\n\n`list_files` pages forward only by cursor (`cursor[gt]`, the use case has no backwards page): `cursor` is the opaque\nposition API Platform copies into `hydra:next`, and {@see ForwardOnlyCursor} drops the `hydra:previous` it would also\nbuild. It is never published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the file.",
            "example": "6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the file is attached to. A file belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileOwnerType",
            "description": "Kind of record the file is attached to.",
            "example": "contact"
          },
          "display_name": {
            "type": "string",
            "description": "Name the file is shown with. It starts as the `filename` sent to `create_file` and can be changed with `update_file`, keeping the same extension. Up to 255 characters.",
            "example": "Proposal Acme 2026.pdf"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional description, up to 2,000 characters. `null` when it has none.",
            "example": "Version signed by the client"
          },
          "original_name": {
            "type": "string",
            "description": "Name the file was declared with. It never changes; its extension decides the file type.",
            "example": "Proposal Acme 2026.pdf",
            "readOnly": true
          },
          "mime_type": {
            "type": "string",
            "description": "Media type of the file, decided from the extension of the declared name. It is also the `Content-Type` of the download.",
            "example": "application/pdf",
            "readOnly": true
          },
          "size_bytes": {
            "type": "integer",
            "description": "Size of the file in bytes (at most 20 MiB = 20,971,520).",
            "example": 482113,
            "minimum": 0,
            "maximum": 20971520,
            "readOnly": true
          },
          "source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileSource",
            "description": "Where the file is stored. Only `upload` (stored in Easymailing) exists today.",
            "example": "upload",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmFileStatus",
            "description": "State of the file. `available` once its content is stored; every read of the API returns only `available` files. `uploading` (declared, waiting for its content) and `analyzing` (content received, being checked) are seen only in the response of `create_file`, including when it is repeated with the same `Idempotency-Key`.",
            "example": "available",
            "readOnly": true
          },
          "previewable": {
            "type": "boolean",
            "description": "Whether the Easymailing app can show the file without downloading it (PDF and images). The API always delivers the bytes as an attachment.",
            "example": true,
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person or system that uploaded the file. `null` when unknown.",
            "example": {
              "uuid": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "Identifier of the uploader. Use it as the `created_by` filter of `list_files`.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account, and in the response of `create_file` (the name is filled in by later reads).",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the file; it grows with every edit of its name or description. Send it as `expected_version` to `update_file` and `delete_file`.",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file was declared, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the file last changed, ISO 8601.",
            "example": "2026-10-30T09:16:00+00:00"
          }
        }
      },
      "FileStorageUsage-file_storage_usage.read": {
        "type": "object",
        "description": "`get_file_storage_usage` (fase 5): the CRM file storage counters of the account. Generated from the proposal by\nfase-5/tools/gen_files_api.py; the texts are the proposal's.\n\nThe path is `/files/storage_usage` and not the proposal's `/file_storage_usage`: the first segment of a public path is\na plural collection (lint `path_not_snake_plural`). `get_file` keeps `storage_usage` out of its `{uuid}`.",
        "deprecated": false,
        "properties": {
          "used_bytes": {
            "type": "integer",
            "description": "Bytes used by the available files of the account. Space reserved by uploads in progress is not included, so `exceeded` can be `false` and a `create_file` can still answer `crm_file_quota_exceeded`.",
            "example": 734003200,
            "minimum": 0,
            "readOnly": true
          },
          "limit_bytes": {
            "type": "integer",
            "description": "Bytes the plan allows: 1 GiB during the trial, 5 GiB with CRM Essentials, 25 GiB with CRM Pro, 0 without CRM. An account with unlimited storage reports 9223372036854775807.",
            "example": 5368709120,
            "minimum": 0,
            "readOnly": true
          },
          "exceeded": {
            "type": "boolean",
            "description": "Whether `used_bytes` is above `limit_bytes` (for example after a plan downgrade). Existing files stay readable; new uploads are refused until the usage is back within the limit.",
            "example": false,
            "readOnly": true
          },
          "crm_pro_limit_bytes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Bytes the CRM Pro level would give, to offer the upgrade. `null` when the account already has that much or more.",
            "example": 26843545600,
            "minimum": 0,
            "readOnly": true
          }
        }
      },
      "FileStorageUsage.jsonld-file_storage_usage.read": {
        "type": "object",
        "description": "`get_file_storage_usage` (fase 5): the CRM file storage counters of the account. Generated from the proposal by\nfase-5/tools/gen_files_api.py; the texts are the proposal's.\n\nThe path is `/files/storage_usage` and not the proposal's `/file_storage_usage`: the first segment of a public path is\na plural collection (lint `path_not_snake_plural`). `get_file` keeps `storage_usage` out of its `{uuid}`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "used_bytes": {
            "type": "integer",
            "description": "Bytes used by the available files of the account. Space reserved by uploads in progress is not included, so `exceeded` can be `false` and a `create_file` can still answer `crm_file_quota_exceeded`.",
            "example": 734003200,
            "minimum": 0,
            "readOnly": true
          },
          "limit_bytes": {
            "type": "integer",
            "description": "Bytes the plan allows: 1 GiB during the trial, 5 GiB with CRM Essentials, 25 GiB with CRM Pro, 0 without CRM. An account with unlimited storage reports 9223372036854775807.",
            "example": 5368709120,
            "minimum": 0,
            "readOnly": true
          },
          "exceeded": {
            "type": "boolean",
            "description": "Whether `used_bytes` is above `limit_bytes` (for example after a plan downgrade). Existing files stay readable; new uploads are refused until the usage is back within the limit.",
            "example": false,
            "readOnly": true
          },
          "crm_pro_limit_bytes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Bytes the CRM Pro level would give, to offer the upgrade. `null` when the account already has that much or more.",
            "example": 26843545600,
            "minimum": 0,
            "readOnly": true
          }
        }
      },
      "Group-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "suscriber_count": {
            "type": "integer",
            "description": "Number of subscribers in the group. May be null if not yet calculated."
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group-group.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "suscriber_count": {
            "type": "integer",
            "description": "Number of subscribers in the group. May be null if not yet calculated."
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the group belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "color"
        ]
      },
      "Group-group.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the group.",
            "example": "VIP customers"
          },
          "description": {
            "type": "string",
            "description": "What the group is for.",
            "example": "Customers who bought more than three times"
          },
          "color": {
            "type": "string",
            "description": "Colour of the group in the panel, as a hex code.",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Marks the group as public, so it can be offered to subscribers in subscription forms. Defaults to false.",
            "example": false
          }
        }
      },
      "Group-group_deprecated.write": {
        "type": "object",
        "description": "",
        "deprecated": true,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the group belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "Group-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "Group.AsyncTaskResource": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type, for example `group.clear`.",
            "example": "segment.add_to_group"
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "description": "Task state: pending, processing, completed or failed. Poll `get_async_task` until it is completed or failed.",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 0
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": null
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "Group.AsyncTaskResource.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type, for example `group.clear`.",
            "example": "segment.add_to_group"
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "description": "Task state: pending, processing, completed or failed. Poll `get_async_task` until it is completed or failed.",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 0
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": null
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "Group.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "suscriber_count": {
            "type": "integer",
            "description": "Number of subscribers in the group. May be null if not yet calculated."
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group.jsonld-group.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "suscriber_count": {
            "type": "integer",
            "description": "Number of subscribers in the group. May be null if not yet calculated."
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the group belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "color"
        ]
      },
      "Group.jsonld-group.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the group.",
            "example": "VIP customers"
          },
          "description": {
            "type": "string",
            "description": "What the group is for.",
            "example": "Customers who bought more than three times"
          },
          "color": {
            "type": "string",
            "description": "Colour of the group in the panel, as a hex code.",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Marks the group as public, so it can be offered to subscribers in subscription forms. Defaults to false.",
            "example": false
          }
        }
      },
      "Group.jsonld-group_deprecated.write": {
        "type": "object",
        "description": "",
        "deprecated": true,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the group belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "Group.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Group title",
            "example": "My group"
          },
          "description": {
            "type": "string",
            "description": "Group description",
            "example": "My group description"
          },
          "color": {
            "type": "string",
            "description": "Group color",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Group is public?"
          }
        }
      },
      "Group.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "HeadingStyleDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "HeadingStyleDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "HeadingStyleDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "HeadingStyleDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "HeadingStyleDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "HeadingStyleDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#1F2937"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "32px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "700"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          }
        }
      },
      "Invoice-invoice.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier for the invoice"
          },
          "number": {
            "type": "string",
            "description": "Invoice number",
            "example": "FXE-12345"
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Invoice date"
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents (before taxes)",
            "example": 1000
          },
          "taxes": {
            "type": "integer",
            "description": "Taxes in cents",
            "example": 210
          },
          "total": {
            "type": "integer",
            "description": "Total in cents (amount + taxes)",
            "example": 1210
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "EUR"
          },
          "download_url": {
            "type": "string",
            "format": "uri",
            "description": "URL to download the invoice PDF. Requires authentication in the application.",
            "example": "https://app.example.com/account/invoice/download/123"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the invoice was created"
          }
        }
      },
      "Invoice.jsonld-invoice.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier for the invoice"
          },
          "number": {
            "type": "string",
            "description": "Invoice number",
            "example": "FXE-12345"
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Invoice date"
          },
          "amount": {
            "type": "integer",
            "description": "Amount in cents (before taxes)",
            "example": 1000
          },
          "taxes": {
            "type": "integer",
            "description": "Taxes in cents",
            "example": 210
          },
          "total": {
            "type": "integer",
            "description": "Total in cents (amount + taxes)",
            "example": 1210
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "EUR"
          },
          "download_url": {
            "type": "string",
            "format": "uri",
            "description": "URL to download the invoice PDF. Requires authentication in the application.",
            "example": "https://app.example.com/account/invoice/download/123"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the invoice was created"
          }
        }
      },
      "ListField-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType",
            "description": "Field type."
          },
          "translations": {
            "description": "Labels of the field per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldTranslation-audience.read"
            }
          },
          "options": {
            "deprecated": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Options of a select or multiselect field."
          },
          "list_field_options": {
            "description": "Options of a select or multiselect field, per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOption-audience.read"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "ListField-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType",
            "description": "Field type, for example `list.field.type.text`."
          },
          "translations": {
            "description": "Texts of the field per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldTranslation-list_field.read"
            }
          },
          "options": {
            "deprecated": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Options of a select field, or null for other fields."
          },
          "list_field_options": {
            "description": "Options of a select or multiselect field.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOption-list_field.read"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "ListField-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType"
          }
        }
      },
      "ListField.CustomFieldMultiselect-list_field.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as checkboxes (true) or as a multi-select dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "sports"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "Deportes"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "Deportes"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "sports",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "Deportes"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "INTERESTS"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Intereses",
                "default_value": "",
                "help_text": "Temas que te interesan"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput-list_field.write"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "ListField.CustomFieldMultiselect.jsonld-list_field.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as checkboxes (true) or as a multi-select dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "sports"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "Deportes"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "Deportes"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "sports",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "Deportes"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "INTERESTS"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Intereses",
                "default_value": "",
                "help_text": "Temas que te interesan"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput.jsonld-list_field.write"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "ListField.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType",
            "description": "Field type."
          },
          "translations": {
            "description": "Labels of the field per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldTranslation.jsonld-audience.read"
            }
          },
          "options": {
            "deprecated": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Options of a select or multiselect field."
          },
          "list_field_options": {
            "description": "Options of a select or multiselect field, per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOption.jsonld-audience.read"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "ListField.jsonld-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType",
            "description": "Field type, for example `list.field.type.text`."
          },
          "translations": {
            "description": "Texts of the field per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldTranslation.jsonld-list_field.read"
            }
          },
          "options": {
            "deprecated": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Options of a select field, or null for other fields."
          },
          "list_field_options": {
            "description": "Options of a select or multiselect field.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOption.jsonld-list_field.read"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "ListField.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "tag": {
            "type": "string",
            "description": "Custom field tag",
            "example": "NAME"
          },
          "template_tag": {
            "type": "string",
            "description": "Custom field tag for use in templates",
            "example": "suscriber_custom.NAME"
          },
          "public": {
            "type": "boolean",
            "description": "Public field"
          },
          "required": {
            "type": "boolean",
            "description": "Required field"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/ListFieldType"
          }
        }
      },
      "ListFieldOption": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "ListFieldOption-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOptionTranslation-audience.read"
            }
          }
        }
      },
      "ListFieldOption-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOptionTranslation-list_field.read"
            }
          }
        }
      },
      "ListFieldOption.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "ListFieldOption.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOptionTranslation.jsonld-audience.read"
            }
          }
        }
      },
      "ListFieldOption.jsonld-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "description": "Stored value of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "translations": {
            "description": "Option names per language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListFieldOptionTranslation.jsonld-list_field.read"
            }
          }
        }
      },
      "ListFieldOptionTranslation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldOptionTranslation-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldOptionTranslation-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldOptionTranslation.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldOptionTranslation.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldOptionTranslation.jsonld-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListFieldTranslation.jsonld-list_field.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "label": {
            "description": "Field label shown to users.",
            "type": [
              "string",
              "null"
            ]
          },
          "default_value": {
            "description": "Default value or placeholder.",
            "type": [
              "string",
              "null"
            ]
          },
          "help_text": {
            "description": "Help text shown below the field.",
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "description": "Language code of this translation.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListGdpr": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "enabled": {
            "type": "boolean",
            "description": "Is GDPR enabled for the audience"
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Privacy policy URL"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "description": "Use treatment_purposes instead"
          },
          "treatment_purposes": {
            "description": "Data processing purposes members can consent to.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "data_manager": {
            "description": "Person or company responsible for the data.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "ListGdpr-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "enabled": {
            "type": "boolean",
            "description": "Is GDPR enabled for the audience"
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Privacy policy URL"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "description": "Use treatment_purposes instead"
          },
          "treatment_purposes": {
            "description": "Data processing purposes members can consent to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose-audience.read"
            }
          },
          "data_manager": {
            "description": "Person or company responsible for the data.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DataManager-audience.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ListGdpr-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Turn GDPR on or off. Defaults to false when omitted, so always send it together with the rest of `list_gdpr`. When true, `privacy_url`, `data_manager` and at least one entry in `treatment_purposes` are required.",
            "example": true
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL of your privacy policy. Required when GDPR is enabled.",
            "example": "https://www.acme.example/privacy"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes (`/treatment_purposes/{uuid}`) members can consent to. Required when GDPR is enabled.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          },
          "data_manager": {
            "description": "IRI of the data manager (`/data_managers/{uuid}`) responsible for the data. Required when GDPR is enabled.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
          }
        }
      },
      "ListGdpr.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "enabled": {
            "type": "boolean",
            "description": "Is GDPR enabled for the audience"
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Privacy policy URL"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "description": "Use treatment_purposes instead"
          },
          "treatment_purposes": {
            "description": "Data processing purposes members can consent to.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "data_manager": {
            "description": "Person or company responsible for the data.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "ListGdpr.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "enabled": {
            "type": "boolean",
            "description": "Is GDPR enabled for the audience"
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Privacy policy URL"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "description": "Use treatment_purposes instead"
          },
          "treatment_purposes": {
            "description": "Data processing purposes members can consent to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose.jsonld-audience.read"
            }
          },
          "data_manager": {
            "description": "Person or company responsible for the data.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DataManager.jsonld-audience.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "ListGdpr.jsonld-audience.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Turn GDPR on or off. Defaults to false when omitted, so always send it together with the rest of `list_gdpr`. When true, `privacy_url`, `data_manager` and at least one entry in `treatment_purposes` are required.",
            "example": true
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL of your privacy policy. Required when GDPR is enabled.",
            "example": "https://www.acme.example/privacy"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes (`/treatment_purposes/{uuid}`) members can consent to. Required when GDPR is enabled.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          },
          "data_manager": {
            "description": "IRI of the data manager (`/data_managers/{uuid}`) responsible for the data. Required when GDPR is enabled.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
          }
        }
      },
      "ListGdprTreatmentPurpose": {
        "type": "object",
        "description": "",
        "deprecated": true,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "treatment_purpose": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "ListGdprTreatmentPurpose.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": true,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "treatment_purpose": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "ListSegment-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Segment name",
            "example": "Active subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "Segment description",
            "example": "Subscribers who are confirmed and located in Spain"
          },
          "operator_match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "description": "How to match conditions: \"all\" (AND) or \"any\" (OR)",
            "example": "all"
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of subscribers matching the segment conditions. Calculated asynchronously after create/update.",
            "example": 1250,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was created",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was last updated",
            "readOnly": true
          }
        }
      },
      "ListSegment-list_segment.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Segment name",
            "example": "Active subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "Segment description",
            "example": "Subscribers who are confirmed and located in Spain"
          },
          "operator_match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "description": "How to match conditions: \"all\" (AND) or \"any\" (OR)",
            "example": "all"
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of subscribers matching the segment conditions. Calculated asynchronously after create/update.",
            "example": 1250,
            "readOnly": true
          },
          "custom": {
            "type": "boolean",
            "description": "Whether this is a temporary/custom segment (not shown in lists)",
            "example": false
          },
          "conditions": {
            "description": "Conditions of the segment, up to five.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition-list_segment.read"
            }
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience the segment belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was created",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was last updated",
            "readOnly": true
          }
        }
      },
      "ListSegment-list_segment.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "operator_match"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment.",
            "example": "Subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "What the segment selects.",
            "example": "Members located in Spain"
          },
          "operator_match": {
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "How the conditions combine: `all` means every condition must match, `any` means at least one.",
            "example": "all"
          },
          "custom": {
            "type": "boolean",
            "description": "Set true for a temporary segment that is not meant to be listed; its member count is not calculated. Leave false for a normal saved segment.",
            "example": false
          },
          "conditions": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Between 1 and 5 conditions. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition-list_segment.write"
            },
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                "operator": "in",
                "value": [
                  "ES"
                ]
              }
            ]
          }
        }
      },
      "ListSegment.AsyncTaskResource": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type, for example `segment.export`.",
            "example": "segment.add_to_group"
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "description": "Task state: pending, processing, completed or failed. Poll `get_async_task` until it is completed or failed.",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 0
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": null
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "ListSegment.AsyncTaskResource.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Task UUID"
          },
          "type": {
            "type": "string",
            "description": "Task type, for example `segment.export`.",
            "example": "segment.add_to_group"
          },
          "status": {
            "default": "pending",
            "example": "pending",
            "type": "string",
            "description": "Task state: pending, processing, completed or failed. Poll `get_async_task` until it is completed or failed.",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Total number of items to process"
          },
          "processed": {
            "type": "integer",
            "description": "Number of items processed"
          },
          "errored": {
            "type": "integer",
            "description": "Number of items that failed"
          },
          "progress": {
            "type": "number",
            "format": "float",
            "description": "Progress percentage (0-100)",
            "example": 0
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Error message if the task failed"
          },
          "result_meta": {
            "type": [
              "object",
              "null"
            ],
            "description": "Additional result metadata. Content varies by task type.",
            "additionalProperties": true,
            "example": null
          },
          "result_file": {
            "type": [
              "string",
              "null"
            ],
            "description": "Result file name (for export tasks)"
          },
          "result_file_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Temporary download URL for the result file (for export tasks). Valid for 15 minutes."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task started processing"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "datetime",
            "description": "When the task finished (completed or failed)"
          },
          "created_at": {
            "type": "string",
            "format": "datetime",
            "description": "When the task was created"
          }
        }
      },
      "ListSegment.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Segment name",
            "example": "Active subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "Segment description",
            "example": "Subscribers who are confirmed and located in Spain"
          },
          "operator_match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "description": "How to match conditions: \"all\" (AND) or \"any\" (OR)",
            "example": "all"
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of subscribers matching the segment conditions. Calculated asynchronously after create/update.",
            "example": 1250,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was created",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was last updated",
            "readOnly": true
          }
        }
      },
      "ListSegment.jsonld-list_segment.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Segment name",
            "example": "Active subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "Segment description",
            "example": "Subscribers who are confirmed and located in Spain"
          },
          "operator_match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "description": "How to match conditions: \"all\" (AND) or \"any\" (OR)",
            "example": "all"
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of subscribers matching the segment conditions. Calculated asynchronously after create/update.",
            "example": 1250,
            "readOnly": true
          },
          "custom": {
            "type": "boolean",
            "description": "Whether this is a temporary/custom segment (not shown in lists)",
            "example": false
          },
          "conditions": {
            "description": "Conditions of the segment, up to five.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition.jsonld-list_segment.read"
            }
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience the segment belongs to.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was created",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & time when the segment was last updated",
            "readOnly": true
          }
        }
      },
      "ListSegment.jsonld-list_segment.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "operator_match"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment.",
            "example": "Subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "What the segment selects.",
            "example": "Members located in Spain"
          },
          "operator_match": {
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "How the conditions combine: `all` means every condition must match, `any` means at least one.",
            "example": "all"
          },
          "custom": {
            "type": "boolean",
            "description": "Set true for a temporary segment that is not meant to be listed; its member count is not calculated. Leave false for a normal saved segment.",
            "example": false
          },
          "conditions": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Between 1 and 5 conditions. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition.jsonld-list_segment.write"
            },
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                "operator": "in",
                "value": [
                  "ES"
                ]
              }
            ]
          }
        }
      },
      "ListSegmentCondition": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "The condition field to evaluate. Get available fields from GET /audiences/{audienceUuid}/condition_fields",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "The comparison operator. Available operators depend on the field type.",
            "type": "string",
            "example": "in"
          },
          "operator_to_string": {
            "description": "Human-readable representation of the operator",
            "type": "string",
            "example": "In",
            "readOnly": true
          },
          "value": {
            "description": "The value to compare. Type depends on the field type (string, integer, boolean, array, etc.)",
            "example": [
              "ES"
            ]
          },
          "value_to_string": {
            "description": "Human-readable representation of the value",
            "type": "string",
            "example": "ES",
            "readOnly": true
          }
        }
      },
      "ListSegmentCondition-list_segment.read": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "The condition field to evaluate. Get available fields from GET /audiences/{audienceUuid}/condition_fields",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "The comparison operator. Available operators depend on the field type.",
            "type": "string",
            "example": "in"
          },
          "operator_to_string": {
            "description": "Human-readable representation of the operator",
            "type": "string",
            "example": "In",
            "readOnly": true
          },
          "value": {
            "description": "The value to compare. Type depends on the field type (string, integer, boolean, array, etc.)",
            "example": [
              "ES"
            ]
          },
          "value_to_string": {
            "description": "Human-readable representation of the value",
            "type": "string",
            "example": "ES",
            "readOnly": true
          }
        }
      },
      "ListSegmentCondition-list_segment.write": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the condition field (`/audiences/{audienceUuid}/condition_fields/{uuid}`). Get it from `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34"
          },
          "operator": {
            "description": "Comparison operator. Use one of the `operators` listed by the condition field.",
            "type": "string",
            "example": "in"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the condition field: text, integer, decimal, boolean, date string or array.",
            "example": [
              "ES"
            ]
          }
        }
      },
      "ListSegmentCondition.jsonld": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "field": {
            "description": "The condition field to evaluate. Get available fields from GET /audiences/{audienceUuid}/condition_fields",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "The comparison operator. Available operators depend on the field type.",
            "type": "string",
            "example": "in"
          },
          "operator_to_string": {
            "description": "Human-readable representation of the operator",
            "type": "string",
            "example": "In",
            "readOnly": true
          },
          "value": {
            "description": "The value to compare. Type depends on the field type (string, integer, boolean, array, etc.)",
            "example": [
              "ES"
            ]
          },
          "value_to_string": {
            "description": "Human-readable representation of the value",
            "type": "string",
            "example": "ES",
            "readOnly": true
          }
        }
      },
      "ListSegmentCondition.jsonld-list_segment.read": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "field": {
            "description": "The condition field to evaluate. Get available fields from GET /audiences/{audienceUuid}/condition_fields",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/39"
          },
          "operator": {
            "description": "The comparison operator. Available operators depend on the field type.",
            "type": "string",
            "example": "in"
          },
          "operator_to_string": {
            "description": "Human-readable representation of the operator",
            "type": "string",
            "example": "In",
            "readOnly": true
          },
          "value": {
            "description": "The value to compare. Type depends on the field type (string, integer, boolean, array, etc.)",
            "example": [
              "ES"
            ]
          },
          "value_to_string": {
            "description": "Human-readable representation of the value",
            "type": "string",
            "example": "ES",
            "readOnly": true
          }
        }
      },
      "ListSegmentCondition.jsonld-list_segment.write": {
        "type": "object",
        "description": "Represents a single condition within a segment.\n\nEach condition filters subscribers based on a field, operator, and value.\nThe value type depends on the field type (text, integer, boolean, etc.).",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the condition field (`/audiences/{audienceUuid}/condition_fields/{uuid}`). Get it from `list_audience_condition_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34"
          },
          "operator": {
            "description": "Comparison operator. Use one of the `operators` listed by the condition field.",
            "type": "string",
            "example": "in"
          },
          "value": {
            "description": "Value to compare with. Its type depends on the condition field: text, integer, decimal, boolean, date string or array.",
            "example": [
              "ES"
            ]
          }
        }
      },
      "Location": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "city": {
            "type": "string",
            "description": "City.",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code.",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA).",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code, ISO 3166-1 alpha-2.",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country name.",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude in decimal degrees.",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude in decimal degrees.",
            "example": -3.70379
          }
        }
      },
      "Location.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "city": {
            "type": "string",
            "description": "City",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude",
            "example": -3.70379
          }
        }
      },
      "Location.jsonld-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "city": {
            "type": "string",
            "description": "City.",
            "example": "Madrid"
          },
          "postal_code": {
            "type": "string",
            "description": "Postal code.",
            "example": "28001"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA).",
            "example": "Europe/Madrid"
          },
          "country_code": {
            "type": "string",
            "description": "Country code, ISO 3166-1 alpha-2.",
            "example": "ES"
          },
          "country": {
            "type": "string",
            "description": "Country name.",
            "example": "Spain"
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude in decimal degrees.",
            "example": 40.416775
          },
          "lng": {
            "type": "number",
            "format": "float",
            "description": "Longitude in decimal degrees.",
            "example": -3.70379
          }
        }
      },
      "MasterTemplate-master_template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Master template title",
            "example": "My master template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "Master template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "content": {
            "type": "string",
            "description": "Template content (HTML)",
            "example": "<html><body><p>My template!</p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "Simple JSON structure for BeeEditor templates."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "MasterTemplate.CreateTemplateFromMasterInput-master_template.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the new template (up to 255 characters).",
            "example": "Autumn newsletter"
          }
        }
      },
      "MasterTemplate.CreateTemplateFromMasterInput.jsonld-master_template.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the new template (up to 255 characters).",
            "example": "Autumn newsletter"
          }
        }
      },
      "MasterTemplate.TemplateResource-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "MasterTemplate.TemplateResource.jsonld-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "MasterTemplate.jsonld-master_template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Master template title",
            "example": "My master template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "Master template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "content": {
            "type": "string",
            "description": "Template content (HTML)",
            "example": "<html><body><p>My template!</p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "Simple JSON structure for BeeEditor templates."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Meeting-meeting.list": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the meeting.",
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "version": {
            "type": "integer",
            "description": "Version of the meeting; it grows with every change, including relation changes and synchronizations. Send it as `expected_version` to make sure nobody changed the meeting in between.",
            "example": 3
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingStatus",
            "description": "`confirmed` for a meeting that takes place, `cancelled` for one that was cancelled (it stays in the history).",
            "example": "confirmed"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the event. `null` when the event has none.",
            "example": "Demo of the annual plan"
          },
          "time_type": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingTimeType",
            "description": "`timed` for a meeting with a start and end time, `all_day` for an all-day event.",
            "example": "timed"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:00:00+00:00"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:30:00+00:00"
          },
          "original_time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA time zone of the event in the calendar it comes from.",
            "example": "Europe/Madrid"
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "First day of an all-day meeting (`YYYY-MM-DD`), never shifted by a time zone. `null` for a timed meeting.",
            "example": "2026-11-05"
          },
          "end_date_exclusive": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Day after the last day of an all-day meeting (`YYYY-MM-DD`). `null` for a timed meeting.",
            "example": "2026-11-06"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting. `null` when there is none.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/MeetingConferenceType",
                "description": "Provider of the video call.",
                "example": "google_meet"
              },
              "join_url": {
                "type": "string",
                "description": "Link to join.",
                "example": "https://meet.google.com/abc-defg-hij"
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Access code or meeting ID when the provider gives one. `null` otherwise.",
                "example": "abc-defg-hij"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the video call as Google shows it. `null` when there is none.",
                "example": "Google Meet"
              }
            },
            "description": "Video call of the meeting. `null` when it has none.",
            "example": {
              "type": "google_meet",
              "join_url": "https://meet.google.com/abc-defg-hij",
              "code": "abc-defg-hij",
              "label": "Google Meet"
            }
          },
          "organizer": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name. `null` when unknown.",
                "example": "Ana García"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email address of the person.",
                "example": "ana@example.com"
              },
              "role": {
                "$ref": "#/components/schemas/MeetingParticipantRole",
                "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                "example": "attendee"
              },
              "response_status": {
                "$ref": "#/components/schemas/MeetingResponseStatus",
                "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                "example": "accepted"
              },
              "kind": {
                "$ref": "#/components/schemas/MeetingParticipantKind",
                "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                "example": "contact"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              "internal": {
                "type": "boolean",
                "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                "example": false,
                "readOnly": true
              }
            },
            "description": "The organizer: the Google account that owns the event, which is not always the person who owns the token. `null` for imported events without an organizer.",
            "example": {
              "name": "Sergio Gallego",
              "email": "sergio@acme.com",
              "role": "organizer",
              "response_status": "accepted",
              "kind": "user",
              "contact": null,
              "internal": true
            }
          },
          "participant_count": {
            "type": "integer",
            "description": "Number of people on the meeting, the organizer included.",
            "example": 3,
            "minimum": 0
          },
          "participant_preview": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Email address.",
                  "example": "ana@example.com"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Up to 5 participants other than the user who owns the token, organizer first. Use `get_meeting` for the full list.",
            "example": [
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            ]
          },
          "primary_relation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "iri": {
                "type": "string",
                "format": "iri-reference",
                "description": "IRI of the record.",
                "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
              },
              "label": {
                "type": "string",
                "description": "Name of the record.",
                "example": "Acme Corp"
              },
              "record_type": {
                "$ref": "#/components/schemas/MeetingRecordType",
                "description": "Kind of record.",
                "example": "company"
              }
            },
            "description": "The CRM record that heads the meeting among those the user can open: the company, otherwise the opportunity, otherwise the contact. `null` when none is visible.",
            "example": {
              "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
              "label": "Acme Corp",
              "record_type": "company"
            }
          },
          "series_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID that groups the occurrences of a recurring meeting. `null` for a single meeting. It is not an addressable resource.",
            "example": "8d3f1a62-4b7e-4c90-a5d2-1e6b9f0c7a43"
          },
          "source": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "connection_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
              },
              "calendar_id": {
                "type": "string",
                "description": "Google calendar ID (usually an email address).",
                "example": "sergio@acme.com"
              },
              "calendar_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the calendar. `null` when unknown.",
                "example": "Sergio Gallego"
              },
              "owned": {
                "type": "boolean",
                "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                "example": true
              },
              "writable": {
                "type": "boolean",
                "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                "example": true
              }
            },
            "description": "The calendar the meeting is read from for this user. `null` when the user reaches the meeting only through a record they can see.",
            "example": {
              "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
              "calendar_id": "sergio@acme.com",
              "calendar_name": "Sergio Gallego",
              "owned": true,
              "writable": true
            }
          }
        }
      },
      "Meeting-meeting.read": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the meeting.",
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "version": {
            "type": "integer",
            "description": "Version of the meeting; it grows with every change, including relation changes and synchronizations. Send it as `expected_version` to make sure nobody changed the meeting in between.",
            "example": 3
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingStatus",
            "description": "`confirmed` for a meeting that takes place, `cancelled` for one that was cancelled (it stays in the history).",
            "example": "confirmed"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the event. `null` when the event has none.",
            "example": "Demo of the annual plan"
          },
          "time_type": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingTimeType",
            "description": "`timed` for a meeting with a start and end time, `all_day` for an all-day event.",
            "example": "timed"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:00:00+00:00"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:30:00+00:00"
          },
          "original_time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA time zone of the event in the calendar it comes from.",
            "example": "Europe/Madrid"
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "First day of an all-day meeting (`YYYY-MM-DD`), never shifted by a time zone. `null` for a timed meeting.",
            "example": "2026-11-05"
          },
          "end_date_exclusive": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Day after the last day of an all-day meeting (`YYYY-MM-DD`). `null` for a timed meeting.",
            "example": "2026-11-06"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting. `null` when there is none.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/MeetingConferenceType",
                "description": "Provider of the video call.",
                "example": "google_meet"
              },
              "join_url": {
                "type": "string",
                "description": "Link to join.",
                "example": "https://meet.google.com/abc-defg-hij"
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Access code or meeting ID when the provider gives one. `null` otherwise.",
                "example": "abc-defg-hij"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the video call as Google shows it. `null` when there is none.",
                "example": "Google Meet"
              }
            },
            "description": "Video call of the meeting. `null` when it has none.",
            "example": {
              "type": "google_meet",
              "join_url": "https://meet.google.com/abc-defg-hij",
              "code": "abc-defg-hij",
              "label": "Google Meet"
            }
          },
          "organizer": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name. `null` when unknown.",
                "example": "Ana García"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email address of the person.",
                "example": "ana@example.com"
              },
              "role": {
                "$ref": "#/components/schemas/MeetingParticipantRole",
                "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                "example": "attendee"
              },
              "response_status": {
                "$ref": "#/components/schemas/MeetingResponseStatus",
                "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                "example": "accepted"
              },
              "kind": {
                "$ref": "#/components/schemas/MeetingParticipantKind",
                "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                "example": "contact"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              "internal": {
                "type": "boolean",
                "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                "example": false,
                "readOnly": true
              }
            },
            "description": "The organizer: the Google account that owns the event, which is not always the person who owns the token. `null` for imported events without an organizer.",
            "example": {
              "name": "Sergio Gallego",
              "email": "sergio@acme.com",
              "role": "organizer",
              "response_status": "accepted",
              "kind": "user",
              "contact": null,
              "internal": true
            }
          },
          "participant_count": {
            "type": "integer",
            "description": "Number of people on the meeting, the organizer included.",
            "example": 3,
            "minimum": 0
          },
          "participant_preview": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Email address.",
                  "example": "ana@example.com"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Up to 5 participants other than the user who owns the token, organizer first. Use `get_meeting` for the full list.",
            "example": [
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            ]
          },
          "primary_relation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "iri": {
                "type": "string",
                "format": "iri-reference",
                "description": "IRI of the record.",
                "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
              },
              "label": {
                "type": "string",
                "description": "Name of the record.",
                "example": "Acme Corp"
              },
              "record_type": {
                "$ref": "#/components/schemas/MeetingRecordType",
                "description": "Kind of record.",
                "example": "company"
              }
            },
            "description": "The CRM record that heads the meeting among those the user can open: the company, otherwise the opportunity, otherwise the contact. `null` when none is visible.",
            "example": {
              "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
              "label": "Acme Corp",
              "record_type": "company"
            }
          },
          "series_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID that groups the occurrences of a recurring meeting. `null` for a single meeting. It is not an addressable resource.",
            "example": "8d3f1a62-4b7e-4c90-a5d2-1e6b9f0c7a43"
          },
          "source": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "connection_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
              },
              "calendar_id": {
                "type": "string",
                "description": "Google calendar ID (usually an email address).",
                "example": "sergio@acme.com"
              },
              "calendar_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the calendar. `null` when unknown.",
                "example": "Sergio Gallego"
              },
              "owned": {
                "type": "boolean",
                "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                "example": true
              },
              "writable": {
                "type": "boolean",
                "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                "example": true
              }
            },
            "description": "The calendar the meeting is read from for this user. `null` when the user reaches the meeting only through a record they can see.",
            "example": {
              "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
              "calendar_id": "sergio@acme.com",
              "calendar_name": "Sergio Gallego",
              "owned": true,
              "writable": true
            }
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the event as HTML sanitized on the server to a short allow-list. `null` when there is none.",
            "example": "<p>Walk through pricing and next steps.</p>"
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the person.",
                  "example": "ana@example.com"
                },
                "role": {
                  "$ref": "#/components/schemas/MeetingParticipantRole",
                  "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                  "example": "attendee"
                },
                "response_status": {
                  "$ref": "#/components/schemas/MeetingResponseStatus",
                  "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                  "example": "accepted"
                },
                "kind": {
                  "$ref": "#/components/schemas/MeetingParticipantKind",
                  "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                  "example": "contact"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "internal": {
                  "type": "boolean",
                  "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                  "example": false,
                  "readOnly": true
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could remove this person from the guests with `update_meeting`: `false` for the organizer, for the only person outside the team of a meeting that was not created from the CRM, and for everyone when the user cannot edit the meeting.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Everybody on the meeting, organizer first.",
            "example": [
              {
                "name": "Sergio Gallego",
                "email": "sergio@acme.com",
                "role": "organizer",
                "response_status": "accepted",
                "kind": "user",
                "contact": null,
                "internal": true,
                "removable": false
              },
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "role": "attendee",
                "response_status": "pending",
                "kind": "contact",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "internal": false,
                "removable": true
              }
            ]
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Contacts the meeting is related to, whether they are guests or were linked by hand. Only records the user can see.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com",
                "removable": false
              }
            ]
          },
          "companies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Companies the meeting is related to, by hand or through the email domain of an outside guest.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com",
                "removable": false
              }
            ]
          },
          "opportunities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Always `null` for an opportunity.",
                  "examples": [
                    null
                  ]
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Opportunities the meeting is related to. Only those the user can read.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": null,
                "removable": true
              }
            ]
          },
          "web_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to the event in Google Calendar. Only for the owner of a visible calendar; `null` for everybody else.",
            "example": "https://www.google.com/calendar/event?eid=abc123"
          },
          "writable_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connection_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                  "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
                },
                "calendar_id": {
                  "type": "string",
                  "description": "Google calendar ID (usually an email address).",
                  "example": "sergio@acme.com"
                },
                "calendar_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the calendar. `null` when unknown.",
                  "example": "Sergio Gallego"
                },
                "owned": {
                  "type": "boolean",
                  "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                  "example": true
                },
                "writable": {
                  "type": "boolean",
                  "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                  "example": true
                }
              }
            },
            "description": "Where the user can write this meeting from: their own writable calendars that hold it. The first one is the one `update_meeting` and `cancel_meeting` use; send its `connection_uuid`. Empty when the user cannot change the meeting.",
            "example": [
              {
                "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
                "calendar_id": "sergio@acme.com",
                "calendar_name": "Sergio Gallego",
                "owned": true,
                "writable": true
              }
            ]
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user can change the meeting with `update_meeting`: the `crm.contacts_companies.write` capability with a CRM seat, a confirmed timed meeting, and a calendar of their own where they are the organizer.",
            "example": true,
            "readOnly": true
          },
          "can_cancel": {
            "type": "boolean",
            "description": "Whether the user can cancel the meeting with `cancel_meeting`: the same as `can_edit`, except that all-day meetings can be cancelled.",
            "example": true,
            "readOnly": true
          },
          "can_change_relations": {
            "type": "boolean",
            "description": "Whether the user can link and unlink CRM records with `replace_meeting_relations`: the `crm.contacts_companies.write` capability with a CRM seat. It does not require being the organizer.",
            "example": true,
            "readOnly": true
          },
          "booking": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "page_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the booking page.",
                "example": "6b4a8f12-3c95-4e71-9a0d-5f2c7e1b8d36"
              },
              "page_title": {
                "type": "string",
                "description": "Title of the page as the guest saw it when booking.",
                "example": "Intro call"
              },
              "page_available": {
                "type": "boolean",
                "description": "Whether the user can open the page in the booking settings (only its owner).",
                "example": true
              },
              "booked_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the guest booked, ISO 8601.",
                "example": "2026-11-02T10:12:00+00:00"
              },
              "email_confirmed": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether the guest confirmed their email. `null` when the page did not ask for it.",
                "example": true
              },
              "answers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "question": {
                      "type": "string",
                      "description": "The question as it was when booking.",
                      "example": "What do you want to talk about?"
                    },
                    "answer": {
                      "type": "string",
                      "description": "The answer, as plain text.",
                      "example": "Pricing"
                    }
                  }
                },
                "description": "Answers of the guest to the questions of the page, in the page order; only answered questions. Plain text.",
                "example": [
                  {
                    "question": "What do you want to talk about?",
                    "answer": "Pricing"
                  }
                ]
              }
            },
            "description": "The booking page that created the meeting. `null` for a meeting that does not come from a booking.",
            "example": {
              "page_uuid": "6b4a8f12-3c95-4e71-9a0d-5f2c7e1b8d36",
              "page_title": "Intro call",
              "page_available": true,
              "booked_at": "2026-11-02T10:12:00+00:00",
              "email_confirmed": true,
              "answers": [
                {
                  "question": "What do you want to talk about?",
                  "answer": "Pricing"
                }
              ]
            }
          }
        }
      },
      "Meeting.MeetingRelationsInput": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          },
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingRelationScope",
            "description": "What the lists apply to. `occurrence` (default): this meeting only. `series`: the whole recurring series; it is rejected with `series_not_supported` when the meeting is not part of a series.",
            "example": "occurrence"
          },
          "contacts": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the contacts the meeting is related to (`/contacts/{uuid}`), at most 100. The complete final set, not an addition: contacts not in the list are unlinked, except those who are guests.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ]
          },
          "companies": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the companies the meeting is related to (`/companies/{uuid}`), at most 100. The complete final set; send an empty list to unlink all. Companies related only through the email domain of a guest stay.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ]
          },
          "opportunities": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the opportunities the meeting is related to (`/opportunities/{uuid}`), at most 100. The complete final set; send an empty list to unlink all. Opportunities in pipelines the user cannot read are never unlinked by being absent.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ]
          }
        },
        "required": [
          "contacts",
          "companies",
          "opportunities"
        ]
      },
      "Meeting.MeetingRelationsInput.jsonld": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          },
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingRelationScope",
            "description": "What the lists apply to. `occurrence` (default): this meeting only. `series`: the whole recurring series; it is rejected with `series_not_supported` when the meeting is not part of a series.",
            "example": "occurrence"
          },
          "contacts": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the contacts the meeting is related to (`/contacts/{uuid}`), at most 100. The complete final set, not an addition: contacts not in the list are unlinked, except those who are guests.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ]
          },
          "companies": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the companies the meeting is related to (`/companies/{uuid}`), at most 100. The complete final set; send an empty list to unlink all. Companies related only through the email domain of a guest stay.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ]
          },
          "opportunities": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the opportunities the meeting is related to (`/opportunities/{uuid}`), at most 100. The complete final set; send an empty list to unlink all. Opportunities in pipelines the user cannot read are never unlinked by being absent.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ]
          }
        },
        "required": [
          "contacts",
          "companies",
          "opportunities"
        ]
      },
      "Meeting.jsonld-meeting.list": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the meeting.",
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "version": {
            "type": "integer",
            "description": "Version of the meeting; it grows with every change, including relation changes and synchronizations. Send it as `expected_version` to make sure nobody changed the meeting in between.",
            "example": 3
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingStatus",
            "description": "`confirmed` for a meeting that takes place, `cancelled` for one that was cancelled (it stays in the history).",
            "example": "confirmed"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the event. `null` when the event has none.",
            "example": "Demo of the annual plan"
          },
          "time_type": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingTimeType",
            "description": "`timed` for a meeting with a start and end time, `all_day` for an all-day event.",
            "example": "timed"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:00:00+00:00"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:30:00+00:00"
          },
          "original_time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA time zone of the event in the calendar it comes from.",
            "example": "Europe/Madrid"
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "First day of an all-day meeting (`YYYY-MM-DD`), never shifted by a time zone. `null` for a timed meeting.",
            "example": "2026-11-05"
          },
          "end_date_exclusive": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Day after the last day of an all-day meeting (`YYYY-MM-DD`). `null` for a timed meeting.",
            "example": "2026-11-06"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting. `null` when there is none.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/MeetingConferenceType",
                "description": "Provider of the video call.",
                "example": "google_meet"
              },
              "join_url": {
                "type": "string",
                "description": "Link to join.",
                "example": "https://meet.google.com/abc-defg-hij"
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Access code or meeting ID when the provider gives one. `null` otherwise.",
                "example": "abc-defg-hij"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the video call as Google shows it. `null` when there is none.",
                "example": "Google Meet"
              }
            },
            "description": "Video call of the meeting. `null` when it has none.",
            "example": {
              "type": "google_meet",
              "join_url": "https://meet.google.com/abc-defg-hij",
              "code": "abc-defg-hij",
              "label": "Google Meet"
            }
          },
          "organizer": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name. `null` when unknown.",
                "example": "Ana García"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email address of the person.",
                "example": "ana@example.com"
              },
              "role": {
                "$ref": "#/components/schemas/MeetingParticipantRole",
                "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                "example": "attendee"
              },
              "response_status": {
                "$ref": "#/components/schemas/MeetingResponseStatus",
                "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                "example": "accepted"
              },
              "kind": {
                "$ref": "#/components/schemas/MeetingParticipantKind",
                "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                "example": "contact"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              "internal": {
                "type": "boolean",
                "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                "example": false,
                "readOnly": true
              }
            },
            "description": "The organizer: the Google account that owns the event, which is not always the person who owns the token. `null` for imported events without an organizer.",
            "example": {
              "name": "Sergio Gallego",
              "email": "sergio@acme.com",
              "role": "organizer",
              "response_status": "accepted",
              "kind": "user",
              "contact": null,
              "internal": true
            }
          },
          "participant_count": {
            "type": "integer",
            "description": "Number of people on the meeting, the organizer included.",
            "example": 3,
            "minimum": 0
          },
          "participant_preview": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Email address.",
                  "example": "ana@example.com"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Up to 5 participants other than the user who owns the token, organizer first. Use `get_meeting` for the full list.",
            "example": [
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            ]
          },
          "primary_relation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "iri": {
                "type": "string",
                "format": "iri-reference",
                "description": "IRI of the record.",
                "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
              },
              "label": {
                "type": "string",
                "description": "Name of the record.",
                "example": "Acme Corp"
              },
              "record_type": {
                "$ref": "#/components/schemas/MeetingRecordType",
                "description": "Kind of record.",
                "example": "company"
              }
            },
            "description": "The CRM record that heads the meeting among those the user can open: the company, otherwise the opportunity, otherwise the contact. `null` when none is visible.",
            "example": {
              "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
              "label": "Acme Corp",
              "record_type": "company"
            }
          },
          "series_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID that groups the occurrences of a recurring meeting. `null` for a single meeting. It is not an addressable resource.",
            "example": "8d3f1a62-4b7e-4c90-a5d2-1e6b9f0c7a43"
          },
          "source": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "connection_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
              },
              "calendar_id": {
                "type": "string",
                "description": "Google calendar ID (usually an email address).",
                "example": "sergio@acme.com"
              },
              "calendar_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the calendar. `null` when unknown.",
                "example": "Sergio Gallego"
              },
              "owned": {
                "type": "boolean",
                "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                "example": true
              },
              "writable": {
                "type": "boolean",
                "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                "example": true
              }
            },
            "description": "The calendar the meeting is read from for this user. `null` when the user reaches the meeting only through a record they can see.",
            "example": {
              "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
              "calendar_id": "sergio@acme.com",
              "calendar_name": "Sergio Gallego",
              "owned": true,
              "writable": true
            }
          }
        }
      },
      "Meeting.jsonld-meeting.read": {
        "type": "object",
        "description": "Meetings of the connected Google calendars in the public API (fase 5, read only). Generated from the proposal by\nfase-5/tools/gen_meetings_api.py; the texts are the proposal's. Every operation checks the CRM access in its provider\nbefore anything else, because API Platform evaluates `security` after the provider.\n\n`list_meetings` has two modes (the upcoming meetings of one record, or the user's own calendars within a range) and\npages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into `hydra:next`,\nand {@see ForwardOnlyCursor} drops the `hydra:previous` it would also build. It is never published. The fields of the\ndetail travel only in `get_meeting`; every field travels as `null`, never absent (`skip_null_values: false`).\n\n`status` carries the text of the detail: the list only returns `confirmed` meetings, which its filters say.\n`replace_meeting_relations` answers the meeting as `get_meeting` does; the writes in Google answer a receipt\n({@see MeetingWriteReceiptResource}).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the meeting.",
            "example": "5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "version": {
            "type": "integer",
            "description": "Version of the meeting; it grows with every change, including relation changes and synchronizations. Send it as `expected_version` to make sure nobody changed the meeting in between.",
            "example": 3
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingStatus",
            "description": "`confirmed` for a meeting that takes place, `cancelled` for one that was cancelled (it stays in the history).",
            "example": "confirmed"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the event. `null` when the event has none.",
            "example": "Demo of the annual plan"
          },
          "time_type": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingTimeType",
            "description": "`timed` for a meeting with a start and end time, `all_day` for an all-day event.",
            "example": "timed"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:00:00+00:00"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "End of a timed meeting, ISO 8601 in UTC. `null` for an all-day meeting.",
            "example": "2026-11-05T15:30:00+00:00"
          },
          "original_time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA time zone of the event in the calendar it comes from.",
            "example": "Europe/Madrid"
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "First day of an all-day meeting (`YYYY-MM-DD`), never shifted by a time zone. `null` for a timed meeting.",
            "example": "2026-11-05"
          },
          "end_date_exclusive": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Day after the last day of an all-day meeting (`YYYY-MM-DD`). `null` for a timed meeting.",
            "example": "2026-11-06"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting. `null` when there is none.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "$ref": "#/components/schemas/MeetingConferenceType",
                "description": "Provider of the video call.",
                "example": "google_meet"
              },
              "join_url": {
                "type": "string",
                "description": "Link to join.",
                "example": "https://meet.google.com/abc-defg-hij"
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Access code or meeting ID when the provider gives one. `null` otherwise.",
                "example": "abc-defg-hij"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the video call as Google shows it. `null` when there is none.",
                "example": "Google Meet"
              }
            },
            "description": "Video call of the meeting. `null` when it has none.",
            "example": {
              "type": "google_meet",
              "join_url": "https://meet.google.com/abc-defg-hij",
              "code": "abc-defg-hij",
              "label": "Google Meet"
            }
          },
          "organizer": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Display name. `null` when unknown.",
                "example": "Ana García"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email address of the person.",
                "example": "ana@example.com"
              },
              "role": {
                "$ref": "#/components/schemas/MeetingParticipantRole",
                "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                "example": "attendee"
              },
              "response_status": {
                "$ref": "#/components/schemas/MeetingResponseStatus",
                "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                "example": "accepted"
              },
              "kind": {
                "$ref": "#/components/schemas/MeetingParticipantKind",
                "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                "example": "contact"
              },
              "contact": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              },
              "internal": {
                "type": "boolean",
                "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                "example": false,
                "readOnly": true
              }
            },
            "description": "The organizer: the Google account that owns the event, which is not always the person who owns the token. `null` for imported events without an organizer.",
            "example": {
              "name": "Sergio Gallego",
              "email": "sergio@acme.com",
              "role": "organizer",
              "response_status": "accepted",
              "kind": "user",
              "contact": null,
              "internal": true
            }
          },
          "participant_count": {
            "type": "integer",
            "description": "Number of people on the meeting, the organizer included.",
            "example": 3,
            "minimum": 0
          },
          "participant_preview": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Email address.",
                  "example": "ana@example.com"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                }
              }
            },
            "description": "Up to 5 participants other than the user who owns the token, organizer first. Use `get_meeting` for the full list.",
            "example": [
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
              }
            ]
          },
          "primary_relation": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "iri": {
                "type": "string",
                "format": "iri-reference",
                "description": "IRI of the record.",
                "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
              },
              "label": {
                "type": "string",
                "description": "Name of the record.",
                "example": "Acme Corp"
              },
              "record_type": {
                "$ref": "#/components/schemas/MeetingRecordType",
                "description": "Kind of record.",
                "example": "company"
              }
            },
            "description": "The CRM record that heads the meeting among those the user can open: the company, otherwise the opportunity, otherwise the contact. `null` when none is visible.",
            "example": {
              "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
              "label": "Acme Corp",
              "record_type": "company"
            }
          },
          "series_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID that groups the occurrences of a recurring meeting. `null` for a single meeting. It is not an addressable resource.",
            "example": "8d3f1a62-4b7e-4c90-a5d2-1e6b9f0c7a43"
          },
          "source": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "connection_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
              },
              "calendar_id": {
                "type": "string",
                "description": "Google calendar ID (usually an email address).",
                "example": "sergio@acme.com"
              },
              "calendar_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the calendar. `null` when unknown.",
                "example": "Sergio Gallego"
              },
              "owned": {
                "type": "boolean",
                "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                "example": true
              },
              "writable": {
                "type": "boolean",
                "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                "example": true
              }
            },
            "description": "The calendar the meeting is read from for this user. `null` when the user reaches the meeting only through a record they can see.",
            "example": {
              "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
              "calendar_id": "sergio@acme.com",
              "calendar_name": "Sergio Gallego",
              "owned": true,
              "writable": true
            }
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the event as HTML sanitized on the server to a short allow-list. `null` when there is none.",
            "example": "<p>Walk through pricing and next steps.</p>"
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Display name. `null` when unknown.",
                  "example": "Ana García"
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the person.",
                  "example": "ana@example.com"
                },
                "role": {
                  "$ref": "#/components/schemas/MeetingParticipantRole",
                  "description": "`organizer` for the Google account that owns the event, `attendee` for everyone else.",
                  "example": "attendee"
                },
                "response_status": {
                  "$ref": "#/components/schemas/MeetingResponseStatus",
                  "description": "Answer of the guest in Google Calendar: `accepted`, `tentative`, `declined`, or `pending` when they have not answered.",
                  "example": "accepted"
                },
                "kind": {
                  "$ref": "#/components/schemas/MeetingParticipantKind",
                  "description": "`user` for a user of this account, `contact` for a person who is a contact in the CRM, `external` for anyone else.",
                  "example": "contact"
                },
                "contact": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "iri-reference",
                  "description": "IRI of the contact with that email. `null` when the person is not a contact.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "internal": {
                  "type": "boolean",
                  "description": "Whether the person belongs to the account's own team (a user or an internal address) rather than being someone outside it.",
                  "example": false,
                  "readOnly": true
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could remove this person from the guests with `update_meeting`: `false` for the organizer, for the only person outside the team of a meeting that was not created from the CRM, and for everyone when the user cannot edit the meeting.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Everybody on the meeting, organizer first.",
            "example": [
              {
                "name": "Sergio Gallego",
                "email": "sergio@acme.com",
                "role": "organizer",
                "response_status": "accepted",
                "kind": "user",
                "contact": null,
                "internal": true,
                "removable": false
              },
              {
                "name": "Ana García",
                "email": "ana@example.com",
                "role": "attendee",
                "response_status": "pending",
                "kind": "contact",
                "contact": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "internal": false,
                "removable": true
              }
            ]
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Contacts the meeting is related to, whether they are guests or were linked by hand. Only records the user can see.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com",
                "removable": false
              }
            ]
          },
          "companies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Companies the meeting is related to, by hand or through the email domain of an outside guest.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com",
                "removable": false
              }
            ]
          },
          "opportunities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Always `null` for an opportunity.",
                  "examples": [
                    null
                  ]
                },
                "removable": {
                  "type": "boolean",
                  "description": "Whether the user could unlink this record with `replace_meeting_relations`: `false` when the meeting relates it through a guest (the link stays while that guest is on the meeting) and when the user lacks the permission for its type.",
                  "example": true,
                  "readOnly": true
                }
              }
            },
            "description": "Opportunities the meeting is related to. Only those the user can read.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": null,
                "removable": true
              }
            ]
          },
          "web_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to the event in Google Calendar. Only for the owner of a visible calendar; `null` for everybody else.",
            "example": "https://www.google.com/calendar/event?eid=abc123"
          },
          "writable_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connection_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the Google connection (the Google account) where the calendar lives. Send it as `connection_uuid` in the write operations.",
                  "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
                },
                "calendar_id": {
                  "type": "string",
                  "description": "Google calendar ID (usually an email address).",
                  "example": "sergio@acme.com"
                },
                "calendar_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the calendar. `null` when unknown.",
                  "example": "Sergio Gallego"
                },
                "owned": {
                  "type": "boolean",
                  "description": "Whether the calendar belongs to the user who owns the token (`false` for the calendar of a colleague who shared theirs).",
                  "example": true
                },
                "writable": {
                  "type": "boolean",
                  "description": "Whether the user can write to it from Easymailing: it is theirs, Calendar is active on the connection and Google allows writing.",
                  "example": true
                }
              }
            },
            "description": "Where the user can write this meeting from: their own writable calendars that hold it. The first one is the one `update_meeting` and `cancel_meeting` use; send its `connection_uuid`. Empty when the user cannot change the meeting.",
            "example": [
              {
                "connection_uuid": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86",
                "calendar_id": "sergio@acme.com",
                "calendar_name": "Sergio Gallego",
                "owned": true,
                "writable": true
              }
            ]
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user can change the meeting with `update_meeting`: the `crm.contacts_companies.write` capability with a CRM seat, a confirmed timed meeting, and a calendar of their own where they are the organizer.",
            "example": true,
            "readOnly": true
          },
          "can_cancel": {
            "type": "boolean",
            "description": "Whether the user can cancel the meeting with `cancel_meeting`: the same as `can_edit`, except that all-day meetings can be cancelled.",
            "example": true,
            "readOnly": true
          },
          "can_change_relations": {
            "type": "boolean",
            "description": "Whether the user can link and unlink CRM records with `replace_meeting_relations`: the `crm.contacts_companies.write` capability with a CRM seat. It does not require being the organizer.",
            "example": true,
            "readOnly": true
          },
          "booking": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "page_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the booking page.",
                "example": "6b4a8f12-3c95-4e71-9a0d-5f2c7e1b8d36"
              },
              "page_title": {
                "type": "string",
                "description": "Title of the page as the guest saw it when booking.",
                "example": "Intro call"
              },
              "page_available": {
                "type": "boolean",
                "description": "Whether the user can open the page in the booking settings (only its owner).",
                "example": true
              },
              "booked_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the guest booked, ISO 8601.",
                "example": "2026-11-02T10:12:00+00:00"
              },
              "email_confirmed": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether the guest confirmed their email. `null` when the page did not ask for it.",
                "example": true
              },
              "answers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "question": {
                      "type": "string",
                      "description": "The question as it was when booking.",
                      "example": "What do you want to talk about?"
                    },
                    "answer": {
                      "type": "string",
                      "description": "The answer, as plain text.",
                      "example": "Pricing"
                    }
                  }
                },
                "description": "Answers of the guest to the questions of the page, in the page order; only answered questions. Plain text.",
                "example": [
                  {
                    "question": "What do you want to talk about?",
                    "answer": "Pricing"
                  }
                ]
              }
            },
            "description": "The booking page that created the meeting. `null` for a meeting that does not come from a booking.",
            "example": {
              "page_uuid": "6b4a8f12-3c95-4e71-9a0d-5f2c7e1b8d36",
              "page_title": "Intro call",
              "page_available": true,
              "booked_at": "2026-11-02T10:12:00+00:00",
              "email_confirmed": true,
              "answers": [
                {
                  "question": "What do you want to talk about?",
                  "answer": "Pricing"
                }
              ]
            }
          }
        }
      },
      "MeetingCalendar-meeting_calendar.read": {
        "type": "object",
        "description": "`list_meeting_calendars` (fase 5): the Google calendars the user can see meetings of, and which of them they can\nwrite to. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's. A calendar is\nnot addressable on its own (there is no item operation): its pair `connection_uuid` + `calendar_id` is what the write\noperations take.",
        "deprecated": false,
        "properties": {
          "connection_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the Google connection (the Google account) that holds the calendar. Send it as `connection_uuid` when you create a meeting.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "calendar_id": {
            "type": "string",
            "description": "Google calendar ID (usually an email address). Send it as `calendar_id` when you create a meeting.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the calendar. `null` when unknown.",
            "example": "Sergio Gallego"
          },
          "account_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The connected Google account. It is the organizer of the meetings created in this calendar and the sender of the invitations. `null` when unknown.",
            "example": "sergio@acme.com"
          },
          "owned": {
            "type": "boolean",
            "description": "Whether the calendar belongs to the user who owns the token. `false` for the calendar of a colleague who shared theirs: you can read its meetings but not write.",
            "example": true
          },
          "writable": {
            "type": "boolean",
            "description": "Whether you can create meetings in it from Easymailing: it is the user's own, Calendar is active on the connection and Google allows writing.",
            "example": true
          }
        }
      },
      "MeetingCalendar.jsonld-meeting_calendar.read": {
        "type": "object",
        "description": "`list_meeting_calendars` (fase 5): the Google calendars the user can see meetings of, and which of them they can\nwrite to. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the texts are the proposal's. A calendar is\nnot addressable on its own (there is no item operation): its pair `connection_uuid` + `calendar_id` is what the write\noperations take.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "connection_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the Google connection (the Google account) that holds the calendar. Send it as `connection_uuid` when you create a meeting.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "calendar_id": {
            "type": "string",
            "description": "Google calendar ID (usually an email address). Send it as `calendar_id` when you create a meeting.",
            "example": "sergio@acme.com"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the calendar. `null` when unknown.",
            "example": "Sergio Gallego"
          },
          "account_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The connected Google account. It is the organizer of the meetings created in this calendar and the sender of the invitations. `null` when unknown.",
            "example": "sergio@acme.com"
          },
          "owned": {
            "type": "boolean",
            "description": "Whether the calendar belongs to the user who owns the token. `false` for the calendar of a colleague who shared theirs: you can read its meetings but not write.",
            "example": true
          },
          "writable": {
            "type": "boolean",
            "description": "Whether you can create meetings in it from Easymailing: it is the user's own, Calendar is active on the connection and Google allows writing.",
            "example": true
          }
        }
      },
      "MeetingWriteReceipt-meeting_write_receipt.read": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the receipt. Read it with `get_meeting_write_receipt`.",
            "example": "a1f6d3b8-2c74-4e09-b5a1-8d3e7f204c59"
          },
          "action": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingWriteAction",
            "description": "What the receipt is for: `create_event`, `update_event` or `cancel_event`.",
            "example": "create_event"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingWriteState",
            "description": "`confirmed`: Google applied the change and the meeting is in the CRM. `uncertain`: Google did not answer clearly; Easymailing keeps checking in the background for up to about an hour. `pending`: the write was recorded and is not resolved yet. `failed`: nothing was applied (see `error_code`) or it could not be confirmed. `conflict`: the event in Google differs from what the change expected (see `error_code`). `confirmed`, `failed` and `conflict` are final.",
            "example": "confirmed"
          },
          "meeting": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the meeting once it is confirmed and in the CRM (`/meetings/{uuid}`). `null` while the write is not final, when it failed, and in the rare case that the calendar stopped being synchronized meanwhile.",
            "example": "/meetings/5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/MeetingWriteError"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `failed` or `conflict` receipt did not apply the change; `null` otherwise. `permission_missing`: Google rejected the stored permission; the user must reconnect Google in the app. `provider_rejected`: Google refused the request definitively (invalid event, API disabled); nothing was created. `event_id_taken` (conflict): the event ID already belongs to another event, which is never touched. `not_confirmed`: Easymailing could not confirm that Google applied the change, so it may or may not have been applied; read the meeting (`get_meeting`) before repeating it to avoid a duplicate. `provider_version_conflict` (conflict): the event was changed or deleted in Google after Easymailing last read it; nothing was applied and a fresh read was queued, so read the meeting again and decide. `calendar_unavailable`: the calendar or its connection is no longer available. `calendar_not_writable`: Google answered that this account cannot change that event or calendar (for example, the user is not its organizer in Google).",
            "example": null
          }
        }
      },
      "MeetingWriteReceipt.MeetingCancelInput": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from the first entry of `writable_sources` in `get_meeting`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          },
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "MeetingWriteReceipt.MeetingCancelInput.jsonld": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from the first entry of `writable_sources` in `get_meeting`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          },
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          }
        }
      },
      "MeetingWriteReceipt.MeetingCreateInput": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "calendar_id",
          "title",
          "starts_at",
          "ends_at",
          "time_zone",
          "contacts",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from `list_meeting_calendars`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "calendar_id": {
            "maxLength": 255,
            "type": "string",
            "description": "Google calendar ID where the event is created (at most 255 characters). It must be a calendar of the user's own with `writable: true` in `list_meeting_calendars`.",
            "example": "sergio@acme.com"
          },
          "title": {
            "maxLength": 300,
            "type": "string",
            "description": "Title of the meeting, between 1 and 300 characters.",
            "example": "Demo of the annual plan"
          },
          "description": {
            "maxLength": 10000,
            "type": [
              "string",
              "null"
            ],
            "description": "Description as plain text, up to 10,000 characters. Line breaks are kept; HTML is not interpreted. `null` or empty means none.",
            "example": "Walk through pricing and next steps."
          },
          "starts_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "Start, ISO 8601 with the time zone or offset (`2026-11-05T16:00:00+01:00` or `...Z`). A date without time is not accepted: all-day meetings cannot be created.",
            "example": "2026-11-05T16:00:00+01:00"
          },
          "ends_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "End, ISO 8601 with the time zone or offset, after `starts_at`.",
            "example": "2026-11-05T16:30:00+01:00"
          },
          "time_zone": {
            "maxLength": 64,
            "type": "string",
            "description": "IANA time zone name in which the event is stored and shown in Google (at most 64 characters).",
            "example": "Europe/Madrid"
          },
          "location": {
            "maxLength": 1000,
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting, up to 1,000 characters. `null` or empty means none. It must be empty when `conference` is `external`.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingConferenceInput",
            "description": "Video call. `none` (default) adds none, `google_meet` creates a Google Meet link, `external` uses the link in `conference_url`.",
            "example": "google_meet"
          },
          "conference_url": {
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link of the external video call; required when `conference` is `external`, and it must start with `https://` (at most 2,048 characters). Google stores it in the place of the location.",
            "example": "https://zoom.us/j/123456789"
          },
          "attendees": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the guest, at most 320 characters.",
                  "example": "ana@example.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the guest, at most 255 characters. `null` when unknown.",
                  "example": "Ana García"
                }
              },
              "required": [
                "email"
              ]
            },
            "description": "The people Google invites, at most 50. The organizer (the connected Google account) is added automatically and must not be included. This is the only list of people who are invited: the records in `contacts`, `companies` and `opportunities` are CRM links and are not invited by themselves. Default: none.",
            "example": [
              {
                "email": "ana@example.com",
                "name": "Ana García"
              }
            ]
          },
          "contacts": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the contacts the meeting is related to (`/contacts/{uuid}`), at most 100. At least one contact is required: it is what makes the meeting appear in the CRM. It does not invite the contact; add their email to `attendees` for that.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ]
          },
          "companies": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the companies the meeting is related to (`/companies/{uuid}`), at most 100. Default: none.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ]
          },
          "opportunities": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the opportunities the meeting is related to (`/opportunities/{uuid}`), at most 100. Default: none. Linking an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ]
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          }
        }
      },
      "MeetingWriteReceipt.MeetingCreateInput.jsonld": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "calendar_id",
          "title",
          "starts_at",
          "ends_at",
          "time_zone",
          "contacts",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from `list_meeting_calendars`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "calendar_id": {
            "maxLength": 255,
            "type": "string",
            "description": "Google calendar ID where the event is created (at most 255 characters). It must be a calendar of the user's own with `writable: true` in `list_meeting_calendars`.",
            "example": "sergio@acme.com"
          },
          "title": {
            "maxLength": 300,
            "type": "string",
            "description": "Title of the meeting, between 1 and 300 characters.",
            "example": "Demo of the annual plan"
          },
          "description": {
            "maxLength": 10000,
            "type": [
              "string",
              "null"
            ],
            "description": "Description as plain text, up to 10,000 characters. Line breaks are kept; HTML is not interpreted. `null` or empty means none.",
            "example": "Walk through pricing and next steps."
          },
          "starts_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "Start, ISO 8601 with the time zone or offset (`2026-11-05T16:00:00+01:00` or `...Z`). A date without time is not accepted: all-day meetings cannot be created.",
            "example": "2026-11-05T16:00:00+01:00"
          },
          "ends_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "End, ISO 8601 with the time zone or offset, after `starts_at`.",
            "example": "2026-11-05T16:30:00+01:00"
          },
          "time_zone": {
            "maxLength": 64,
            "type": "string",
            "description": "IANA time zone name in which the event is stored and shown in Google (at most 64 characters).",
            "example": "Europe/Madrid"
          },
          "location": {
            "maxLength": 1000,
            "type": [
              "string",
              "null"
            ],
            "description": "Place of the meeting, up to 1,000 characters. `null` or empty means none. It must be empty when `conference` is `external`.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingConferenceInput",
            "description": "Video call. `none` (default) adds none, `google_meet` creates a Google Meet link, `external` uses the link in `conference_url`.",
            "example": "google_meet"
          },
          "conference_url": {
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link of the external video call; required when `conference` is `external`, and it must start with `https://` (at most 2,048 characters). Google stores it in the place of the location.",
            "example": "https://zoom.us/j/123456789"
          },
          "attendees": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the guest, at most 320 characters.",
                  "example": "ana@example.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the guest, at most 255 characters. `null` when unknown.",
                  "example": "Ana García"
                }
              },
              "required": [
                "email"
              ]
            },
            "description": "The people Google invites, at most 50. The organizer (the connected Google account) is added automatically and must not be included. This is the only list of people who are invited: the records in `contacts`, `companies` and `opportunities` are CRM links and are not invited by themselves. Default: none.",
            "example": [
              {
                "email": "ana@example.com",
                "name": "Ana García"
              }
            ]
          },
          "contacts": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the contacts the meeting is related to (`/contacts/{uuid}`), at most 100. At least one contact is required: it is what makes the meeting appear in the CRM. It does not invite the contact; add their email to `attendees` for that.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ]
          },
          "companies": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the companies the meeting is related to (`/companies/{uuid}`), at most 100. Default: none.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ]
          },
          "opportunities": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of the opportunities the meeting is related to (`/opportunities/{uuid}`), at most 100. Default: none. Linking an opportunity needs the `crm.opportunities.work` capability and `work` access to its pipeline.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ]
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          }
        }
      },
      "MeetingWriteReceipt.MeetingUpdateInput": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from the first entry of `writable_sources` in `get_meeting`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          },
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          },
          "title": {
            "maxLength": 300,
            "type": "string",
            "description": "New title, between 1 and 300 characters. It cannot be `null` or empty.",
            "example": "Demo of the annual plan (moved)"
          },
          "description": {
            "maxLength": 10000,
            "type": [
              "string",
              "null"
            ],
            "description": "New description as plain text, up to 10,000 characters. `null` or empty clears it.",
            "example": "Walk through pricing and next steps."
          },
          "starts_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "New start, ISO 8601 with time zone or offset. Send it together with `ends_at`.",
            "example": "2026-11-06T16:00:00+01:00"
          },
          "ends_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "New end, ISO 8601 with time zone or offset, after `starts_at`. Send it together with `starts_at`.",
            "example": "2026-11-06T16:30:00+01:00"
          },
          "time_zone": {
            "maxLength": 64,
            "type": "string",
            "description": "IANA time zone name in which the event is stored and shown in Google. Alone, it re-expresses the same instants in another zone.",
            "example": "Europe/Madrid"
          },
          "location": {
            "maxLength": 1000,
            "type": [
              "string",
              "null"
            ],
            "description": "New place, up to 1,000 characters. `null` or empty clears it. It must be empty when `conference` is `external`.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingConferenceInput",
            "description": "Video call: `google_meet` creates a Meet link (an existing Meet is kept), `external` sets the link in `conference_url`, `none` removes the current one. `null` is not valid.",
            "example": "none"
          },
          "conference_url": {
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link of the external video call, `https://` only. Required when `conference` is `external`, and not accepted without `conference`.",
            "example": "https://zoom.us/j/123456789"
          },
          "attendees": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the guest, at most 320 characters.",
                  "example": "ana@example.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the guest, at most 255 characters. `null` when unknown.",
                  "example": "Ana García"
                }
              },
              "required": [
                "email"
              ]
            },
            "description": "The COMPLETE list of guests the meeting must have, without the organizer, who is always kept, at most 50. Whoever is not in the list is removed from the event, and new addresses are invited. Omit the field to leave the guests untouched; `null` is not valid. Read the current guests with `get_meeting` first.",
            "example": [
              {
                "email": "ana@example.com",
                "name": "Ana García"
              }
            ]
          }
        }
      },
      "MeetingWriteReceipt.MeetingUpdateInput.jsonld": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "required": [
          "client_request_id",
          "connection_uuid",
          "send_updates"
        ],
        "properties": {
          "client_request_id": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID you generate for this request, once per intended meeting change. It makes the call safe to retry: sending the same body with the same `client_request_id` returns the same receipt and never writes to Google or invites anybody twice; sending different data with an already used value fails with `crm_meeting_write_rejected` (`client_request_reused`).",
            "example": "0f2b6d94-8e1a-4c37-a5d0-1b9e4c7a3f68"
          },
          "connection_uuid": {
            "format": "uuid",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "type": "string",
            "description": "UUID of the Google connection that holds the calendar. Take it from the first entry of `writable_sources` in `get_meeting`.",
            "example": "c4b7e9a2-1d35-4f68-8a0e-72b5d9c13e86"
          },
          "send_updates": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingSendUpdates",
            "description": "Who Google emails about this change. `all`: every guest. `external_only`: only guests who do not use Google Calendar. `none`: Google sends no email (the guests are still on the event). There is no default: choose deliberately, and ask the user when you are not sure, because the emails come from the user's Google account and cannot be recalled.",
            "example": "all"
          },
          "expected_version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Version of the meeting you read (`version`). Optional: if you send it and the meeting has changed since, nothing is written and you get `crm_meeting_version_conflict`; if you leave it out, the change is applied over the current state (Google still refuses it, with a `conflict` receipt, when the event changed there after Easymailing last read it).",
            "example": 3,
            "minimum": 1
          },
          "title": {
            "maxLength": 300,
            "type": "string",
            "description": "New title, between 1 and 300 characters. It cannot be `null` or empty.",
            "example": "Demo of the annual plan (moved)"
          },
          "description": {
            "maxLength": 10000,
            "type": [
              "string",
              "null"
            ],
            "description": "New description as plain text, up to 10,000 characters. `null` or empty clears it.",
            "example": "Walk through pricing and next steps."
          },
          "starts_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "New start, ISO 8601 with time zone or offset. Send it together with `ends_at`.",
            "example": "2026-11-06T16:00:00+01:00"
          },
          "ends_at": {
            "pattern": "^(.*(^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,6})?)?(Z|[+-]\\d{2}:\\d{2})$).*)$",
            "type": "string",
            "format": "date-time",
            "description": "New end, ISO 8601 with time zone or offset, after `starts_at`. Send it together with `starts_at`.",
            "example": "2026-11-06T16:30:00+01:00"
          },
          "time_zone": {
            "maxLength": 64,
            "type": "string",
            "description": "IANA time zone name in which the event is stored and shown in Google. Alone, it re-expresses the same instants in another zone.",
            "example": "Europe/Madrid"
          },
          "location": {
            "maxLength": 1000,
            "type": [
              "string",
              "null"
            ],
            "description": "New place, up to 1,000 characters. `null` or empty clears it. It must be empty when `conference` is `external`.",
            "example": "Acme office, Madrid"
          },
          "conference": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/MeetingConferenceInput",
            "description": "Video call: `google_meet` creates a Meet link (an existing Meet is kept), `external` sets the link in `conference_url`, `none` removes the current one. `null` is not valid.",
            "example": "none"
          },
          "conference_url": {
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link of the external video call, `https://` only. Required when `conference` is `external`, and not accepted without `conference`.",
            "example": "https://zoom.us/j/123456789"
          },
          "attendees": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Email address of the guest, at most 320 characters.",
                  "example": "ana@example.com"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Name of the guest, at most 255 characters. `null` when unknown.",
                  "example": "Ana García"
                }
              },
              "required": [
                "email"
              ]
            },
            "description": "The COMPLETE list of guests the meeting must have, without the organizer, who is always kept, at most 50. Whoever is not in the list is removed from the event, and new addresses are invited. Omit the field to leave the guests untouched; `null` is not valid. Read the current guests with `get_meeting` first.",
            "example": [
              {
                "email": "ana@example.com",
                "name": "Ana García"
              }
            ]
          }
        }
      },
      "MeetingWriteReceipt.jsonld-meeting_write_receipt.read": {
        "type": "object",
        "description": "`get_meeting_write_receipt` (fase 5): the receipt of a create, change or cancel of a meeting, only for the user who\nmade the write, and the writes that answer it (202): `create_meeting`, `update_meeting` and `cancel_meeting`, which\nwrite the event in Google during the request. Generated from the proposal by fase-5/tools/gen_meetings_api.py; the\ntexts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the receipt. Read it with `get_meeting_write_receipt`.",
            "example": "a1f6d3b8-2c74-4e09-b5a1-8d3e7f204c59"
          },
          "action": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingWriteAction",
            "description": "What the receipt is for: `create_event`, `update_event` or `cancel_event`.",
            "example": "create_event"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/MeetingWriteState",
            "description": "`confirmed`: Google applied the change and the meeting is in the CRM. `uncertain`: Google did not answer clearly; Easymailing keeps checking in the background for up to about an hour. `pending`: the write was recorded and is not resolved yet. `failed`: nothing was applied (see `error_code`) or it could not be confirmed. `conflict`: the event in Google differs from what the change expected (see `error_code`). `confirmed`, `failed` and `conflict` are final.",
            "example": "confirmed"
          },
          "meeting": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the meeting once it is confirmed and in the CRM (`/meetings/{uuid}`). `null` while the write is not final, when it failed, and in the rare case that the calendar stopped being synchronized meanwhile.",
            "example": "/meetings/5e8c2d41-7a96-4b30-9d1f-3c0a8e6b2f74"
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ],
            "anyOf": [
              {
                "$ref": "#/components/schemas/MeetingWriteError"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `failed` or `conflict` receipt did not apply the change; `null` otherwise. `permission_missing`: Google rejected the stored permission; the user must reconnect Google in the app. `provider_rejected`: Google refused the request definitively (invalid event, API disabled); nothing was created. `event_id_taken` (conflict): the event ID already belongs to another event, which is never touched. `not_confirmed`: Easymailing could not confirm that Google applied the change, so it may or may not have been applied; read the meeting (`get_meeting`) before repeating it to avoid a duplicate. `provider_version_conflict` (conflict): the event was changed or deleted in Google after Easymailing last read it; nothing was applied and a fresh read was queued, so read the meeting again and decide. `calendar_unavailable`: the calendar or its connection is no longer available. `calendar_not_writable`: Google answered that this account cannot change that event or calendar (for example, the user is not its organizer in Google).",
            "example": null
          }
        }
      },
      "Member-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip address the contact signup from"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person (locale code such as `es_ES`).",
            "example": "es_ES"
          },
          "location": {
            "description": "Location of the person.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "email_opt_in_source": {
            "type": "string",
            "description": "How the member entered the audience.",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "email_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to email"
          },
          "email_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of email"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriberSource",
            "description": "How the member entered the audience."
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-automation_queue.read"
            }
          },
          "member_consent": {
            "description": "GDPR consent given by the member, when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values of the audience custom fields for this member.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-automation_queue.read"
            }
          },
          "suscription_form": {
            "description": "Subscription form the member signed up through, if any.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "stats": {
            "description": "Email engagement and ecommerce totals of the member.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberStatsResource-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Member-member.action": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Channels to unsubscribe: `email`, `sms` or both. Defaults to both when omitted. Only channels that are currently confirmed are changed.",
            "example": [
              "email"
            ]
          }
        }
      },
      "Member-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format",
            "example": "+34612345678"
          },
          "first_name": {
            "description": "First name.",
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "description": "Last name.",
            "type": [
              "string",
              "null"
            ]
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip address the contact signup from"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person (locale code such as `es_ES`).",
            "example": "es_ES"
          },
          "location": {
            "description": "Location of the person.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "email_opt_in_source": {
            "type": "string",
            "description": "How the member entered the audience.",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "email_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to email"
          },
          "email_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of email"
          },
          "sms_status": {
            "type": "string",
            "description": "SMS subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "sms_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to SMS"
          },
          "sms_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of SMS"
          },
          "sms_opt_in_source": {
            "type": "string",
            "description": "Source of SMS opt-in",
            "enum": [
              "api",
              "manual",
              "form",
              "import"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriberSource",
            "description": "How the member entered the audience."
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact: the person this member belongs to (`/contacts/{uuid}`). The member is the person's subscription to one audience; the contact is the person, who is one for the whole account and appears as `contact` in the member of every audience they are in. Read-only. Use it with `get_contact` for their company, tags and attributes, or with `list_contact_audience_memberships` for all their audiences.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-member.read"
            }
          },
          "member_consent": {
            "description": "GDPR consent given by the member, when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values of the audience custom fields for this member.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-member.read"
            }
          },
          "suscription_form": {
            "description": "Subscription form the member signed up through, if any.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriptionForm-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "description": "Email engagement and ecommerce totals of the member.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberStatsResource-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Member-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address. Send `email`, `phone` or both; at least one is required. The person is matched with an existing contact of the account by email, then by phone.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format. It must not belong to a different contact than the email.",
            "example": "+34612345678"
          },
          "first_name": {
            "description": "First name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "Ana"
          },
          "last_name": {
            "description": "Last name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "García"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IPv4 address the person signed up from. Used to infer their location and stored as consent evidence.",
            "example": "203.0.113.7"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "description": "Where the person lives. All fields are optional.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "groups": {
            "description": "IRIs of the groups to put the member in (`/audiences/{audienceUuid}/groups/{uuid}`). On creation they are added to any groups the member already has",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            ]
          },
          "member_consent": {
            "description": "GDPR consent given by the person. Only stored when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values for the audience custom fields. Only the fields you list are set; the rest keep their value.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-member.write"
            },
            "example": [
              {
                "list_field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15",
                "value": "Acme"
              }
            ]
          }
        }
      },
      "Member.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip address the contact signup from"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person (locale code such as `es_ES`).",
            "example": "es_ES"
          },
          "location": {
            "description": "Location of the person.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location.jsonld-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "email_opt_in_source": {
            "type": "string",
            "description": "How the member entered the audience.",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "email_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to email"
          },
          "email_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of email"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriberSource",
            "description": "How the member entered the audience."
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-automation_queue.read"
            }
          },
          "member_consent": {
            "description": "GDPR consent given by the member, when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values of the audience custom fields for this member.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-automation_queue.read"
            }
          },
          "suscription_form": {
            "description": "Subscription form the member signed up through, if any.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "stats": {
            "description": "Email engagement and ecommerce totals of the member.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberStatsResource.jsonld-automation_queue.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Member.jsonld-member.action": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Channels to unsubscribe: `email`, `sms` or both. Defaults to both when omitted. Only channels that are currently confirmed are changed.",
            "example": [
              "email"
            ]
          }
        }
      },
      "Member.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format",
            "example": "+34612345678"
          },
          "first_name": {
            "description": "First name.",
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "description": "Last name.",
            "type": [
              "string",
              "null"
            ]
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip address the contact signup from"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person (locale code such as `es_ES`).",
            "example": "es_ES"
          },
          "location": {
            "description": "Location of the person.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location.jsonld-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "email_opt_in_source": {
            "type": "string",
            "description": "How the member entered the audience.",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "email_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to email"
          },
          "email_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of email"
          },
          "sms_status": {
            "type": "string",
            "description": "SMS subscription status of the member.",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "sms_opt_in_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted in to SMS"
          },
          "sms_opt_out_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time member opted out of SMS"
          },
          "sms_opt_in_source": {
            "type": "string",
            "description": "Source of SMS opt-in",
            "enum": [
              "api",
              "manual",
              "form",
              "import"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriberSource",
            "description": "How the member entered the audience."
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "contact": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact: the person this member belongs to (`/contacts/{uuid}`). The member is the person's subscription to one audience; the contact is the person, who is one for the whole account and appears as `contact` in the member of every audience they are in. Read-only. Use it with `get_contact` for their company, tags and attributes, or with `list_contact_audience_memberships` for all their audiences.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "groups": {
            "description": "Groups the member belongs to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-member.read"
            }
          },
          "member_consent": {
            "description": "GDPR consent given by the member, when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values of the audience custom fields for this member.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-member.read"
            }
          },
          "suscription_form": {
            "description": "Subscription form the member signed up through, if any.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriptionForm.jsonld-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "description": "Email engagement and ecommerce totals of the member.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberStatsResource.jsonld-member.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Member.jsonld-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address. Send `email`, `phone` or both; at least one is required. The person is matched with an existing contact of the account by email, then by phone.",
            "example": "ana@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number in E.164 format. It must not belong to a different contact than the email.",
            "example": "+34612345678"
          },
          "first_name": {
            "description": "First name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "Ana"
          },
          "last_name": {
            "description": "Last name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "García"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IPv4 address the person signed up from. Used to infer their location and stored as consent evidence.",
            "example": "203.0.113.7"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "description": "Where the person lives. All fields are optional.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location.jsonld-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "groups": {
            "description": "IRIs of the groups to put the member in (`/audiences/{audienceUuid}/groups/{uuid}`). On creation they are added to any groups the member already has",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/419eb38e-62fd-454e-98a7-c8dd5e9752dd"
            ]
          },
          "member_consent": {
            "description": "GDPR consent given by the person. Only stored when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values for the audience custom fields. Only the fields you list are set; the rest keep their value.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-member.write"
            },
            "example": [
              {
                "list_field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15",
                "value": "Acme"
              }
            ]
          }
        }
      },
      "MemberActivity-member_activity.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "type": {
            "description": "Activity type.",
            "type": [
              "string",
              "null"
            ]
          },
          "data": {
            "description": "Details of the activity; the content depends on the type.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "description": "When it happened.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MemberActivity.jsonld-member_activity.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "description": "Internal numeric identifier. Use `uuid` instead.",
            "type": [
              "integer",
              "null"
            ]
          },
          "type": {
            "description": "Activity type.",
            "type": [
              "string",
              "null"
            ]
          },
          "data": {
            "description": "Details of the activity; the content depends on the type.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "description": "When it happened.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MemberCampaignDeliveredEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email address that received the campaign"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberCampaignDeliveredEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string",
            "description": "Email address that received the campaign"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberCleanedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member cleaned"
          }
        }
      },
      "MemberCleanedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member cleaned"
          }
        }
      },
      "MemberConsent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "MemberConsent-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose-automation_queue.read"
            }
          }
        }
      },
      "MemberConsent-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address from which the consent was given.",
            "example": "203.0.113.10"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the treatment purposes the customer accepted (`/treatment_purposes/{uuid}`).",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
            ]
          }
        }
      },
      "MemberConsent-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address from which the consent was given.",
            "example": "203.0.113.10"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the treatment purposes the customer accepted (`/treatment_purposes/{uuid}`).",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
            ]
          }
        }
      },
      "MemberConsent-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose-member.read"
            }
          }
        }
      },
      "MemberConsent-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address the consent was given from.",
            "example": "203.0.113.7"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given, in ISO 8601. Defaults to now.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes the person consented to (`/treatment_purposes/{uuid}`). Purposes not enabled in the audience are ignored.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          }
        }
      },
      "MemberConsent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "MemberConsent.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose.jsonld-automation_queue.read"
            }
          }
        }
      },
      "MemberConsent.jsonld-customer.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address from which the consent was given.",
            "example": "203.0.113.10"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the treatment purposes the customer accepted (`/treatment_purposes/{uuid}`).",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
            ]
          }
        }
      },
      "MemberConsent.jsonld-customer.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address from which the consent was given.",
            "example": "203.0.113.10"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the treatment purposes the customer accepted (`/treatment_purposes/{uuid}`).",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527"
            ]
          }
        }
      },
      "MemberConsent.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "treatment_purposes": {
            "description": "Purposes the member consented to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurpose.jsonld-member.read"
            }
          }
        }
      },
      "MemberConsent.jsonld-member.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IP address the consent was given from.",
            "example": "203.0.113.7"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the consent was given, in ISO 8601. Defaults to now.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes the person consented to (`/treatment_purposes/{uuid}`). Purposes not enabled in the audience are ignored.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          }
        }
      },
      "MemberSmsBouncedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsBouncedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsClickedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "url": {
            "type": "string",
            "description": "Destination URL clicked"
          },
          "ip": {
            "type": "string",
            "description": "IP address from which the click was registered"
          },
          "phone": {
            "type": "string",
            "description": "Phone number that produced the click"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsClickedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "url": {
            "type": "string",
            "description": "Destination URL clicked"
          },
          "ip": {
            "type": "string",
            "description": "IP address from which the click was registered"
          },
          "phone": {
            "type": "string",
            "description": "Phone number that produced the click"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsDeliveredEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number that received the SMS"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsDeliveredEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number that received the SMS"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsRepliedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_stop_request": {
            "type": "boolean"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "stop_request": {
            "readOnly": true,
            "type": "boolean"
          }
        }
      },
      "MemberSmsRepliedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_stop_request": {
            "type": "boolean"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "sms_campaign": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "stop_request": {
            "readOnly": true,
            "type": "boolean"
          }
        }
      },
      "MemberSmsSubscribedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "subscription_form": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsSubscribedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "subscription_form": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsUnsubscribedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reason for unsubscribe",
            "enum": [
              "campaign_sms_link",
              "campaign_sms_stop",
              "admin",
              "webform",
              "system_rule_hard_bounce",
              "api",
              null
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberSmsUnsubscribedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reason for unsubscribe",
            "enum": [
              "campaign_sms_link",
              "campaign_sms_stop",
              "admin",
              "webform",
              "system_rule_hard_bounce",
              "api",
              null
            ]
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          }
        }
      },
      "MemberStatsResource-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Emails sent to the member.",
            "type": "integer"
          },
          "delivered_emails": {
            "description": "Emails delivered to the member.",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Distinct campaigns the member opened.",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Distinct campaigns in which the member clicked a link.",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate.",
            "type": "number"
          },
          "click_rate": {
            "description": "Click rate.",
            "type": "number"
          },
          "orders": {
            "description": "Orders placed by the member.",
            "type": "integer"
          },
          "revenue": {
            "description": "Revenue from the member.",
            "type": "integer"
          },
          "order_rate": {
            "description": "Order rate.",
            "type": "number"
          },
          "avg_revenue": {
            "description": "Average revenue per order.",
            "type": "integer"
          }
        }
      },
      "MemberStatsResource-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Emails sent to the member.",
            "type": "integer"
          },
          "delivered_emails": {
            "description": "Emails delivered to the member.",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Distinct campaigns the member opened.",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Distinct campaigns in which the member clicked a link.",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate.",
            "type": "number"
          },
          "click_rate": {
            "description": "Click rate.",
            "type": "number"
          },
          "orders": {
            "description": "Orders placed by the member.",
            "type": "integer"
          },
          "revenue": {
            "description": "Revenue from the member.",
            "type": "integer"
          },
          "order_rate": {
            "description": "Order rate.",
            "type": "number"
          },
          "avg_revenue": {
            "description": "Average revenue per order.",
            "type": "integer"
          }
        }
      },
      "MemberStatsResource.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Emails sent to the member.",
            "type": "integer"
          },
          "delivered_emails": {
            "description": "Emails delivered to the member.",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Distinct campaigns the member opened.",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Distinct campaigns in which the member clicked a link.",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate.",
            "type": "number"
          },
          "click_rate": {
            "description": "Click rate.",
            "type": "number"
          },
          "orders": {
            "description": "Orders placed by the member.",
            "type": "integer"
          },
          "revenue": {
            "description": "Revenue from the member.",
            "type": "integer"
          },
          "order_rate": {
            "description": "Order rate.",
            "type": "number"
          },
          "avg_revenue": {
            "description": "Average revenue per order.",
            "type": "integer"
          }
        }
      },
      "MemberStatsResource.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Emails sent to the member.",
            "type": "integer"
          },
          "delivered_emails": {
            "description": "Emails delivered to the member.",
            "type": "integer"
          },
          "unique_opens": {
            "description": "Distinct campaigns the member opened.",
            "type": "integer"
          },
          "unique_clicks": {
            "description": "Distinct campaigns in which the member clicked a link.",
            "type": "integer"
          },
          "open_rate": {
            "description": "Open rate.",
            "type": "number"
          },
          "click_rate": {
            "description": "Click rate.",
            "type": "number"
          },
          "orders": {
            "description": "Orders placed by the member.",
            "type": "integer"
          },
          "revenue": {
            "description": "Revenue from the member.",
            "type": "integer"
          },
          "order_rate": {
            "description": "Order rate.",
            "type": "number"
          },
          "avg_revenue": {
            "description": "Average revenue per order.",
            "type": "integer"
          }
        }
      },
      "MemberSubscribedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member subscribed"
          }
        }
      },
      "MemberSubscribedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member subscribed"
          }
        }
      },
      "MemberUnsubscribedEvent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member unsubscribed"
          }
        }
      },
      "MemberUnsubscribedEvent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Event name"
          },
          "member": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Member unsubscribed"
          }
        }
      },
      "MergeTag-merge_tag.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "tag": {
            "type": "string",
            "description": "Identifier of the tag, without the braces.",
            "example": "link.campaign.unsuscribe"
          },
          "title": {
            "type": "string",
            "description": "Human-readable tag title",
            "example": "Unsubscribe link"
          },
          "type": {
            "type": "string",
            "description": "Tag type: special_link, merge_tag, or merge_content",
            "example": "special_link",
            "enum": [
              "special_link",
              "merge_tag",
              "merge_content"
            ]
          },
          "template_tag": {
            "type": "string",
            "description": "Tag formatted for use in templates with {{ }} delimiters",
            "example": "{{ link.campaign.unsuscribe }}"
          },
          "required": {
            "type": "boolean",
            "description": "Whether this tag is required in email templates",
            "example": true
          }
        }
      },
      "MergeTag.jsonld-merge_tag.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "tag": {
            "type": "string",
            "description": "Identifier of the tag, without the braces.",
            "example": "link.campaign.unsuscribe"
          },
          "title": {
            "type": "string",
            "description": "Human-readable tag title",
            "example": "Unsubscribe link"
          },
          "type": {
            "type": "string",
            "description": "Tag type: special_link, merge_tag, or merge_content",
            "example": "special_link",
            "enum": [
              "special_link",
              "merge_tag",
              "merge_content"
            ]
          },
          "template_tag": {
            "type": "string",
            "description": "Tag formatted for use in templates with {{ }} delimiters",
            "example": "{{ link.campaign.unsuscribe }}"
          },
          "required": {
            "type": "boolean",
            "description": "Whether this tag is required in email templates",
            "example": true
          }
        }
      },
      "MoveToStepAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "target_step": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the step of the same automation that the contact jumps to. Required when updating; leave it out when creating the step.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "MoveToStepAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "target_step": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the step of the same automation that the contact jumps to. Required when updating; leave it out when creating the step.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "MoveToStepAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "target_step": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the step of the same automation that the contact jumps to. Required when updating; leave it out when creating the step.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "MoveToStepAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "target_step": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the step of the same automation that the contact jumps to. Required when updating; leave it out when creating the step.",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "MySuscription-my_suscription.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "credits": {
            "type": "integer",
            "description": "Credits available for the account. -1 for unlimited"
          },
          "credits_used": {
            "type": "integer",
            "description": "Credits used for the account"
          },
          "subscribers_used": {
            "type": "integer",
            "description": "Subscribers used for the account"
          },
          "max_subscribers": {
            "type": "integer",
            "description": "Max subscribers for the account. -1 for unlimited"
          },
          "audiences": {
            "type": "integer",
            "description": "Max audiences. -1 for unlimited"
          },
          "automations": {
            "type": "integer",
            "description": "Max automations. -1 for unlimited"
          },
          "automation_triggers": {
            "type": "integer",
            "description": "Max automation triggers."
          },
          "websites": {
            "type": "integer",
            "description": "Max websites. -1 for unlimited"
          },
          "expiration_date": {
            "type": "string",
            "format": "date-time",
            "description": "Expiration date for the account"
          },
          "domain": {
            "type": "string",
            "description": "Domain for the account"
          },
          "tier": {
            "type": "string",
            "description": "Subscription tier"
          },
          "locale": {
            "type": "string",
            "description": "Your locale"
          },
          "ai_cost_used_cents": {
            "type": "integer",
            "description": "AI cost used in cents"
          },
          "ai_cost_limit_cents": {
            "type": "integer",
            "description": "AI cost limit in cents. -1 for unlimited"
          },
          "allow_ai_overage": {
            "type": "boolean",
            "description": "Allow AI overage usage"
          },
          "ai_overage_limit_cents": {
            "type": "integer",
            "description": "AI overage limit in cents. null for unlimited"
          },
          "can_have_ai_overage": {
            "type": "boolean",
            "description": "Can have AI overage (only SUBSCRIBERS_MONTHLY plans)"
          },
          "sms_credits": {
            "type": "integer",
            "description": "Total SMS credits available"
          },
          "sms_credits_used": {
            "type": "integer",
            "description": "SMS credits consumed"
          },
          "sms_credits_remaining": {
            "type": "integer",
            "description": "SMS credits remaining (smsCredits - smsCreditsUsed)"
          },
          "sms_campaigns_enabled": {
            "type": "boolean",
            "description": "Whether SMS campaigns feature is enabled for this subscription tier"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthenticatedUser-my_suscription.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "MySuscription.jsonld-my_suscription.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "credits": {
            "type": "integer",
            "description": "Credits available for the account. -1 for unlimited"
          },
          "credits_used": {
            "type": "integer",
            "description": "Credits used for the account"
          },
          "subscribers_used": {
            "type": "integer",
            "description": "Subscribers used for the account"
          },
          "max_subscribers": {
            "type": "integer",
            "description": "Max subscribers for the account. -1 for unlimited"
          },
          "audiences": {
            "type": "integer",
            "description": "Max audiences. -1 for unlimited"
          },
          "automations": {
            "type": "integer",
            "description": "Max automations. -1 for unlimited"
          },
          "automation_triggers": {
            "type": "integer",
            "description": "Max automation triggers."
          },
          "websites": {
            "type": "integer",
            "description": "Max websites. -1 for unlimited"
          },
          "expiration_date": {
            "type": "string",
            "format": "date-time",
            "description": "Expiration date for the account"
          },
          "domain": {
            "type": "string",
            "description": "Domain for the account"
          },
          "tier": {
            "type": "string",
            "description": "Subscription tier"
          },
          "locale": {
            "type": "string",
            "description": "Your locale"
          },
          "ai_cost_used_cents": {
            "type": "integer",
            "description": "AI cost used in cents"
          },
          "ai_cost_limit_cents": {
            "type": "integer",
            "description": "AI cost limit in cents. -1 for unlimited"
          },
          "allow_ai_overage": {
            "type": "boolean",
            "description": "Allow AI overage usage"
          },
          "ai_overage_limit_cents": {
            "type": "integer",
            "description": "AI overage limit in cents. null for unlimited"
          },
          "can_have_ai_overage": {
            "type": "boolean",
            "description": "Can have AI overage (only SUBSCRIBERS_MONTHLY plans)"
          },
          "sms_credits": {
            "type": "integer",
            "description": "Total SMS credits available"
          },
          "sms_credits_used": {
            "type": "integer",
            "description": "SMS credits consumed"
          },
          "sms_credits_remaining": {
            "type": "integer",
            "description": "SMS credits remaining (smsCredits - smsCreditsUsed)"
          },
          "sms_campaigns_enabled": {
            "type": "boolean",
            "description": "Whether SMS campaigns feature is enabled for this subscription tier"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthenticatedUser.jsonld-my_suscription.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Note": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the note.",
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the note belongs to. A note belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/NoteRecordType",
            "description": "Kind of record the note belongs to.",
            "example": "contact"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title of the note. `null` when it has none.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note as limited HTML (paragraphs, headings, lists, bold, italic, underline, links and images).",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          },
          "preview_text": {
            "type": "string",
            "description": "Plain-text start of the note, up to 280 characters, to show it in a list.",
            "example": "Ana wants the annual plan with quarterly billing.",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Author of the note. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "updated_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who last edited the note; the author when it was never edited. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the note; it grows with every edit. Send it as `expected_version` to make sure nobody edited the note in between.",
            "example": 1
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit this note: its author or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this note: the same people who can edit it.",
            "example": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note last changed, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          }
        }
      },
      "Note-note.read": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the note.",
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the note belongs to. A note belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/NoteRecordType",
            "description": "Kind of record the note belongs to.",
            "example": "contact"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title of the note. `null` when it has none.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note as limited HTML (paragraphs, headings, lists, bold, italic, underline, links and images).",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          },
          "preview_text": {
            "type": "string",
            "description": "Plain-text start of the note, up to 280 characters, to show it in a list.",
            "example": "Ana wants the annual plan with quarterly billing.",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Author of the note. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "updated_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who last edited the note; the author when it was never edited. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the note; it grows with every edit. Send it as `expected_version` to make sure nobody edited the note in between.",
            "example": 1
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit this note: its author or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this note: the same people who can edit it.",
            "example": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note last changed, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          }
        }
      },
      "Note.NoteCreateInput": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "required": [
          "record",
          "body_html"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the note is written on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. It cannot be changed afterwards.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title, up to 200 characters.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note. Limited HTML: paragraphs, line breaks, headings, lists, bold, italic, underline, links (`http`, `https`, `mailto`) and images; anything else is removed. At most 10,000 visible characters and 60,000 bytes. It cannot be empty.",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          }
        }
      },
      "Note.NoteCreateInput.jsonld": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "required": [
          "record",
          "body_html"
        ],
        "properties": {
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the record the note is written on: `/contacts/{uuid}`, `/companies/{uuid}` or `/opportunities/{uuid}`. It cannot be changed afterwards.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title, up to 200 characters.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note. Limited HTML: paragraphs, line breaks, headings, lists, bold, italic, underline, links (`http`, `https`, `mailto`) and images; anything else is removed. At most 10,000 visible characters and 60,000 bytes. It cannot be empty.",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          }
        }
      },
      "Note.NoteUpdateInput": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the note, up to 200 characters. `null` removes it.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "New text of the note, replacing the whole previous text. Limited HTML: paragraphs, line breaks, headings, lists, bold, italic, underline, links (`http`, `https`, `mailto`) and images; anything else is removed. At most 10,000 visible characters and 60,000 bytes. It cannot be empty.",
            "example": "<p>Ana wants the annual plan with <strong>monthly billing</strong>.</p>"
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the note you read (`version`). Optional: if you send it and the note has changed since, nothing is saved and you get `crm_note_version_conflict`; if you leave it out, the change is applied over the current text.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Note.NoteUpdateInput.jsonld": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title of the note, up to 200 characters. `null` removes it.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "New text of the note, replacing the whole previous text. Limited HTML: paragraphs, line breaks, headings, lists, bold, italic, underline, links (`http`, `https`, `mailto`) and images; anything else is removed. At most 10,000 visible characters and 60,000 bytes. It cannot be empty.",
            "example": "<p>Ana wants the annual plan with <strong>monthly billing</strong>.</p>"
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the note you read (`version`). Optional: if you send it and the note has changed since, nothing is saved and you get `crm_note_version_conflict`; if you leave it out, the change is applied over the current text.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Note.jsonld": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the note.",
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the note belongs to. A note belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/NoteRecordType",
            "description": "Kind of record the note belongs to.",
            "example": "contact"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title of the note. `null` when it has none.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note as limited HTML (paragraphs, headings, lists, bold, italic, underline, links and images).",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          },
          "preview_text": {
            "type": "string",
            "description": "Plain-text start of the note, up to 280 characters, to show it in a list.",
            "example": "Ana wants the annual plan with quarterly billing.",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Author of the note. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "updated_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who last edited the note; the author when it was never edited. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the note; it grows with every edit. Send it as `expected_version` to make sure nobody edited the note in between.",
            "example": 1
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit this note: its author or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this note: the same people who can edit it.",
            "example": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note last changed, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          }
        }
      },
      "Note.jsonld-note.read": {
        "type": "object",
        "description": "Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and\nedited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or\nprocessor before anything else, because API Platform evaluates `security` after the provider.\n\n`list_notes` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives the total of the record. `cursor` is the opaque position of each item, which API Platform copies into\nthe `cursor[gt]` of `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never\npublished.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the note.",
            "example": "9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62"
          },
          "record": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the contact, company or opportunity the note belongs to. A note belongs to exactly one record and never moves.",
            "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "record_type": {
            "type": "string",
            "$ref": "#/components/schemas/NoteRecordType",
            "description": "Kind of record the note belongs to.",
            "example": "contact"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional title of the note. `null` when it has none.",
            "example": "Call with Ana, 30 Oct"
          },
          "body_html": {
            "type": "string",
            "description": "Text of the note as limited HTML (paragraphs, headings, lists, bold, italic, underline, links and images).",
            "example": "<p>Ana wants the annual plan with <strong>quarterly billing</strong>.</p>"
          },
          "preview_text": {
            "type": "string",
            "description": "Plain-text start of the note, up to 280 characters, to show it in a list.",
            "example": "Ana wants the annual plan with quarterly billing.",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Author of the note. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "updated_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who last edited the note; the author when it was never edited. `null` when unknown.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Sergio Gallego"
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the note; it grows with every edit. Send it as `expected_version` to make sure nobody edited the note in between.",
            "example": 1
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit this note: its author or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this note: the same people who can edit it.",
            "example": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the note last changed, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          }
        }
      },
      "Operation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "method",
          "path"
        ],
        "properties": {
          "method": {
            "enum": [
              "POST",
              "PUT",
              "GET",
              "DELETE"
            ],
            "type": "string",
            "description": "Method (POST, PUT, GET, DELETE)",
            "example": "POST"
          },
          "body": {
            "type": "string",
            "format": "json",
            "description": "json body"
          },
          "path": {
            "type": "string",
            "description": "Path to the resource",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Url parameters"
          },
          "external_identifier": {
            "type": "string",
            "description": "Optional client identifier for the operation"
          }
        }
      },
      "Operation-batch_operation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "method",
          "path"
        ],
        "properties": {
          "method": {
            "enum": [
              "POST",
              "PUT",
              "GET",
              "DELETE"
            ],
            "type": "string",
            "description": "HTTP method of the call.",
            "example": "POST"
          },
          "body": {
            "type": "string",
            "format": "json",
            "description": "JSON body of the call, written as a string.",
            "example": "{\"email\": \"ana@example.com\"}"
          },
          "path": {
            "type": "string",
            "description": "Path of an endpoint of this API, without the host.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Query parameters of the call, as an object.",
            "example": {
              "disable_double_opt_in": "true"
            }
          },
          "external_identifier": {
            "type": "string",
            "description": "Your own reference for the call (for example a row number) to find it in the results.",
            "example": "row-1"
          }
        }
      },
      "Operation.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "method",
          "path"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "method": {
            "enum": [
              "POST",
              "PUT",
              "GET",
              "DELETE"
            ],
            "type": "string",
            "description": "Method (POST, PUT, GET, DELETE)",
            "example": "POST"
          },
          "body": {
            "type": "string",
            "format": "json",
            "description": "json body"
          },
          "path": {
            "type": "string",
            "description": "Path to the resource",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Url parameters"
          },
          "external_identifier": {
            "type": "string",
            "description": "Optional client identifier for the operation"
          }
        }
      },
      "Operation.jsonld-batch_operation.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "method",
          "path"
        ],
        "properties": {
          "method": {
            "enum": [
              "POST",
              "PUT",
              "GET",
              "DELETE"
            ],
            "type": "string",
            "description": "HTTP method of the call.",
            "example": "POST"
          },
          "body": {
            "type": "string",
            "format": "json",
            "description": "JSON body of the call, written as a string.",
            "example": "{\"email\": \"ana@example.com\"}"
          },
          "path": {
            "type": "string",
            "description": "Path of an endpoint of this API, without the host.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members"
          },
          "params": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Query parameters of the call, as an object.",
            "example": {
              "disable_double_opt_in": "true"
            }
          },
          "external_identifier": {
            "type": "string",
            "description": "Your own reference for the call (for example a row number) to find it in the results.",
            "example": "row-1"
          }
        }
      },
      "Opportunity": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note given when it was lost.",
            "example": "Chose a competitor with a lower price.",
            "readOnly": true
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Opportunity-opportunity.list": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Opportunity-opportunity.list_opportunity.detail": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note given when it was lost.",
            "example": "Chose a competitor with a lower price.",
            "readOnly": true
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Opportunity.OpportunityCreateInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "title",
          "pipeline"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the opportunity. Required to create it; it cannot be `null`.",
            "example": "Acme annual plan"
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline (`/pipelines/{uuid}`) where the deal starts. Get it from `list_pipelines`. The user needs `work` access to it.",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": "string",
            "description": "Stage of that pipeline: its UUID or its exact name (`get_pipeline`). Leave it out to create the opportunity without stage; it then sits in the «no stage» column with probability 0. If you pick the stage, its entry requirements must be met by the values you send. Picking a won or lost stage creates the deal already closed.",
            "example": "Qualified"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. `null` clears it.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency. The currency must be in the platform exchange-rate catalog and, if the pipeline does not allow several currencies, equal to its reference currency. `null` clears both.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Overrides the stage probability, 0 to 99. Allowed only while the opportunity is in an open stage of a pipeline with `allow_custom_probability`. `null` goes back to the probability of the stage.",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expected closing date, `YYYY-MM-DD`. `null` clears it.",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of an existing company (`/companies/{uuid}`). `null` removes the link. Linking a company does not change the contacts and the other way round.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts of the opportunity (`/contacts/{uuid}`), up to 500. Replaces the whole set; send `[]` to remove all of them.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`): the person of reference of the deal, always one of its contacts. The first contact associated becomes the primary one. Sending a contact here also associates it, even if `contacts` leaves it out in the same request, so it counts toward the limit of 500 contacts (`opportunity_invalid_value` on `primary_contact` beyond it). `null` is rejected (`opportunity_primary_contact_required`) while the opportunity has contacts; it is accepted when there are none. If you remove the primary contact, the oldest remaining one takes its place.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user in charge, exactly as they sign in. It must be an active user with access to the pipeline. `null` leaves the opportunity without owner. Nobody is assigned if you leave it out: there is no default owner for the API.",
            "example": "laura@acme.com"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's opportunity attributes, keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityCreateInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "title",
          "pipeline"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the opportunity. Required to create it; it cannot be `null`.",
            "example": "Acme annual plan"
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline (`/pipelines/{uuid}`) where the deal starts. Get it from `list_pipelines`. The user needs `work` access to it.",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": "string",
            "description": "Stage of that pipeline: its UUID or its exact name (`get_pipeline`). Leave it out to create the opportunity without stage; it then sits in the «no stage» column with probability 0. If you pick the stage, its entry requirements must be met by the values you send. Picking a won or lost stage creates the deal already closed.",
            "example": "Qualified"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. `null` clears it.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency. The currency must be in the platform exchange-rate catalog and, if the pipeline does not allow several currencies, equal to its reference currency. `null` clears both.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Overrides the stage probability, 0 to 99. Allowed only while the opportunity is in an open stage of a pipeline with `allow_custom_probability`. `null` goes back to the probability of the stage.",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expected closing date, `YYYY-MM-DD`. `null` clears it.",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of an existing company (`/companies/{uuid}`). `null` removes the link. Linking a company does not change the contacts and the other way round.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts of the opportunity (`/contacts/{uuid}`), up to 500. Replaces the whole set; send `[]` to remove all of them.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`): the person of reference of the deal, always one of its contacts. The first contact associated becomes the primary one. Sending a contact here also associates it, even if `contacts` leaves it out in the same request, so it counts toward the limit of 500 contacts (`opportunity_invalid_value` on `primary_contact` beyond it). `null` is rejected (`opportunity_primary_contact_required`) while the opportunity has contacts; it is accepted when there are none. If you remove the primary contact, the oldest remaining one takes its place.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user in charge, exactly as they sign in. It must be an active user with access to the pipeline. `null` leaves the opportunity without owner. Nobody is assigned if you leave it out: there is no default owner for the API.",
            "example": "laura@acme.com"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's opportunity attributes, keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityLoseInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Lost stage to use: its UUID or exact name. Optional when the pipeline has a single lost stage, required when it has several.",
            "example": "b6e1a4c8-7d92-4f35-a1c0-8e5b3d9f2a46"
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.OpportunityLoseInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Lost stage to use: its UUID or exact name. Optional when the pipeline has a single lost stage, required when it has several.",
            "example": "b6e1a4c8-7d92-4f35-a1c0-8e5b3d9f2a46"
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.OpportunityMovePreviewOutput-opportunity_move_preview.read": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the destination pipeline.",
            "example": "/pipelines/71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          },
          "conversion_required": {
            "type": "boolean",
            "description": "true when the destination does not accept the current currency, so `move_opportunity_pipeline` needs `value`.",
            "example": true
          },
          "original_amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current amount. `null` if the deal has no amount.",
            "example": "15000.00"
          },
          "original_currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current currency. `null` if the deal has no amount.",
            "example": "USD"
          },
          "target_currency": {
            "type": "string",
            "description": "Reference currency of the destination pipeline.",
            "example": "EUR"
          },
          "converted_amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Proposed amount in the target currency. `null` when there is no rate.",
            "example": "13800.00"
          },
          "rate_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of the rate used.",
            "example": "2026-11-02"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityConversionStatus",
            "description": "`same_currency`, `converted`, `pending`, `unavailable` or `no_amount` (the deal has no amount, so there is nothing to convert).",
            "example": "converted"
          }
        }
      },
      "Opportunity.OpportunityMovePreviewOutput.jsonld-opportunity_move_preview.read": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the destination pipeline.",
            "example": "/pipelines/71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          },
          "conversion_required": {
            "type": "boolean",
            "description": "true when the destination does not accept the current currency, so `move_opportunity_pipeline` needs `value`.",
            "example": true
          },
          "original_amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current amount. `null` if the deal has no amount.",
            "example": "15000.00"
          },
          "original_currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current currency. `null` if the deal has no amount.",
            "example": "USD"
          },
          "target_currency": {
            "type": "string",
            "description": "Reference currency of the destination pipeline.",
            "example": "EUR"
          },
          "converted_amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Proposed amount in the target currency. `null` when there is no rate.",
            "example": "13800.00"
          },
          "rate_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of the rate used.",
            "example": "2026-11-02"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityConversionStatus",
            "description": "`same_currency`, `converted`, `pending`, `unavailable` or `no_amount` (the deal has no amount, so there is nothing to convert).",
            "example": "converted"
          }
        }
      },
      "Opportunity.OpportunityPipelineMoveInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "pipeline",
          "stage"
        ],
        "properties": {
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the destination pipeline (`/pipelines/{uuid}`). It must be a different pipeline and the user needs `work` access to it.",
            "example": "/pipelines/71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          },
          "stage": {
            "type": "string",
            "description": "Stage of the destination pipeline: its UUID or exact name. Required, because stages are not shared between pipelines.",
            "example": "Discovery"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the owner in the destination pipeline. Leave it out to keep the current one. The current owner must be an active user with access to the destination, otherwise the move is rejected and you must send another user or `null`.",
            "example": "laura@acme.com"
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount confirmed in a currency the destination pipeline accepts. Needed only when the current currency is not accepted there (`preview_opportunity_pipeline_move` tells you); otherwise it is rejected.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityPipelineMoveInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "pipeline",
          "stage"
        ],
        "properties": {
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the destination pipeline (`/pipelines/{uuid}`). It must be a different pipeline and the user needs `work` access to it.",
            "example": "/pipelines/71b4d8e2-0a96-4c35-8f1d-9b2e6a4c7d03"
          },
          "stage": {
            "type": "string",
            "description": "Stage of the destination pipeline: its UUID or exact name. Required, because stages are not shared between pipelines.",
            "example": "Discovery"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the owner in the destination pipeline. Leave it out to keep the current one. The current owner must be an active user with access to the destination, otherwise the move is rejected and you must send another user or `null`.",
            "example": "laura@acme.com"
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount confirmed in a currency the destination pipeline accepts. Needed only when the current currency is not accepted there (`preview_opportunity_pipeline_move` tells you); otherwise it is rejected.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityReopenInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Open stage to put the deal in: its UUID or exact name. Default: the initial stage of the pipeline.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.OpportunityReopenInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Open stage to put the deal in: its UUID or exact name. Default: the initial stage of the pipeline.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.OpportunityStageMoveInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "stage"
        ],
        "properties": {
          "stage": {
            "type": "string",
            "description": "Destination stage in the same pipeline: its UUID or its exact name (`get_pipeline`). Moving to a won or lost stage closes the deal; moving a closed deal to an open stage reopens it. An opportunity cannot be moved to «no stage».",
            "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityStageMoveInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "required": [
          "stage"
        ],
        "properties": {
          "stage": {
            "type": "string",
            "description": "Destination stage in the same pipeline: its UUID or its exact name (`get_pipeline`). Moving to a won or lost stage closes the deal; moving a closed deal to an open stage reopens it. An opportunity cannot be moved to «no stage».",
            "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          },
          "loss_reason": {
            "type": "string",
            "description": "Reason for losing it: the UUID of a loss reason of the pipeline or its exact name (`get_pipeline`, `loss_reasons`). Archived reasons cannot be used. Whether it is required, optional or not allowed depends on `loss_reason_mode` of the lost stage.",
            "example": "Price too high"
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note about the loss, up to 10000 characters.",
            "example": "Chose a cheaper competitor.",
            "maxLength": 10000
          }
        }
      },
      "Opportunity.OpportunityUpdateInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the opportunity. Required to create it; it cannot be `null`.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. `null` clears it.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency. The currency must be in the platform exchange-rate catalog and, if the pipeline does not allow several currencies, equal to its reference currency. `null` clears both.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Overrides the stage probability, 0 to 99. Allowed only while the opportunity is in an open stage of a pipeline with `allow_custom_probability`. `null` goes back to the probability of the stage.",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expected closing date, `YYYY-MM-DD`. `null` clears it.",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of an existing company (`/companies/{uuid}`). `null` removes the link. Linking a company does not change the contacts and the other way round.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts of the opportunity (`/contacts/{uuid}`), up to 500. Replaces the whole set; send `[]` to remove all of them. Left unchanged if omitted.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`): the person of reference of the deal, always one of its contacts. The first contact associated becomes the primary one. Sending a contact here also associates it, even if `contacts` leaves it out in the same request, so it counts toward the limit of 500 contacts (`opportunity_invalid_value` on `primary_contact` beyond it). `null` is rejected (`opportunity_primary_contact_required`) while the opportunity has contacts; it is accepted when there are none. If you remove the primary contact, the oldest remaining one takes its place.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user in charge, exactly as they sign in. It must be an active user with access to the pipeline. `null` leaves the opportunity without owner. Nobody is assigned if you leave it out: there is no default owner for the API.",
            "example": "laura@acme.com"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's opportunity attributes, keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar"
            }
          }
        }
      },
      "Opportunity.OpportunityUpdateInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the opportunity. Required to create it; it cannot be `null`.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description. `null` clears it.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency. The currency must be in the platform exchange-rate catalog and, if the pipeline does not allow several currencies, equal to its reference currency. `null` clears both.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Overrides the stage probability, 0 to 99. Allowed only while the opportunity is in an open stage of a pipeline with `allow_custom_probability`. `null` goes back to the probability of the stage.",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expected closing date, `YYYY-MM-DD`. `null` clears it.",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of an existing company (`/companies/{uuid}`). `null` removes the link. Linking a company does not change the contacts and the other way round.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts of the opportunity (`/contacts/{uuid}`), up to 500. Replaces the whole set; send `[]` to remove all of them. Left unchanged if omitted.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`): the person of reference of the deal, always one of its contacts. The first contact associated becomes the primary one. Sending a contact here also associates it, even if `contacts` leaves it out in the same request, so it counts toward the limit of 500 contacts (`opportunity_invalid_value` on `primary_contact` beyond it). `null` is rejected (`opportunity_primary_contact_required`) while the opportunity has contacts; it is accepted when there are none. If you remove the primary contact, the oldest remaining one takes its place.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the user in charge, exactly as they sign in. It must be an active user with access to the pipeline. `null` leaves the opportunity without owner. Nobody is assigned if you leave it out: there is no default owner for the API.",
            "example": "laura@acme.com"
          },
          "attributes": {
            "type": "object",
            "description": "Values of the account's opportunity attributes, keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` accept the option UUID or its exact label; `money` is `{amount, currency}`; `null` removes a value. Attributes you leave out keep their value.",
            "example": {
              "lead_source": "Webinar"
            }
          }
        }
      },
      "Opportunity.OpportunityWinInput": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Won stage to use: its UUID or exact name. Optional when the pipeline has a single won stage, required when it has several.",
            "example": "a9d3e7f1-5b28-4c64-9e0b-2f8a6c4d1e73"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.OpportunityWinInput.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "stage": {
            "type": "string",
            "description": "Won stage to use: its UUID or exact name. Optional when the pipeline has a single won stage, required when it has several.",
            "example": "a9d3e7f1-5b28-4c64-9e0b-2f8a6c4d1e73"
          },
          "entry_values": {
            "type": "object",
            "description": "Values for the fields the destination stage requires to enter it (`required_fields` and `required_attributes` of the stage in `get_pipeline`). Same properties and format as `update_opportunity`: `owner`, `company`, `contacts`, `primary_contact`, `value`, `expected_close_date`, `description` and `attributes`. They are saved in the same step as the move: if the stage still lacks something, nothing is saved.",
            "example": {
              "owner": "laura@acme.com",
              "expected_close_date": "2026-12-15"
            }
          }
        }
      },
      "Opportunity.jsonld": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note given when it was lost.",
            "example": "Chose a competitor with a lower price.",
            "readOnly": true
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Opportunity.jsonld-opportunity.list": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "Opportunity.jsonld-opportunity.list_opportunity.detail": {
        "type": "object",
        "description": "Opportunities of the public API (plan fase 4, Tasks 13 and 14). Generated from the approved proposal by\nfase-4/tools/gen_opportunity_read.py and edited by hand afterwards: the texts are the proposal's. The providers\ncheck the CRM capability and the pipeline level before anything else, because API Platform evaluates `security`\nafter the provider.\n\n`opportunity:list` is the summary every item of the list has; `opportunity:detail` adds what only `get_opportunity`\nreturns. `attributes` is an \\ArrayObject so that an empty one is published as `{}`, not as `[]`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the opportunity.",
            "example": "8c1f4a52-3d7e-4b90-a6c2-5e9b0d1f7a34"
          },
          "title": {
            "type": "string",
            "description": "Name of the opportunity.",
            "example": "Acme annual plan"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text description.",
            "example": "Renewal of the annual plan with a seat upgrade."
          },
          "pipeline": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the pipeline the opportunity belongs to (`/pipelines/{uuid}`).",
            "example": "/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "stage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Current stage of the opportunity. `null` when it has no stage (it is open and shows in the «no stage» column).",
            "example": {
              "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "name": "Negotiation",
              "type": "open"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the stage.",
                "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
              },
              "name": {
                "type": "string",
                "description": "Stage name.",
                "example": "Negotiation"
              },
              "type": {
                "$ref": "#/components/schemas/PipelineStageType",
                "description": "Stage type: `open`, `won` or `lost`.",
                "example": "open"
              }
            }
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityStatus",
            "description": "Commercial situation, derived from the stage type: `open`, `won` or `lost`. An opportunity without stage is `open`.",
            "example": "open",
            "readOnly": true
          },
          "value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Amount and currency of the opportunity. `null` when it has no amount.",
            "example": {
              "amount": "15000.00",
              "currency": "EUR"
            },
            "properties": {
              "amount": {
                "type": "string",
                "description": "Decimal amount as a string, never a float.",
                "example": "15000.00"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 currency code. It must be one the pipeline accepts.",
                "example": "EUR"
              }
            }
          },
          "probability": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Effective win probability, 0 to 100. It is the stage probability unless `probability_mode` is `custom`; 100 when won and 0 when lost.",
            "example": 60,
            "readOnly": true
          },
          "probability_mode": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityProbabilityMode",
            "description": "`stage` when the probability comes from the stage, `custom` when someone overrode it (only open stages of pipelines that allow it).",
            "example": "stage",
            "readOnly": true
          },
          "expected_close_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the deal is expected to close (`YYYY-MM-DD`).",
            "example": "2026-12-15"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the company (`/companies/{uuid}`). `null` when there is none.",
            "example": "/companies/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts (`/contacts/{uuid}`) linked to the opportunity, the primary contact first and then by date of association.",
            "example": [
              "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d",
              "/contacts/9e4a1c7b-2d58-4f03-b6a9-7c0e3d5f8a12"
            ],
            "items": {
              "type": "string"
            }
          },
          "primary_contact": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of the primary contact (`/contacts/{uuid}`), the person of reference of the deal; always one of `contacts`. The first contact associated becomes the primary one; if it is removed or deleted, the oldest remaining contact takes its place. `null` only when the opportunity has no contacts.",
            "example": "/contacts/5b1d3c7e-8f2a-4c6b-9d10-2e4f6a8b0c1d"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "description": "User in charge of the opportunity. `null` when there is none. An owner who was deactivated stays assigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `owner` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "attributes": {
            "type": "object",
            "description": "Attribute values keyed by `public_code` (see `list_opportunity_attributes`). `enum` and `multi_enum` values are `{uuid, label}`, `money` is `{amount, currency}`. Attributes without value are omitted.",
            "example": {
              "lead_source": {
                "uuid": "e8b2a6d1-4c39-4f70-9a15-3d7c0b6e2f48",
                "label": "Webinar"
              }
            }
          },
          "reference_value": {
            "type": [
              "object",
              "null"
            ],
            "description": "Value in the reference currency of the pipeline, calculated by the server. `null` when the opportunity has no amount.",
            "example": {
              "amount": "15000.00",
              "weighted_amount": "9000.00",
              "currency": "EUR",
              "rate_date": null,
              "basis": "latest",
              "status": "same_currency"
            },
            "readOnly": true,
            "properties": {
              "amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Amount converted to the reference currency. `null` while the conversion is pending or unavailable.",
                "example": "15000.00"
              },
              "weighted_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Converted amount multiplied by the effective probability (the forecast).",
                "example": "9000.00"
              },
              "currency": {
                "type": "string",
                "description": "Reference currency of the pipeline.",
                "example": "EUR"
              },
              "rate_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Date of the exchange rate used. `null` when no conversion was needed.",
                "example": "2026-11-02"
              },
              "basis": {
                "$ref": "#/components/schemas/OpportunityReferenceBasis",
                "description": "`latest` for the latest rate, `closure` for the rate of the closing date of a won or lost opportunity.",
                "example": "latest"
              },
              "status": {
                "$ref": "#/components/schemas/OpportunityConversionStatus",
                "description": "`same_currency`, `converted`, `pending` (no rate yet) or `unavailable`.",
                "example": "same_currency"
              }
            }
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was won or lost. `null` while it is open; reopening clears it.",
            "example": "2026-11-02T16:40:00+00:00",
            "readOnly": true
          },
          "loss_reason": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reason it was lost. `null` when it is not lost or none was given.",
            "example": null,
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the loss reason.",
                "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
              },
              "name": {
                "type": "string",
                "description": "Name of the loss reason.",
                "example": "Price too high"
              }
            }
          },
          "loss_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free-text note given when it was lost.",
            "example": "Chose a competitor with a lower price.",
            "readOnly": true
          },
          "stage_entered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the opportunity entered its current stage.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "record_source": {
            "type": "string",
            "$ref": "#/components/schemas/CrmRecordSource",
            "description": "How the opportunity was created: `manual`, `api`, `automation`, `import`... It never changes.",
            "example": "api",
            "readOnly": true
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Person who created it. `null` when that user no longer exists.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín"
            },
            "readOnly": true,
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user.",
                "example": "Laura Martín"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time.",
            "example": "2026-10-30T09:15:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last change time.",
            "example": "2026-10-30T10:02:11+00:00",
            "readOnly": true
          }
        }
      },
      "OpportunityAttribute-opportunity_attribute.read": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active opportunity attributes.",
            "example": "Deal type"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Kind of deal the opportunity represents."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of an opportunity. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "deal_type"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the opportunity attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of opportunities that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "new_business"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeCreateInput": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active opportunity attributes, ignoring case and extra spaces.",
            "example": "Deal type"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OpportunityAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`. It cannot be changed afterwards.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Kind of deal the opportunity represents."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of an opportunity: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "deal_type"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "New business",
                "color": "#2563EB"
              },
              {
                "label": "Renewal"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "new_business"
                }
              }
            }
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeCreateInput.jsonld": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Visible name, up to 190 characters. Must be unique among the active opportunity attributes, ignoring case and extra spaces.",
            "example": "Deal type"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OpportunityAttributeType",
            "description": "Type of value. One of `text`, `long_text`, `integer`, `decimal`, `percentage`, `money`, `boolean`, `date`, `datetime`, `enum`, `multi_enum`, `email`, `phone`, `url`, `country`, `language`, `timezone`. It cannot be changed afterwards.",
            "example": "enum"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Kind of deal the opportunity represents."
          },
          "public_code": {
            "type": "string",
            "description": "Code that identifies the attribute in the `attributes` object of an opportunity: lowercase letters, digits and `_`, starting with a letter, up to 64 characters. If omitted, it is generated from the name (for example `Customer tier` gives `customer_tier`; a number is appended if it is taken). It cannot be changed afterwards, and archived attributes keep their code reserved.",
            "example": "deal_type"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code, for example `EUR`. Required when `type` is `money` and not allowed for other types. Every value of the attribute must use this currency, and it cannot be changed afterwards.",
            "example": "EUR"
          },
          "options": {
            "type": "array",
            "description": "Options of the attribute, in display order. Required (at least one) when `type` is `enum` or `multi_enum`, not allowed for other types.",
            "example": [
              {
                "label": "New business",
                "color": "#2563EB"
              },
              {
                "label": "Renewal"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "description": "Visible name of the option. Must be unique among the active options of the attribute, ignoring case and extra spaces.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key for integrations, lowercase letters, digits and `_`, starting with a letter (max 64). Assigned automatically if omitted. It can never be changed afterwards.",
                  "example": "new_business"
                }
              }
            }
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeUpdateInput": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_opportunity_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Contract type"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Kind of deal the opportunity represents."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45",
                "label": "New business",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "7d2f6b90-a318-4e5c-8b14-c5e07a93f2d6",
                "label": "Upsell",
                "status": "active"
              },
              {
                "label": "Cross-sell"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "cross_sell"
                }
              }
            }
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeUpdateInput.jsonld": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_opportunity_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "New visible name, up to 190 characters. Left unchanged if omitted. The `public_code` does not change with it.",
            "example": "Contract type"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "New explanation. Send `null` to clear it. Left unchanged if omitted.",
            "example": "Kind of deal the opportunity represents."
          },
          "options": {
            "type": "array",
            "description": "The complete list of options, in display order, for an `enum` or `multi_enum` attribute. Left unchanged if omitted. Every existing option must appear in the list (active and archived); options without `uuid` are created, active, at the position they take in the list. Not allowed for other types.",
            "example": [
              {
                "uuid": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45",
                "label": "New business",
                "color": "#2563EB",
                "status": "active"
              },
              {
                "uuid": "7d2f6b90-a318-4e5c-8b14-c5e07a93f2d6",
                "label": "Upsell",
                "status": "active"
              },
              {
                "label": "Cross-sell"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "label"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of an existing option. Omit it to create a new option.",
                  "example": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name. Must be unique among the active options, ignoring case and extra spaces.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`. Send `null` for none.",
                  "example": "#2563EB"
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` or `archived`. Archive an option to stop it being assigned; options are never deleted. New options are always `active`. Defaults to `active`.",
                  "example": "active"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Only for a new option (without `uuid`); the key of an existing option cannot be changed.",
                  "example": "cross_sell"
                }
              }
            }
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeVersionInput": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_opportunity_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "OpportunityAttribute.OpportunityAttributeVersionInput.jsonld": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "description": "Current `version` of the attribute, as returned by `get_opportunity_attribute`. If it changed in the meantime, the call fails with 409.",
            "example": 3
          }
        }
      },
      "OpportunityAttribute.jsonld-opportunity_attribute.read": {
        "type": "object",
        "description": "Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over\nAttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and\nedited by hand afterwards: the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the attribute.",
            "example": "3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71"
          },
          "name": {
            "type": "string",
            "description": "Visible name of the attribute, unique among the active opportunity attributes.",
            "example": "Deal type"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional explanation of what the attribute holds.",
            "example": "Kind of deal the opportunity represents."
          },
          "public_code": {
            "type": "string",
            "description": "Stable code that identifies the attribute in the `attributes` object of an opportunity. Lowercase letters, digits and `_`, starting with a letter. Assigned at creation and never changes, not even when the attribute is renamed or archived.",
            "example": "deal_type"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/OpportunityAttributeType",
            "description": "Type of value the attribute stores. Cannot be changed after creation.",
            "example": "enum"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 4217 currency code. Only for `money` attributes; null for every other type.",
            "example": null,
            "examples": [
              null,
              "EUR"
            ]
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/AttributeStatus",
            "description": "`active` attributes accept new values; `archived` attributes keep their stored values but no longer accept new ones.",
            "example": "active"
          },
          "position": {
            "type": "integer",
            "description": "Position of the attribute among the opportunity attributes, starting at 1.",
            "example": 1
          },
          "version": {
            "type": "integer",
            "description": "Revision number. Send it back when you update, archive or restore so that a concurrent change is detected.",
            "example": 3
          },
          "current_value_count": {
            "type": "integer",
            "description": "Number of opportunities that currently have a value for this attribute.",
            "example": 0
          },
          "ever_used": {
            "type": "boolean",
            "description": "True if the attribute or any of its options has ever held a value, even if it has none now.",
            "example": false
          },
          "options": {
            "type": "array",
            "description": "Options of an `enum` or `multi_enum` attribute, in display order. Empty for every other type.",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the option. Use it as the value of the attribute in a record.",
                  "example": "e41b9a27-5c08-4d36-b7a2-90f3c6d18e45"
                },
                "label": {
                  "type": "string",
                  "description": "Visible name of the option.",
                  "example": "New business"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Badge color as `#RRGGBB`, or null.",
                  "example": "#2563EB"
                },
                "integration_key": {
                  "type": "string",
                  "description": "Stable key of the option for integrations. Never changes.",
                  "example": "new_business"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the option in the list, starting at 1.",
                  "example": 1
                },
                "status": {
                  "$ref": "#/components/schemas/AttributeStatus",
                  "description": "`active` options can be assigned; `archived` options keep the values already stored but cannot be assigned again.",
                  "example": "active"
                }
              }
            }
          }
        }
      },
      "OpportunityFilterField-opportunity_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter opportunities by in a workflow (condiciones de flujos R4): the fields the workflow engine validates the\nfilters on an opportunity with for the person behind the credential (`PublicOpportunityFilterCatalog`), in the shape of\n`list_company_filter_fields`.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Native fields have a fixed id (`title`, `value`, `stageId`, `ownerId`…); an opportunity attribute is `attribute:<uuid of the attribute>` (the `uuid` of `list_opportunity_attributes`).",
            "example": "stageId",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Stage",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `long_text`, `money`, `integer`, `decimal`, `date`, `datetime`, `entity_one`, `entity_many`, `enum`, `multi_enum`, `boolean`, `country` (ISO 3166-1 alpha-2 code, `ES`), `language` (`es-ES`), `timezone` (IANA, `Europe/Madrid`), `identifier` (the record `id`)…",
            "example": "entity_one",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list) or `range` (a list of two values, `[from, to]`); `constraints.type` is the form of each value: `string`, `number` (a decimal written as text), `date` (`YYYY-MM-DD`), `boolean` or `uuid`.",
            "example": [
              {
                "id": "isAnyOf",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "type": "string"
                }
              },
              {
                "id": "isEmpty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {
                  "type": "string"
                }
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`): the record sources, the options of a selection attribute (their UUIDs) and the `status` values. Copy the `value` into the condition as it is. Empty for free values and for fields that point to records (see `reference_type`).",
            "example": [],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to, as UUIDs: `pipeline` (`uuid` of `list_pipelines`), `pipeline_stage` (`stages[].uuid` of `get_pipeline`; `stageId` also takes `unstaged` for an opportunity without stage), `pipeline_loss_reason` (`loss_reasons[].uuid` of `get_pipeline`), `user` (`uuid` of `list_account_members`), `company` (`uuid` of `list_companies`), `contact` (`uuid` of `search_contacts`), `opportunity` (`uuid` of `list_opportunities`), `crm_attribute_option` (an option of `options`) and `crm_actor` (the CRM author of the opportunity; no public operation lists these yet, so use `isEmpty` or `isNotEmpty`). `null` for plain values.",
            "example": "pipeline_stage",
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `automation` (every filter on an opportunity of a workflow: «Only if», Condition with `matches`, waits, «Exit when» and searches) and `automation_search` (the filter of an opportunity search: `record-search`, `record-search-many` and the search of `record-find-or-create`). `status` (`open`, `won` or `lost`) is only `automation_search`: a Condition with `matches` rejects it (`unknown_filter_field`).",
            "example": [
              "automation",
              "automation_search"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "OpportunityFilterField.jsonld-opportunity_filter_field.read": {
        "type": "object",
        "description": "The catalog of fields to filter opportunities by in a workflow (condiciones de flujos R4): the fields the workflow engine validates the\nfilters on an opportunity with for the person behind the credential (`PublicOpportunityFilterCatalog`), in the shape of\n`list_company_filter_fields`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition. Native fields have a fixed id (`title`, `value`, `stageId`, `ownerId`…); an opportunity attribute is `attribute:<uuid of the attribute>` (the `uuid` of `list_opportunity_attributes`).",
            "example": "stageId",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Stage",
            "readOnly": true
          },
          "type": {
            "type": "string",
            "description": "Kind of data: `text`, `long_text`, `money`, `integer`, `decimal`, `date`, `datetime`, `entity_one`, `entity_many`, `enum`, `multi_enum`, `boolean`, `country` (ISO 3166-1 alpha-2 code, `ES`), `language` (`es-ES`), `timezone` (IANA, `Europe/Madrid`), `identifier` (the record `id`)…",
            "example": "entity_one",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out), `scalar` (one value), `set` (a list) or `range` (a list of two values, `[from, to]`); `constraints.type` is the form of each value: `string`, `number` (a decimal written as text), `date` (`YYYY-MM-DD`), `boolean` or `uuid`.",
            "example": [
              {
                "id": "isAnyOf",
                "label": "is any of",
                "value_shape": "set",
                "constraints": {
                  "type": "string"
                }
              },
              {
                "id": "isEmpty",
                "label": "is empty",
                "value_shape": "none",
                "constraints": {
                  "type": "string"
                }
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "Allowed values when the field has a fixed list (`value`, `label`): the record sources, the options of a selection attribute (their UUIDs) and the `status` values. Copy the `value` into the condition as it is. Empty for free values and for fields that point to records (see `reference_type`).",
            "example": [],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "reference_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Kind of record the values point to, as UUIDs: `pipeline` (`uuid` of `list_pipelines`), `pipeline_stage` (`stages[].uuid` of `get_pipeline`; `stageId` also takes `unstaged` for an opportunity without stage), `pipeline_loss_reason` (`loss_reasons[].uuid` of `get_pipeline`), `user` (`uuid` of `list_account_members`), `company` (`uuid` of `list_companies`), `contact` (`uuid` of `search_contacts`), `opportunity` (`uuid` of `list_opportunities`), `crm_attribute_option` (an option of `options`) and `crm_actor` (the CRM author of the opportunity; no public operation lists these yet, so use `isEmpty` or `isNotEmpty`). `null` for plain values.",
            "example": "pipeline_stage",
            "readOnly": true
          },
          "usable_in": {
            "type": "array",
            "description": "Where the field can be used: `automation` (every filter on an opportunity of a workflow: «Only if», Condition with `matches`, waits, «Exit when» and searches) and `automation_search` (the filter of an opportunity search: `record-search`, `record-search-many` and the search of `record-find-or-create`). `status` (`open`, `won` or `lost`) is only `automation_search`: a Condition with `matches` rejects it (`unknown_filter_field`).",
            "example": [
              "automation",
              "automation_search"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Order-order.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "checkout_url",
          "customer"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the order: lowercase letters, digits, `-` and `_`. It cannot be changed later.",
            "example": "order-5001"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem-order.create"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          }
        }
      },
      "Order-order.import": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "status",
          "customer"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the order: lowercase letters, digits, `-` and `_`. It cannot be changed later.",
            "example": "order-5001"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "status": {
            "enum": [
              "cart",
              "new",
              "paid",
              "shipped",
              "refunded",
              "cancelled"
            ],
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus",
            "description": "Status the order already has.",
            "example": "paid"
          },
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart became an order.",
            "example": "2026-10-30T10:20:00+01:00"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was paid.",
            "example": "2026-10-30T10:21:00+01:00"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled."
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem-order.import"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was last updated.",
            "example": "2026-10-30T10:21:00+01:00"
          }
        }
      },
      "Order-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "customer"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the order",
            "example": "id"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Currency exchange rate from euro, if not provided, the API will use the daily updated rate at the time the resource is created",
            "example": 1.097453
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Tax total  in cents",
            "example": 1500
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount total  in cents",
            "example": 900
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping total  in cents",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Checkout url"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus"
          },
          "order_number": {
            "type": "string",
            "description": "Order number"
          },
          "tracking_number": {
            "type": "string",
            "description": "Tracking number"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Tracking carrier"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Tracking url"
          },
          "abandoned_cart_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time cart was abandoned"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was processed, a cart becomes an order when it is processed"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was paid"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was cancelled"
          },
          "campaign_hash": {
            "type": "string",
            "description": "`campaignHash` is a unique code assigned to each Easymailing campaign for tracking ecommerce orders and revenue. It's appended to all campaign links as a URL parameter, like `?em_ch=ELGMiR3jr3pHxR4P5AS0sX`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem-order.read"
            }
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Customer associated to the order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created, when cart was created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Order-order.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "currency",
          "order_total",
          "customer"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled."
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem-order.update"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created.",
            "example": "2026-10-30T10:15:00+01:00"
          }
        }
      },
      "Order.jsonld-order.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "checkout_url",
          "customer"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the order: lowercase letters, digits, `-` and `_`. It cannot be changed later.",
            "example": "order-5001"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem.jsonld-order.create"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created. If omitted, the current time is used.",
            "example": "2026-10-30T10:15:00+01:00"
          }
        }
      },
      "Order.jsonld-order.import": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "status",
          "customer"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the order: lowercase letters, digits, `-` and `_`. It cannot be changed later.",
            "example": "order-5001"
          },
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "status": {
            "enum": [
              "cart",
              "new",
              "paid",
              "shipped",
              "refunded",
              "cancelled"
            ],
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus",
            "description": "Status the order already has.",
            "example": "paid"
          },
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart became an order.",
            "example": "2026-10-30T10:20:00+01:00"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was paid.",
            "example": "2026-10-30T10:21:00+01:00"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled."
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem.jsonld-order.import"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created.",
            "example": "2026-10-30T10:15:00+01:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was last updated.",
            "example": "2026-10-30T10:21:00+01:00"
          }
        }
      },
      "Order.jsonld-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "currency",
          "order_total",
          "customer"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the order",
            "example": "id"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Currency exchange rate from euro, if not provided, the API will use the daily updated rate at the time the resource is created",
            "example": 1.097453
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Tax total  in cents",
            "example": 1500
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount total  in cents",
            "example": 900
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping total  in cents",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Checkout url"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus"
          },
          "order_number": {
            "type": "string",
            "description": "Order number"
          },
          "tracking_number": {
            "type": "string",
            "description": "Tracking number"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Tracking carrier"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Tracking url"
          },
          "abandoned_cart_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time cart was abandoned"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was processed, a cart becomes an order when it is processed"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was paid"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was cancelled"
          },
          "campaign_hash": {
            "type": "string",
            "description": "`campaignHash` is a unique code assigned to each Easymailing campaign for tracking ecommerce orders and revenue. It's appended to all campaign links as a URL parameter, like `?em_ch=ELGMiR3jr3pHxR4P5AS0sX`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem.jsonld-order.read"
            }
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Customer associated to the order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created, when cart was created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Order.jsonld-order.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "currency",
          "order_total",
          "customer"
        ],
        "properties": {
          "currency": {
            "type": "string",
            "description": "Currency of the order, as an ISO 4217 code.",
            "example": "EUR"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Exchange rate from euro. If omitted, the rate of the day is used. Not needed for EUR.",
            "example": 1
          },
          "order_total": {
            "minimum": 0,
            "type": "integer",
            "description": "Order total in cents.",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Taxes in cents.",
            "example": 1130
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping cost in cents.",
            "example": 400
          },
          "checkout_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address where the customer can resume the purchase.",
            "example": "https://shop.acme.example.com/checkout/abc123"
          },
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled."
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem.jsonld-order.update"
            },
            "description": "Lines of the order. Each has `variant` (IRI of a variant of the same store), `quantity`, `price` in cents and an optional `discount` in cents.",
            "example": [
              {
                "quantity": 1,
                "price": 4990,
                "discount": 0,
                "variant": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42"
              }
            ]
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/customers/customer-1042",
            "description": "IRI of the customer of the same store who places the order."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the cart was created.",
            "example": "2026-10-30T10:15:00+01:00"
          }
        }
      },
      "OrderItem": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Quantity",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents",
            "example": 1500
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents",
            "example": 50
          },
          "order": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Variant"
          }
        }
      },
      "OrderItem-order.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderItem-order.import": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderItem-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Quantity",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents",
            "example": 1500
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents",
            "example": 50
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Variant"
          }
        }
      },
      "OrderItem-order.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderItem.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Quantity",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents",
            "example": 1500
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents",
            "example": 50
          },
          "order": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Variant"
          }
        }
      },
      "OrderItem.jsonld-order.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderItem.jsonld-order.import": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderItem.jsonld-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Quantity",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents",
            "example": 1500
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents",
            "example": 50
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Variant"
          }
        }
      },
      "OrderItem.jsonld-order.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "quantity",
          "price",
          "variant"
        ],
        "properties": {
          "quantity": {
            "minimum": 1,
            "type": "integer",
            "description": "Units bought.",
            "example": 1
          },
          "price": {
            "minimum": 0,
            "type": "integer",
            "description": "Price in cents.",
            "example": 4990
          },
          "discount": {
            "type": "integer",
            "description": "Discount in cents.",
            "example": 0
          },
          "variant": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42",
            "description": "IRI of the variant of the same store that was bought."
          }
        }
      },
      "OrderResource-order.cancel_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled.",
            "example": "2026-10-30T12:00:00+01:00"
          }
        }
      },
      "OrderResource-order.pay_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the payment was made. If omitted, the current time is used.",
            "example": "2026-10-30T10:21:00+01:00"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          }
        }
      },
      "OrderResource-order.process_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "order_number"
        ],
        "properties": {
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was placed. If omitted, the current time is used.",
            "example": "2026-10-30T10:20:00+01:00"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          }
        }
      },
      "OrderResource-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "resource_id": {
            "type": "string",
            "description": "A unique identifier for the order",
            "example": "id"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Currency exchange rate from euro, if not provided, the API will use the daily updated rate at the time the resource is created",
            "example": 1.097453
          },
          "order_total": {
            "type": "integer",
            "description": "Order total in cents",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Tax total  in cents",
            "example": 1500
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount total  in cents",
            "example": 900
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping total  in cents",
            "example": 400
          },
          "checkout_url": {
            "type": "string",
            "format": "uri",
            "description": "Checkout url"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus"
          },
          "order_number": {
            "type": "string",
            "description": "Order number"
          },
          "tracking_number": {
            "type": "string",
            "description": "Tracking number"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Tracking carrier"
          },
          "tracking_url": {
            "type": "string",
            "format": "uri",
            "description": "Tracking url"
          },
          "abandoned_cart_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time cart was abandoned"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was processed, a cart becomes an order when it is processed"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was paid"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was cancelled"
          },
          "campaign_hash": {
            "type": "string",
            "description": "`campaignHash` is a unique code assigned to each Easymailing campaign for tracking ecommerce orders and revenue. It's appended to all campaign links as a URL parameter, like `?em_ch=ELGMiR3jr3pHxR4P5AS0sX`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem-order.read"
            }
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Customer associated to the order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created, when cart was created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "order_number"
        ]
      },
      "OrderResource-order.refund_order": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "OrderResource-order.ship_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "type": "string",
            "format": "uri",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          }
        }
      },
      "OrderResource.jsonld-order.cancel_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was cancelled.",
            "example": "2026-10-30T12:00:00+01:00"
          }
        }
      },
      "OrderResource.jsonld-order.pay_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the payment was made. If omitted, the current time is used.",
            "example": "2026-10-30T10:21:00+01:00"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          }
        }
      },
      "OrderResource.jsonld-order.process_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "order_number"
        ],
        "properties": {
          "order_number": {
            "type": "string",
            "description": "Order number shown to the customer.",
            "example": "5001"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the order was placed. If omitted, the current time is used.",
            "example": "2026-10-30T10:20:00+01:00"
          },
          "campaign_hash": {
            "type": "string",
            "description": "Campaign tracking code (the `em_ch` parameter that Easymailing appends to the links of its campaigns). With it the order is attributed to that campaign.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          }
        }
      },
      "OrderResource.jsonld-order.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "type": "string",
            "description": "A unique identifier for the order",
            "example": "id"
          },
          "currency": {
            "type": "string",
            "description": "Currency code",
            "example": "USD"
          },
          "currency_exchange_rate": {
            "type": "number",
            "format": "float",
            "description": "Currency exchange rate from euro, if not provided, the API will use the daily updated rate at the time the resource is created",
            "example": 1.097453
          },
          "order_total": {
            "type": "integer",
            "description": "Order total in cents",
            "example": 6500
          },
          "tax_total": {
            "type": "integer",
            "description": "Tax total  in cents",
            "example": 1500
          },
          "discount_total": {
            "type": "integer",
            "description": "Discount total  in cents",
            "example": 900
          },
          "shipping_total": {
            "type": "integer",
            "description": "Shipping total  in cents",
            "example": 400
          },
          "checkout_url": {
            "type": "string",
            "format": "uri",
            "description": "Checkout url"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/OrderStatus"
          },
          "order_number": {
            "type": "string",
            "description": "Order number"
          },
          "tracking_number": {
            "type": "string",
            "description": "Tracking number"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Tracking carrier"
          },
          "tracking_url": {
            "type": "string",
            "format": "uri",
            "description": "Tracking url"
          },
          "abandoned_cart_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time cart was abandoned"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was processed, a cart becomes an order when it is processed"
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was paid"
          },
          "cancelled_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time order was cancelled"
          },
          "campaign_hash": {
            "type": "string",
            "description": "`campaignHash` is a unique code assigned to each Easymailing campaign for tracking ecommerce orders and revenue. It's appended to all campaign links as a URL parameter, like `?em_ch=ELGMiR3jr3pHxR4P5AS0sX`.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX"
          },
          "order_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderItem.jsonld-order.read"
            }
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Customer associated to the order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created, when cart was created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "order_number"
        ]
      },
      "OrderResource.jsonld-order.refund_order": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "OrderResource.jsonld-order.ship_order": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "tracking_number": {
            "type": "string",
            "description": "Shipment tracking number.",
            "example": "ES123456789"
          },
          "tracking_carrier": {
            "type": "string",
            "description": "Carrier delivering the order.",
            "example": "Correos"
          },
          "tracking_url": {
            "type": "string",
            "format": "uri",
            "description": "Address to follow the shipment.",
            "example": "https://tracking.example.com/ES123456789"
          }
        }
      },
      "Pipeline": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          },
          "initial_stage": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the initial stage (an open stage). Deals created without stage do not use it.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "stages": {
            "type": "array",
            "description": "Stages in order. Every pipeline has at least one open, one won and one lost stage.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "color": "#7C5CFC",
                "type": "open",
                "probability": 60,
                "position": 1,
                "max_calendar_days": null,
                "loss_reason_mode": "disabled",
                "required_fields": [
                  "owner",
                  "amount_currency"
                ],
                "required_attributes": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name. Names are not forced to be unique; avoid repeating one, because operations that take a stage by name then ask for its UUID.",
                  "example": "Negotiation"
                },
                "color": {
                  "type": "string",
                  "description": "Color as `#RRGGBB`.",
                  "example": "#7C5CFC"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of deals in this stage: 0 to 99 for open stages, always 100 for won and 0 for lost.",
                  "example": 60
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 2
                },
                "max_calendar_days": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Calendar days a deal is expected to stay in this stage. `null` if there is no limit.",
                  "example": 21
                },
                "loss_reason_mode": {
                  "$ref": "#/components/schemas/PipelineLossReasonMode",
                  "description": "Only for lost stages: whether the loss reason is `required`, `optional` or `disabled` when a deal enters.",
                  "example": "disabled"
                },
                "required_fields": {
                  "type": "array",
                  "description": "Built-in fields a deal must have to enter this stage (`company`, `contacts`, `owner`, `amount_currency`, `expected_close_date`, `description`).",
                  "example": [
                    "owner",
                    "amount_currency"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "required_attributes": {
                  "type": "array",
                  "description": "`public_code` of the opportunity attributes a deal must have to enter this stage.",
                  "example": [
                    "lead_source"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons of the pipeline, active and archived, in order.",
            "example": [
              {
                "uuid": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15",
                "name": "Price too high",
                "position": 0,
                "status": "active",
                "used": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the loss reason.",
                  "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
                },
                "name": {
                  "type": "string",
                  "description": "Name of the reason.",
                  "example": "Price too high"
                },
                "position": {
                  "type": "integer",
                  "description": "Position among the loss reasons: 0 is the first.",
                  "example": 0
                },
                "status": {
                  "$ref": "#/components/schemas/PipelineLossReasonStatus",
                  "description": "`active`, or `archived`: it can no longer be chosen but past deals keep it.",
                  "example": "active"
                },
                "used": {
                  "type": "boolean",
                  "description": "true when at least one closed deal uses it.",
                  "example": true
                }
              }
            }
          }
        }
      },
      "Pipeline-pipeline.list": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          }
        }
      },
      "Pipeline-pipeline.list_pipeline.detail": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          },
          "initial_stage": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the initial stage (an open stage). Deals created without stage do not use it.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "stages": {
            "type": "array",
            "description": "Stages in order. Every pipeline has at least one open, one won and one lost stage.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "color": "#7C5CFC",
                "type": "open",
                "probability": 60,
                "position": 1,
                "max_calendar_days": null,
                "loss_reason_mode": "disabled",
                "required_fields": [
                  "owner",
                  "amount_currency"
                ],
                "required_attributes": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name. Names are not forced to be unique; avoid repeating one, because operations that take a stage by name then ask for its UUID.",
                  "example": "Negotiation"
                },
                "color": {
                  "type": "string",
                  "description": "Color as `#RRGGBB`.",
                  "example": "#7C5CFC"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of deals in this stage: 0 to 99 for open stages, always 100 for won and 0 for lost.",
                  "example": 60
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 2
                },
                "max_calendar_days": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Calendar days a deal is expected to stay in this stage. `null` if there is no limit.",
                  "example": 21
                },
                "loss_reason_mode": {
                  "$ref": "#/components/schemas/PipelineLossReasonMode",
                  "description": "Only for lost stages: whether the loss reason is `required`, `optional` or `disabled` when a deal enters.",
                  "example": "disabled"
                },
                "required_fields": {
                  "type": "array",
                  "description": "Built-in fields a deal must have to enter this stage (`company`, `contacts`, `owner`, `amount_currency`, `expected_close_date`, `description`).",
                  "example": [
                    "owner",
                    "amount_currency"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "required_attributes": {
                  "type": "array",
                  "description": "`public_code` of the opportunity attributes a deal must have to enter this stage.",
                  "example": [
                    "lead_source"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons of the pipeline, active and archived, in order.",
            "example": [
              {
                "uuid": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15",
                "name": "Price too high",
                "position": 0,
                "status": "active",
                "used": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the loss reason.",
                  "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
                },
                "name": {
                  "type": "string",
                  "description": "Name of the reason.",
                  "example": "Price too high"
                },
                "position": {
                  "type": "integer",
                  "description": "Position among the loss reasons: 0 is the first.",
                  "example": 0
                },
                "status": {
                  "$ref": "#/components/schemas/PipelineLossReasonStatus",
                  "description": "`active`, or `archived`: it can no longer be chosen but past deals keep it.",
                  "example": "active"
                },
                "used": {
                  "type": "boolean",
                  "description": "true when at least one closed deal uses it.",
                  "example": true
                }
              }
            }
          }
        }
      },
      "Pipeline.PipelineCreateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name",
          "reference_currency"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Pipeline name, up to 190 characters, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "ISO 4217 code in the platform exchange-rate catalog. Forecasts and totals are reported in it. It cannot change while deals use another currency.",
            "example": "EUR"
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether deals in open stages may override the stage probability. Default `true`. It cannot be turned off while a deal has an override.",
            "example": true,
            "default": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency. Default `false`.",
            "example": false,
            "default": false
          }
        }
      },
      "Pipeline.PipelineCreateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name",
          "reference_currency"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Pipeline name, up to 190 characters, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "ISO 4217 code in the platform exchange-rate catalog. Forecasts and totals are reported in it. It cannot change while deals use another currency.",
            "example": "EUR"
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether deals in open stages may override the stage probability. Default `true`. It cannot be turned off while a deal has an override.",
            "example": true,
            "default": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency. Default `false`.",
            "example": false,
            "default": false
          }
        }
      },
      "Pipeline.PipelineFromTemplateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "template"
        ],
        "properties": {
          "template": {
            "type": "string",
            "description": "Identifier of the template: the `id` from `list_pipeline_templates`.",
            "example": "saas-software"
          }
        }
      },
      "Pipeline.PipelineFromTemplateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "template"
        ],
        "properties": {
          "template": {
            "type": "string",
            "description": "Identifier of the template: the `id` from `list_pipeline_templates`.",
            "example": "saas-software"
          }
        }
      },
      "Pipeline.PipelineInitialStageInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "stage"
        ],
        "properties": {
          "stage": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of an open stage of the pipeline.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          }
        }
      },
      "Pipeline.PipelineInitialStageInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "stage"
        ],
        "properties": {
          "stage": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of an open stage of the pipeline.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          }
        }
      },
      "Pipeline.PipelineLossReasonCreateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Reason, up to 190 characters.",
            "example": "Chose a competitor"
          }
        }
      },
      "Pipeline.PipelineLossReasonCreateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Reason, up to 190 characters.",
            "example": "Chose a competitor"
          }
        }
      },
      "Pipeline.PipelineLossReasonUpdateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, up to 190 characters.",
            "example": "Price too high"
          }
        }
      },
      "Pipeline.PipelineLossReasonUpdateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "New name, up to 190 characters.",
            "example": "Price too high"
          }
        }
      },
      "Pipeline.PipelineLossReasonsOrderInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "loss_reasons"
        ],
        "properties": {
          "loss_reasons": {
            "type": "array",
            "description": "UUIDs of all the active loss reasons, in the new order.",
            "example": [
              "2c8f5b1e-9a37-4d60-b4e2-6f0a3c7d1b95",
              "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineLossReasonsOrderInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "loss_reasons"
        ],
        "properties": {
          "loss_reasons": {
            "type": "array",
            "description": "UUIDs of all the active loss reasons, in the new order.",
            "example": [
              "2c8f5b1e-9a37-4d60-b4e2-6f0a3c7d1b95",
              "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStageCreateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name",
          "color",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Stage name, up to 190 characters.",
            "example": "Negotiation"
          },
          "color": {
            "type": "string",
            "description": "Color as `#RRGGBB`.",
            "example": "#7C5CFC"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineStageType",
            "description": "Stage type. It cannot change while deals are in the stage.",
            "example": "open"
          },
          "probability": {
            "type": "integer",
            "description": "Win probability. For open stages 0 to 99; it is ignored for won (100) and lost (0).",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "max_calendar_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Calendar days a deal is expected to stay in the stage. `null` for no limit.",
            "example": 21,
            "minimum": 1
          },
          "loss_reason_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineLossReasonMode",
            "description": "Only lost stages may use `optional` or `required`; the others must be `disabled`. Default `disabled`.",
            "example": "disabled"
          },
          "required_fields": {
            "type": "array",
            "description": "Built-in fields a deal must have to enter this stage: `company`, `contacts`, `owner`, `amount_currency`, `expected_close_date` or `description`. Replaces the whole list; no duplicates.",
            "example": [
              "owner",
              "amount_currency"
            ],
            "items": {
              "type": "string"
            }
          },
          "required_attributes": {
            "type": "array",
            "description": "`public_code` of active opportunity attributes a deal must have to enter this stage (see `list_opportunity_attributes`). Replaces the whole list.",
            "example": [
              "lead_source"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStageCreateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "name",
          "color",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Stage name, up to 190 characters.",
            "example": "Negotiation"
          },
          "color": {
            "type": "string",
            "description": "Color as `#RRGGBB`.",
            "example": "#7C5CFC"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineStageType",
            "description": "Stage type. It cannot change while deals are in the stage.",
            "example": "open"
          },
          "probability": {
            "type": "integer",
            "description": "Win probability. For open stages 0 to 99; it is ignored for won (100) and lost (0).",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "max_calendar_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Calendar days a deal is expected to stay in the stage. `null` for no limit.",
            "example": 21,
            "minimum": 1
          },
          "loss_reason_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineLossReasonMode",
            "description": "Only lost stages may use `optional` or `required`; the others must be `disabled`. Default `disabled`.",
            "example": "disabled"
          },
          "required_fields": {
            "type": "array",
            "description": "Built-in fields a deal must have to enter this stage: `company`, `contacts`, `owner`, `amount_currency`, `expected_close_date` or `description`. Replaces the whole list; no duplicates.",
            "example": [
              "owner",
              "amount_currency"
            ],
            "items": {
              "type": "string"
            }
          },
          "required_attributes": {
            "type": "array",
            "description": "`public_code` of active opportunity attributes a deal must have to enter this stage (see `list_opportunity_attributes`). Replaces the whole list.",
            "example": [
              "lead_source"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStageUpdateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Stage name, up to 190 characters.",
            "example": "Negotiation"
          },
          "color": {
            "type": "string",
            "description": "Color as `#RRGGBB`.",
            "example": "#7C5CFC"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineStageType",
            "description": "Stage type. It cannot change while deals are in the stage.",
            "example": "open"
          },
          "probability": {
            "type": "integer",
            "description": "Win probability. For open stages 0 to 99; it is ignored for won (100) and lost (0).",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "max_calendar_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Calendar days a deal is expected to stay in the stage. `null` for no limit.",
            "example": 21,
            "minimum": 1
          },
          "loss_reason_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineLossReasonMode",
            "description": "Only lost stages may use `optional` or `required`; the others must be `disabled`. Default `disabled`.",
            "example": "disabled"
          },
          "required_fields": {
            "type": "array",
            "description": "Built-in fields a deal must have to enter this stage: `company`, `contacts`, `owner`, `amount_currency`, `expected_close_date` or `description`. Replaces the whole list; no duplicates.",
            "example": [
              "owner",
              "amount_currency"
            ],
            "items": {
              "type": "string"
            }
          },
          "required_attributes": {
            "type": "array",
            "description": "`public_code` of active opportunity attributes a deal must have to enter this stage (see `list_opportunity_attributes`). Replaces the whole list.",
            "example": [
              "lead_source"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStageUpdateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Stage name, up to 190 characters.",
            "example": "Negotiation"
          },
          "color": {
            "type": "string",
            "description": "Color as `#RRGGBB`.",
            "example": "#7C5CFC"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineStageType",
            "description": "Stage type. It cannot change while deals are in the stage.",
            "example": "open"
          },
          "probability": {
            "type": "integer",
            "description": "Win probability. For open stages 0 to 99; it is ignored for won (100) and lost (0).",
            "example": 60,
            "minimum": 0,
            "maximum": 99
          },
          "max_calendar_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Calendar days a deal is expected to stay in the stage. `null` for no limit.",
            "example": 21,
            "minimum": 1
          },
          "loss_reason_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/PipelineLossReasonMode",
            "description": "Only lost stages may use `optional` or `required`; the others must be `disabled`. Default `disabled`.",
            "example": "disabled"
          },
          "required_fields": {
            "type": "array",
            "description": "Built-in fields a deal must have to enter this stage: `company`, `contacts`, `owner`, `amount_currency`, `expected_close_date` or `description`. Replaces the whole list; no duplicates.",
            "example": [
              "owner",
              "amount_currency"
            ],
            "items": {
              "type": "string"
            }
          },
          "required_attributes": {
            "type": "array",
            "description": "`public_code` of active opportunity attributes a deal must have to enter this stage (see `list_opportunity_attributes`). Replaces the whole list.",
            "example": [
              "lead_source"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStagesOrderInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "stages"
        ],
        "properties": {
          "stages": {
            "type": "array",
            "description": "UUIDs of all the stages of the pipeline, in the new order.",
            "example": [
              "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70",
              "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "a9d3e7f1-5b28-4c64-9e0b-2f8a6c4d1e73",
              "b6e1a4c8-7d92-4f35-a1c0-8e5b3d9f2a46"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineStagesOrderInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "required": [
          "stages"
        ],
        "properties": {
          "stages": {
            "type": "array",
            "description": "UUIDs of all the stages of the pipeline, in the new order.",
            "example": [
              "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70",
              "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
              "a9d3e7f1-5b28-4c64-9e0b-2f8a6c4d1e73",
              "b6e1a4c8-7d92-4f35-a1c0-8e5b3d9f2a46"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Pipeline.PipelineUpdateInput": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Pipeline name, up to 190 characters, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "ISO 4217 code in the platform exchange-rate catalog. Forecasts and totals are reported in it. It cannot change while deals use another currency.",
            "example": "EUR"
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether deals in open stages may override the stage probability. Default `true`. It cannot be turned off while a deal has an override.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency. Default `false`.",
            "example": false
          }
        }
      },
      "Pipeline.PipelineUpdateInput.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Pipeline name, up to 190 characters, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "ISO 4217 code in the platform exchange-rate catalog. Forecasts and totals are reported in it. It cannot change while deals use another currency.",
            "example": "EUR"
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether deals in open stages may override the stage probability. Default `true`. It cannot be turned off while a deal has an override.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency. Default `false`.",
            "example": false
          }
        }
      },
      "Pipeline.jsonld": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          },
          "initial_stage": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the initial stage (an open stage). Deals created without stage do not use it.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "stages": {
            "type": "array",
            "description": "Stages in order. Every pipeline has at least one open, one won and one lost stage.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "color": "#7C5CFC",
                "type": "open",
                "probability": 60,
                "position": 1,
                "max_calendar_days": null,
                "loss_reason_mode": "disabled",
                "required_fields": [
                  "owner",
                  "amount_currency"
                ],
                "required_attributes": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name. Names are not forced to be unique; avoid repeating one, because operations that take a stage by name then ask for its UUID.",
                  "example": "Negotiation"
                },
                "color": {
                  "type": "string",
                  "description": "Color as `#RRGGBB`.",
                  "example": "#7C5CFC"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of deals in this stage: 0 to 99 for open stages, always 100 for won and 0 for lost.",
                  "example": 60
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 2
                },
                "max_calendar_days": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Calendar days a deal is expected to stay in this stage. `null` if there is no limit.",
                  "example": 21
                },
                "loss_reason_mode": {
                  "$ref": "#/components/schemas/PipelineLossReasonMode",
                  "description": "Only for lost stages: whether the loss reason is `required`, `optional` or `disabled` when a deal enters.",
                  "example": "disabled"
                },
                "required_fields": {
                  "type": "array",
                  "description": "Built-in fields a deal must have to enter this stage (`company`, `contacts`, `owner`, `amount_currency`, `expected_close_date`, `description`).",
                  "example": [
                    "owner",
                    "amount_currency"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "required_attributes": {
                  "type": "array",
                  "description": "`public_code` of the opportunity attributes a deal must have to enter this stage.",
                  "example": [
                    "lead_source"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons of the pipeline, active and archived, in order.",
            "example": [
              {
                "uuid": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15",
                "name": "Price too high",
                "position": 0,
                "status": "active",
                "used": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the loss reason.",
                  "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
                },
                "name": {
                  "type": "string",
                  "description": "Name of the reason.",
                  "example": "Price too high"
                },
                "position": {
                  "type": "integer",
                  "description": "Position among the loss reasons: 0 is the first.",
                  "example": 0
                },
                "status": {
                  "$ref": "#/components/schemas/PipelineLossReasonStatus",
                  "description": "`active`, or `archived`: it can no longer be chosen but past deals keep it.",
                  "example": "active"
                },
                "used": {
                  "type": "boolean",
                  "description": "true when at least one closed deal uses it.",
                  "example": true
                }
              }
            }
          }
        }
      },
      "Pipeline.jsonld-pipeline.list": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          }
        }
      },
      "Pipeline.jsonld-pipeline.list_pipeline.detail": {
        "type": "object",
        "description": "Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by\nfase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.\n\n`pipeline:list` is the summary every item of the list has; `pipeline:detail` adds what only `get_pipeline` returns\n(the initial stage, the stages and the loss reasons).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name, unique in the account (compared ignoring case).",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency in which the forecast and totals of the pipeline are reported.",
            "example": "EUR"
          },
          "default": {
            "type": "boolean",
            "description": "true for the default pipeline of the account (exactly one).",
            "example": true
          },
          "allow_custom_probability": {
            "type": "boolean",
            "description": "Whether a deal in an open stage may override the probability of the stage.",
            "example": true
          },
          "allow_multiple_currencies": {
            "type": "boolean",
            "description": "Whether deals may use currencies other than the reference currency.",
            "example": false
          },
          "access_level": {
            "type": "string",
            "$ref": "#/components/schemas/PipelineAccessLevel",
            "description": "Access of the user making the request to this pipeline: `read`, `work` or `admin`.",
            "example": "admin",
            "readOnly": true
          },
          "initial_stage": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the initial stage (an open stage). Deals created without stage do not use it.",
            "example": "c3f7b2a9-4e15-4d80-b6a2-1d9c5e8f3b70"
          },
          "stages": {
            "type": "array",
            "description": "Stages in order. Every pipeline has at least one open, one won and one lost stage.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "color": "#7C5CFC",
                "type": "open",
                "probability": 60,
                "position": 1,
                "max_calendar_days": null,
                "loss_reason_mode": "disabled",
                "required_fields": [
                  "owner",
                  "amount_currency"
                ],
                "required_attributes": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name. Names are not forced to be unique; avoid repeating one, because operations that take a stage by name then ask for its UUID.",
                  "example": "Negotiation"
                },
                "color": {
                  "type": "string",
                  "description": "Color as `#RRGGBB`.",
                  "example": "#7C5CFC"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of deals in this stage: 0 to 99 for open stages, always 100 for won and 0 for lost.",
                  "example": 60
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 2
                },
                "max_calendar_days": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Calendar days a deal is expected to stay in this stage. `null` if there is no limit.",
                  "example": 21
                },
                "loss_reason_mode": {
                  "$ref": "#/components/schemas/PipelineLossReasonMode",
                  "description": "Only for lost stages: whether the loss reason is `required`, `optional` or `disabled` when a deal enters.",
                  "example": "disabled"
                },
                "required_fields": {
                  "type": "array",
                  "description": "Built-in fields a deal must have to enter this stage (`company`, `contacts`, `owner`, `amount_currency`, `expected_close_date`, `description`).",
                  "example": [
                    "owner",
                    "amount_currency"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "required_attributes": {
                  "type": "array",
                  "description": "`public_code` of the opportunity attributes a deal must have to enter this stage.",
                  "example": [
                    "lead_source"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons of the pipeline, active and archived, in order.",
            "example": [
              {
                "uuid": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15",
                "name": "Price too high",
                "position": 0,
                "status": "active",
                "used": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the loss reason.",
                  "example": "e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15"
                },
                "name": {
                  "type": "string",
                  "description": "Name of the reason.",
                  "example": "Price too high"
                },
                "position": {
                  "type": "integer",
                  "description": "Position among the loss reasons: 0 is the first.",
                  "example": 0
                },
                "status": {
                  "$ref": "#/components/schemas/PipelineLossReasonStatus",
                  "description": "`active`, or `archived`: it can no longer be chosen but past deals keep it.",
                  "example": "active"
                },
                "used": {
                  "type": "boolean",
                  "description": "true when at least one closed deal uses it.",
                  "example": true
                }
              }
            }
          }
        }
      },
      "PipelineSummary-pipeline_summary.read": {
        "type": "object",
        "description": "`get_pipeline_summary` (fase 3 de «IA: una sola fuente», tarea 10): las cifras de un embudo por etapa y por mes de\ncierre previsto, calculadas en CoreBundle por `PipelineSummaryReader` con el mismo cálculo que el tablero. Los textos,\nejemplos y errores son los de la propuesta aprobada por Sergio el 2026-12-03\n(`trabajo/2026-12-03-ia-una-sola-fuente/fase-3/propuesta-resumen-embudo.md`); `tenant_account_not_migrated` lo añade\n`OperationOverridesDocumentationFactory`.\n\nLos objetos anidados se publican como arrays con las claves ya en `snake_case` (como `stages` de `get_pipeline`).",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name.",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency of every amount in the response: the reference currency of the pipeline (ISO 4217).",
            "example": "EUR"
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the figures were calculated. Open deals in other currencies are converted with the latest exchange rate available at that moment; won and lost deals keep the rate of their closing date.",
            "example": "2026-12-03T10:00:00+00:00"
          },
          "totals": {
            "type": "object",
            "description": "All the deals of the pipeline: every stage (open, won and lost) plus the deals without stage. These are the same totals the board of the app shows without filters, so `weighted_amount` counts won deals at 100% and lost deals at 0%; for the forecast of what is still in play, read `open_totals`.",
            "example": {
              "count": 40,
              "amount": "380500.00",
              "average_amount": "9756.41",
              "weighted_amount": "170200.00",
              "missing_currencies": [
                "USD"
              ]
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of deals, including those without amount and those whose currency could not be converted.",
                "example": 40
              },
              "amount": {
                "type": "string",
                "description": "Sum of the amounts converted to the reference currency, as a decimal string with two decimals. Deals listed in `missing_currencies` are not included.",
                "example": "380500.00"
              },
              "average_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`amount` divided by the number of deals whose amount it includes (deals without amount and those in `missing_currencies` are left out). `null` when there is none.",
                "example": "9756.41"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of each converted amount multiplied by its win probability (the probability of the stage, or the custom one of the deal).",
                "example": "170200.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of the deals that could not be converted to the reference currency (no exchange rate from the last 7 days, or a won or lost deal whose closing conversion is still pending), sorted. Those deals count in `count` but not in the amounts. Empty when everything was converted.",
                "example": [
                  "USD"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "open_totals": {
            "type": "object",
            "description": "The deals still in play: the open stages plus the deals without stage (exactly the sum of those entries of `stages` and `without_stage`). `weighted_amount` is the forecast of what may still be won. Same fields as `totals`, without `average_amount`.",
            "example": {
              "count": 28,
              "amount": "226100.00",
              "weighted_amount": "108500.00",
              "missing_currencies": [
                "USD"
              ]
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of open deals, including those without stage.",
                "example": 28
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "226100.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of their weighted amounts: the forecast.",
                "example": "108500.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of the open deals that could not be converted, sorted.",
                "example": [
                  "USD"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "stages": {
            "type": "array",
            "description": "Every stage of the pipeline in its order, including the stages without deals.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "type": "open",
                "position": 4,
                "count": 3,
                "amount": "52000.00",
                "average_amount": "17333.33",
                "weighted_amount": "41600.00",
                "missing_currencies": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name.",
                  "example": "Negotiation"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 4
                },
                "count": {
                  "type": "integer",
                  "description": "Number of deals in the stage, including those without amount and those whose currency could not be converted.",
                  "example": 3
                },
                "amount": {
                  "type": "string",
                  "description": "Sum of their amounts converted to the reference currency, as a decimal string with two decimals.",
                  "example": "52000.00"
                },
                "average_amount": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "`amount` divided by the number of deals whose amount it includes. `null` when no deal of the stage has an amount that could be converted.",
                  "example": "17333.33"
                },
                "weighted_amount": {
                  "type": "string",
                  "description": "Sum of each converted amount multiplied by its win probability. In a `won` stage it equals `amount`; in a `lost` stage it is `0.00`.",
                  "example": "41600.00"
                },
                "missing_currencies": {
                  "type": "array",
                  "description": "Currencies of the deals of the stage that could not be converted, sorted. Those deals count in `count` but not in the amounts.",
                  "example": [],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "without_stage": {
            "type": "object",
            "description": "Deals of the pipeline without stage. They count as open. They have no probability, so `weighted_amount` is `0.00`.",
            "example": {
              "count": 0,
              "amount": "0.00",
              "average_amount": null,
              "weighted_amount": "0.00",
              "missing_currencies": []
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of deals without stage.",
                "example": 2
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "8500.00"
              },
              "average_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`amount` divided by the number of deals whose amount it includes. `null` when there is none.",
                "example": "4250.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Always `0.00`: a deal without stage has no probability.",
                "example": "0.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of these deals that could not be converted, sorted.",
                "example": [],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "close_months": {
            "type": "array",
            "description": "Open deals (including those without stage) that have an expected close date, grouped by the month of that date and sorted by `month`. Only months with deals appear; past months are kept, because they hold open deals whose expected date has gone by. Each month converts its own sum, so the months plus `without_close_date` can differ from `open_totals` by a few cents when there are deals in other currencies.",
            "example": [
              {
                "month": "2026-12",
                "count": 9,
                "amount": "88400.00",
                "weighted_amount": "61200.00",
                "missing_currencies": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "month": {
                  "type": "string",
                  "description": "Month of the expected close date, as `YYYY-MM`.",
                  "example": "2026-12"
                },
                "count": {
                  "type": "integer",
                  "description": "Number of open deals expected to close that month.",
                  "example": 9
                },
                "amount": {
                  "type": "string",
                  "description": "Sum of their converted amounts.",
                  "example": "88400.00"
                },
                "weighted_amount": {
                  "type": "string",
                  "description": "Sum of their weighted amounts: the forecast for that month.",
                  "example": "61200.00"
                },
                "missing_currencies": {
                  "type": "array",
                  "description": "Currencies of these deals that could not be converted, sorted.",
                  "example": [],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "without_close_date": {
            "type": "object",
            "description": "Open deals (including those without stage) with no expected close date.",
            "example": {
              "count": 4,
              "amount": "12000.00",
              "weighted_amount": "3000.00",
              "missing_currencies": []
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of open deals without expected close date.",
                "example": 4
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "12000.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of their weighted amounts.",
                "example": "3000.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of these deals that could not be converted, sorted.",
                "example": [],
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "PipelineSummary.jsonld-pipeline_summary.read": {
        "type": "object",
        "description": "`get_pipeline_summary` (fase 3 de «IA: una sola fuente», tarea 10): las cifras de un embudo por etapa y por mes de\ncierre previsto, calculadas en CoreBundle por `PipelineSummaryReader` con el mismo cálculo que el tablero. Los textos,\nejemplos y errores son los de la propuesta aprobada por Sergio el 2026-12-03\n(`trabajo/2026-12-03-ia-una-sola-fuente/fase-3/propuesta-resumen-embudo.md`); `tenant_account_not_migrated` lo añade\n`OperationOverridesDocumentationFactory`.\n\nLos objetos anidados se publican como arrays con las claves ya en `snake_case` (como `stages` de `get_pipeline`).",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the pipeline.",
            "example": "d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57"
          },
          "name": {
            "type": "string",
            "description": "Pipeline name.",
            "example": "New business"
          },
          "reference_currency": {
            "type": "string",
            "description": "Currency of every amount in the response: the reference currency of the pipeline (ISO 4217).",
            "example": "EUR"
          },
          "calculated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the figures were calculated. Open deals in other currencies are converted with the latest exchange rate available at that moment; won and lost deals keep the rate of their closing date.",
            "example": "2026-12-03T10:00:00+00:00"
          },
          "totals": {
            "type": "object",
            "description": "All the deals of the pipeline: every stage (open, won and lost) plus the deals without stage. These are the same totals the board of the app shows without filters, so `weighted_amount` counts won deals at 100% and lost deals at 0%; for the forecast of what is still in play, read `open_totals`.",
            "example": {
              "count": 40,
              "amount": "380500.00",
              "average_amount": "9756.41",
              "weighted_amount": "170200.00",
              "missing_currencies": [
                "USD"
              ]
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of deals, including those without amount and those whose currency could not be converted.",
                "example": 40
              },
              "amount": {
                "type": "string",
                "description": "Sum of the amounts converted to the reference currency, as a decimal string with two decimals. Deals listed in `missing_currencies` are not included.",
                "example": "380500.00"
              },
              "average_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`amount` divided by the number of deals whose amount it includes (deals without amount and those in `missing_currencies` are left out). `null` when there is none.",
                "example": "9756.41"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of each converted amount multiplied by its win probability (the probability of the stage, or the custom one of the deal).",
                "example": "170200.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of the deals that could not be converted to the reference currency (no exchange rate from the last 7 days, or a won or lost deal whose closing conversion is still pending), sorted. Those deals count in `count` but not in the amounts. Empty when everything was converted.",
                "example": [
                  "USD"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "open_totals": {
            "type": "object",
            "description": "The deals still in play: the open stages plus the deals without stage (exactly the sum of those entries of `stages` and `without_stage`). `weighted_amount` is the forecast of what may still be won. Same fields as `totals`, without `average_amount`.",
            "example": {
              "count": 28,
              "amount": "226100.00",
              "weighted_amount": "108500.00",
              "missing_currencies": [
                "USD"
              ]
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of open deals, including those without stage.",
                "example": 28
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "226100.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of their weighted amounts: the forecast.",
                "example": "108500.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of the open deals that could not be converted, sorted.",
                "example": [
                  "USD"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "stages": {
            "type": "array",
            "description": "Every stage of the pipeline in its order, including the stages without deals.",
            "example": [
              {
                "uuid": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01",
                "name": "Negotiation",
                "type": "open",
                "position": 4,
                "count": 3,
                "amount": "52000.00",
                "average_amount": "17333.33",
                "weighted_amount": "41600.00",
                "missing_currencies": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the stage.",
                  "example": "f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01"
                },
                "name": {
                  "type": "string",
                  "description": "Stage name.",
                  "example": "Negotiation"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type: `open` (the deal is being worked), `won` or `lost` (the deal is closed).",
                  "example": "open"
                },
                "position": {
                  "type": "integer",
                  "description": "Position of the stage in the pipeline: 0 is the first.",
                  "example": 4
                },
                "count": {
                  "type": "integer",
                  "description": "Number of deals in the stage, including those without amount and those whose currency could not be converted.",
                  "example": 3
                },
                "amount": {
                  "type": "string",
                  "description": "Sum of their amounts converted to the reference currency, as a decimal string with two decimals.",
                  "example": "52000.00"
                },
                "average_amount": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "`amount` divided by the number of deals whose amount it includes. `null` when no deal of the stage has an amount that could be converted.",
                  "example": "17333.33"
                },
                "weighted_amount": {
                  "type": "string",
                  "description": "Sum of each converted amount multiplied by its win probability. In a `won` stage it equals `amount`; in a `lost` stage it is `0.00`.",
                  "example": "41600.00"
                },
                "missing_currencies": {
                  "type": "array",
                  "description": "Currencies of the deals of the stage that could not be converted, sorted. Those deals count in `count` but not in the amounts.",
                  "example": [],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "without_stage": {
            "type": "object",
            "description": "Deals of the pipeline without stage. They count as open. They have no probability, so `weighted_amount` is `0.00`.",
            "example": {
              "count": 0,
              "amount": "0.00",
              "average_amount": null,
              "weighted_amount": "0.00",
              "missing_currencies": []
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of deals without stage.",
                "example": 2
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "8500.00"
              },
              "average_amount": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`amount` divided by the number of deals whose amount it includes. `null` when there is none.",
                "example": "4250.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Always `0.00`: a deal without stage has no probability.",
                "example": "0.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of these deals that could not be converted, sorted.",
                "example": [],
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "close_months": {
            "type": "array",
            "description": "Open deals (including those without stage) that have an expected close date, grouped by the month of that date and sorted by `month`. Only months with deals appear; past months are kept, because they hold open deals whose expected date has gone by. Each month converts its own sum, so the months plus `without_close_date` can differ from `open_totals` by a few cents when there are deals in other currencies.",
            "example": [
              {
                "month": "2026-12",
                "count": 9,
                "amount": "88400.00",
                "weighted_amount": "61200.00",
                "missing_currencies": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "month": {
                  "type": "string",
                  "description": "Month of the expected close date, as `YYYY-MM`.",
                  "example": "2026-12"
                },
                "count": {
                  "type": "integer",
                  "description": "Number of open deals expected to close that month.",
                  "example": 9
                },
                "amount": {
                  "type": "string",
                  "description": "Sum of their converted amounts.",
                  "example": "88400.00"
                },
                "weighted_amount": {
                  "type": "string",
                  "description": "Sum of their weighted amounts: the forecast for that month.",
                  "example": "61200.00"
                },
                "missing_currencies": {
                  "type": "array",
                  "description": "Currencies of these deals that could not be converted, sorted.",
                  "example": [],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "without_close_date": {
            "type": "object",
            "description": "Open deals (including those without stage) with no expected close date.",
            "example": {
              "count": 4,
              "amount": "12000.00",
              "weighted_amount": "3000.00",
              "missing_currencies": []
            },
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of open deals without expected close date.",
                "example": 4
              },
              "amount": {
                "type": "string",
                "description": "Sum of their converted amounts.",
                "example": "12000.00"
              },
              "weighted_amount": {
                "type": "string",
                "description": "Sum of their weighted amounts.",
                "example": "3000.00"
              },
              "missing_currencies": {
                "type": "array",
                "description": "Currencies of these deals that could not be converted, sorted.",
                "example": [],
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "PipelineTemplate-pipeline_template.read": {
        "type": "object",
        "description": "The pipeline templates (plan fase 4, Task 15): the bundled catalog, in the default language of the account.\nGenerated from the approved proposal by fase-4/tools/gen_pipeline_read.py.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the template; send it as `template` in `create_pipeline_from_template`.",
            "example": "saas-software"
          },
          "name": {
            "type": "string",
            "description": "Name of the template, which becomes the name of the pipeline.",
            "example": "SaaS and software"
          },
          "description": {
            "type": "string",
            "description": "What sales process the template models.",
            "example": "Trials, demos and subscription deals."
          },
          "stages": {
            "type": "array",
            "description": "Stages the pipeline will have, in order.",
            "example": [
              {
                "name": "Lead",
                "type": "open",
                "probability": 10,
                "initial": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Stage name.",
                  "example": "Lead"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type.",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of the stage.",
                  "example": 10
                },
                "initial": {
                  "type": "boolean",
                  "description": "true for the initial stage.",
                  "example": true
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons the pipeline will have.",
            "example": [
              "No budget",
              "Chose a competitor"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PipelineTemplate.jsonld-pipeline_template.read": {
        "type": "object",
        "description": "The pipeline templates (plan fase 4, Task 15): the bundled catalog, in the default language of the account.\nGenerated from the approved proposal by fase-4/tools/gen_pipeline_read.py.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Identifier of the template; send it as `template` in `create_pipeline_from_template`.",
            "example": "saas-software"
          },
          "name": {
            "type": "string",
            "description": "Name of the template, which becomes the name of the pipeline.",
            "example": "SaaS and software"
          },
          "description": {
            "type": "string",
            "description": "What sales process the template models.",
            "example": "Trials, demos and subscription deals."
          },
          "stages": {
            "type": "array",
            "description": "Stages the pipeline will have, in order.",
            "example": [
              {
                "name": "Lead",
                "type": "open",
                "probability": 10,
                "initial": true
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Stage name.",
                  "example": "Lead"
                },
                "type": {
                  "$ref": "#/components/schemas/PipelineStageType",
                  "description": "Stage type.",
                  "example": "open"
                },
                "probability": {
                  "type": "integer",
                  "description": "Win probability of the stage.",
                  "example": 10
                },
                "initial": {
                  "type": "boolean",
                  "description": "true for the initial stage.",
                  "example": true
                }
              }
            }
          },
          "loss_reasons": {
            "type": "array",
            "description": "Loss reasons the pipeline will have.",
            "example": [
              "No budget",
              "Chose a competitor"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PopupBehaviorDto-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "triggers": {
            "type": "object",
            "description": "Trigger settings - defines when the popup should appear"
          },
          "schedule": {
            "type": "object",
            "description": "Schedule settings - defines when the popup should be active"
          },
          "frequency": {
            "type": "object",
            "description": "Frequency settings - defines how often the popup appears to the same visitor"
          },
          "visibility": {
            "type": "object",
            "description": "Visibility settings - defines where and on which devices the popup appears"
          }
        }
      },
      "PopupBehaviorDto-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "triggers": {
            "type": "object",
            "description": "Trigger settings - defines when the popup should appear"
          },
          "schedule": {
            "type": "object",
            "description": "Schedule settings - defines when the popup should be active"
          },
          "frequency": {
            "type": "object",
            "description": "Frequency settings - defines how often the popup appears to the same visitor"
          },
          "visibility": {
            "type": "object",
            "description": "Visibility settings - defines where and on which devices the popup appears"
          }
        }
      },
      "PopupBehaviorDto.jsonld-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "triggers": {
            "type": "object",
            "description": "Trigger settings - defines when the popup should appear"
          },
          "schedule": {
            "type": "object",
            "description": "Schedule settings - defines when the popup should be active"
          },
          "frequency": {
            "type": "object",
            "description": "Frequency settings - defines how often the popup appears to the same visitor"
          },
          "visibility": {
            "type": "object",
            "description": "Visibility settings - defines where and on which devices the popup appears"
          }
        }
      },
      "PopupBehaviorDto.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "triggers": {
            "type": "object",
            "description": "Trigger settings - defines when the popup should appear"
          },
          "schedule": {
            "type": "object",
            "description": "Schedule settings - defines when the popup should be active"
          },
          "frequency": {
            "type": "object",
            "description": "Frequency settings - defines how often the popup appears to the same visitor"
          },
          "visibility": {
            "type": "object",
            "description": "Visibility settings - defines where and on which devices the popup appears"
          }
        }
      },
      "Product-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "Product-product.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the product. It cannot be changed later.",
            "example": "sneaker-01"
          },
          "title": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Urban sneaker"
          },
          "description": {
            "type": "string",
            "description": "Description of the product.",
            "example": "Lightweight sneaker for everyday use."
          },
          "vendor": {
            "type": "string",
            "description": "Brand or supplier of the product.",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the product page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the main image of the product.",
            "example": "https://shop.acme.example.com/img/urban-sneaker.jpg"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "IRIs of the categories of the same store the product belongs to.",
            "example": [
              "/stores/acme-shop/categories/shoes"
            ]
          }
        }
      },
      "Product-product.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the product",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Product title",
            "example": "My awesome product"
          },
          "description": {
            "type": "string",
            "description": "Product description",
            "example": "My awesome product description"
          },
          "vendor": {
            "type": "string",
            "description": "Product vendor",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The product url"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The product image url"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Variant-product.read"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Product-product.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Urban sneaker"
          },
          "description": {
            "type": "string",
            "description": "Description of the product.",
            "example": "Lightweight sneaker for everyday use."
          },
          "vendor": {
            "type": "string",
            "description": "Brand or supplier of the product.",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the product page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the main image of the product.",
            "example": "https://shop.acme.example.com/img/urban-sneaker.jpg"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "IRIs of the categories of the same store the product belongs to.",
            "example": [
              "/stores/acme-shop/categories/shoes"
            ]
          }
        }
      },
      "Product.jsonld-automation_trigger.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "Product.jsonld-product.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the product. It cannot be changed later.",
            "example": "sneaker-01"
          },
          "title": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Urban sneaker"
          },
          "description": {
            "type": "string",
            "description": "Description of the product.",
            "example": "Lightweight sneaker for everyday use."
          },
          "vendor": {
            "type": "string",
            "description": "Brand or supplier of the product.",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the product page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the main image of the product.",
            "example": "https://shop.acme.example.com/img/urban-sneaker.jpg"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "IRIs of the categories of the same store the product belongs to.",
            "example": [
              "/stores/acme-shop/categories/shoes"
            ]
          }
        }
      },
      "Product.jsonld-product.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the product",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Product title",
            "example": "My awesome product"
          },
          "description": {
            "type": "string",
            "description": "Product description",
            "example": "My awesome product description"
          },
          "vendor": {
            "type": "string",
            "description": "Product vendor",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The product url"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The product image url"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Variant.jsonld-product.read"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Product.jsonld-product.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Urban sneaker"
          },
          "description": {
            "type": "string",
            "description": "Description of the product.",
            "example": "Lightweight sneaker for everyday use."
          },
          "vendor": {
            "type": "string",
            "description": "Brand or supplier of the product.",
            "example": "Acme"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the product page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker"
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the main image of the product.",
            "example": "https://shop.acme.example.com/img/urban-sneaker.jpg"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "IRIs of the categories of the same store the product belongs to.",
            "example": [
              "/stores/acme-shop/categories/shoes"
            ]
          }
        }
      },
      "RemoveFromGroupAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is removed from, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "RemoveFromGroupAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is removed from, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "RemoveFromGroupAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "group": {
            "description": "IRI of the group the contact is removed from, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "RemoveFromGroupAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "group": {
            "description": "IRI of the group the contact is removed from, as returned by `list_audience_groups`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          }
        }
      },
      "SendCampaignAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "subject": {
            "description": "Subject line of the email.",
            "example": "Welcome to Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name shown to the recipient.",
            "example": "Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of a verified sender used as the From address, as returned by `list_senders`. Optional if the audience has a default sender.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "reply_to": {
            "description": "IRI of a verified sender used for replies, as returned by `list_senders`. Optional if the audience has a default reply-to address or `use_conversations` is true.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "template": {
            "description": "IRI of an existing template to use as the content, as returned by `list_templates`. Send only one content field: if several are sent, builder JSON wins, then `template`, then HTML.",
            "type": "string",
            "format": "iri-reference",
            "example": "/templates/8e1c4b7a-2d95-4f60-a3b8-5c0f9d2e7a14"
          },
          "template_simple_json_code": {
            "description": "Email content as builder JSON. Creates a template that stays editable in the visual editor. Prefer it for new content.",
            "type": "object"
          },
          "template_html": {
            "description": "Email content as raw HTML. Creates a template that cannot be edited in the visual editor.",
            "example": "<p>Welcome to Acme!</p>",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text shown next to the subject in the inbox.",
            "example": "Your first steps with Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "track_opens": {
            "description": "Count the opens of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "use_conversations": {
            "description": "If true, replies go to a shared inbox in Easymailing instead of a reply-to address.",
            "type": "boolean",
            "example": false
          }
        }
      },
      "SendCampaignAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "subject": {
            "description": "Subject line of the email.",
            "example": "Welcome to Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name shown to the recipient.",
            "example": "Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of a verified sender used as the From address, as returned by `list_senders`. Optional if the audience has a default sender.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "reply_to": {
            "description": "IRI of a verified sender used for replies, as returned by `list_senders`. Optional if the audience has a default reply-to address or `use_conversations` is true.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "template": {
            "description": "IRI of an existing template to use as the content, as returned by `list_templates`. Send only one content field: if several are sent, builder JSON wins, then `template`, then HTML.",
            "type": "string",
            "format": "iri-reference",
            "example": "/templates/8e1c4b7a-2d95-4f60-a3b8-5c0f9d2e7a14"
          },
          "template_simple_json_code": {
            "description": "Email content as builder JSON. Creates a template that stays editable in the visual editor. Prefer it for new content.",
            "type": "object"
          },
          "template_html": {
            "description": "Email content as raw HTML. Creates a template that cannot be edited in the visual editor.",
            "example": "<p>Welcome to Acme!</p>",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text shown next to the subject in the inbox.",
            "example": "Your first steps with Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "track_opens": {
            "description": "Count the opens of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "use_conversations": {
            "description": "If true, replies go to a shared inbox in Easymailing instead of a reply-to address.",
            "type": "boolean",
            "example": false
          }
        }
      },
      "SendCampaignAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Welcome to Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name shown to the recipient.",
            "example": "Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of a verified sender used as the From address, as returned by `list_senders`. Optional if the audience has a default sender.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "reply_to": {
            "description": "IRI of a verified sender used for replies, as returned by `list_senders`. Optional if the audience has a default reply-to address or `use_conversations` is true.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "template": {
            "description": "IRI of an existing template to use as the content, as returned by `list_templates`. Send only one content field: if several are sent, builder JSON wins, then `template`, then HTML.",
            "type": "string",
            "format": "iri-reference",
            "example": "/templates/8e1c4b7a-2d95-4f60-a3b8-5c0f9d2e7a14"
          },
          "template_simple_json_code": {
            "description": "Email content as builder JSON. Creates a template that stays editable in the visual editor. Prefer it for new content.",
            "type": "object"
          },
          "template_html": {
            "description": "Email content as raw HTML. Creates a template that cannot be edited in the visual editor.",
            "example": "<p>Welcome to Acme!</p>",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text shown next to the subject in the inbox.",
            "example": "Your first steps with Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "track_opens": {
            "description": "Count the opens of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "use_conversations": {
            "description": "If true, replies go to a shared inbox in Easymailing instead of a reply-to address.",
            "type": "boolean",
            "example": false
          }
        }
      },
      "SendCampaignAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "subject": {
            "description": "Subject line of the email.",
            "example": "Welcome to Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "description": "Sender name shown to the recipient.",
            "example": "Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "from_email": {
            "description": "IRI of a verified sender used as the From address, as returned by `list_senders`. Optional if the audience has a default sender.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "reply_to": {
            "description": "IRI of a verified sender used for replies, as returned by `list_senders`. Optional if the audience has a default reply-to address or `use_conversations` is true.",
            "type": "string",
            "format": "iri-reference",
            "example": "/senders/3f2b7a10-5c4d-4e8a-9b61-0d7e2f1a6c35"
          },
          "template": {
            "description": "IRI of an existing template to use as the content, as returned by `list_templates`. Send only one content field: if several are sent, builder JSON wins, then `template`, then HTML.",
            "type": "string",
            "format": "iri-reference",
            "example": "/templates/8e1c4b7a-2d95-4f60-a3b8-5c0f9d2e7a14"
          },
          "template_simple_json_code": {
            "description": "Email content as builder JSON. Creates a template that stays editable in the visual editor. Prefer it for new content.",
            "type": "object"
          },
          "template_html": {
            "description": "Email content as raw HTML. Creates a template that cannot be edited in the visual editor.",
            "example": "<p>Welcome to Acme!</p>",
            "type": [
              "string",
              "null"
            ]
          },
          "preview_text": {
            "description": "Preview text shown next to the subject in the inbox.",
            "example": "Your first steps with Acme",
            "type": [
              "string",
              "null"
            ]
          },
          "track_opens": {
            "description": "Count the opens of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of this email.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "use_conversations": {
            "description": "If true, replies go to a shared inbox in Easymailing instead of a reply-to address.",
            "type": "boolean",
            "example": false
          }
        }
      },
      "SendNotificationAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "emails": {
            "description": "Addresses that receive the notification, from 1 to 10. These are your team's addresses, not the contact's.",
            "example": [
              "sales@acme.com"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "description": "Subject of the notification, up to 150 characters. It accepts personalization tags with the contact's data.",
            "example": "New hot lead",
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "description": "Text of the notification. It accepts personalization tags with the contact's data.",
            "example": "A contact reached the end of the onboarding flow.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendNotificationAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "emails": {
            "description": "Addresses that receive the notification, from 1 to 10. These are your team's addresses, not the contact's.",
            "example": [
              "sales@acme.com"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "description": "Subject of the notification, up to 150 characters. It accepts personalization tags with the contact's data.",
            "example": "New hot lead",
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "description": "Text of the notification. It accepts personalization tags with the contact's data.",
            "example": "A contact reached the end of the onboarding flow.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendNotificationAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "emails": {
            "description": "Addresses that receive the notification, from 1 to 10. These are your team's addresses, not the contact's.",
            "example": [
              "sales@acme.com"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "description": "Subject of the notification, up to 150 characters. It accepts personalization tags with the contact's data.",
            "example": "New hot lead",
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "description": "Text of the notification. It accepts personalization tags with the contact's data.",
            "example": "A contact reached the end of the onboarding flow.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendNotificationAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "emails": {
            "description": "Addresses that receive the notification, from 1 to 10. These are your team's addresses, not the contact's.",
            "example": [
              "sales@acme.com"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "description": "Subject of the notification, up to 150 characters. It accepts personalization tags with the contact's data.",
            "example": "New hot lead",
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "description": "Text of the notification. It accepts personalization tags with the contact's data.",
            "example": "A contact reached the end of the onboarding flow.",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendSmsAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "title": {
            "description": "Internal title of the SMS, not shown to the contact.",
            "example": "Order reminder",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "Text of the SMS.",
            "example": "Hi, your order is waiting for you at Acme.",
            "type": [
              "string",
              "null"
            ]
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
            "example": "/sms_senders/1"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of the message.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "type": "boolean",
            "description": "Enable ecommerce tracking for this SMS.",
            "example": false
          },
          "track_google_analytics": {
            "type": "boolean",
            "description": "Add Google Analytics tracking to the links of the message.",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
            "example": "welcome-sms",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendSmsAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "description": "Internal title of the SMS, not shown to the contact.",
            "example": "Order reminder",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "Text of the SMS.",
            "example": "Hi, your order is waiting for you at Acme.",
            "type": [
              "string",
              "null"
            ]
          },
          "sms_sender": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of an active SMS sender, as returned by `list_sms_senders`.",
            "example": "/sms_senders/1"
          },
          "track_clicks": {
            "description": "Count the clicks on the links of the message.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "type": "boolean",
            "description": "Enable ecommerce tracking for this SMS.",
            "example": false
          },
          "track_google_analytics": {
            "type": "boolean",
            "description": "Add Google Analytics tracking to the links of the message.",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Tag used for Google Analytics when `track_google_analytics` is true.",
            "example": "welcome-sms",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendWebhookAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL that receives the HTTP POST.",
            "example": "https://example.com/hooks/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign the request with HMAC-SHA256. If omitted, one is generated.",
            "example": "whsec_4f9a7c1e"
          },
          "payload_items": {
            "type": "array",
            "description": "Extra key-value pairs added to the payload, at most 20.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Name of the extra field in the payload.",
                  "example": "event"
                },
                "value": {
                  "type": "string",
                  "description": "Value of the extra field.",
                  "example": "welcome_flow_finished"
                }
              },
              "required": [
                "key",
                "value"
              ]
            },
            "example": [
              {
                "key": "event",
                "value": "welcome_flow_finished"
              }
            ]
          }
        }
      },
      "SendWebhookAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL that receives the HTTP POST.",
            "example": "https://example.com/hooks/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign the request with HMAC-SHA256. If omitted, one is generated.",
            "example": "whsec_4f9a7c1e"
          },
          "payload_items": {
            "type": "array",
            "description": "Extra key-value pairs added to the payload, at most 20.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Name of the extra field in the payload.",
                  "example": "event"
                },
                "value": {
                  "type": "string",
                  "description": "Value of the extra field.",
                  "example": "welcome_flow_finished"
                }
              },
              "required": [
                "key",
                "value"
              ]
            },
            "example": [
              {
                "key": "event",
                "value": "welcome_flow_finished"
              }
            ]
          }
        }
      },
      "SendWebhookAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL that receives the HTTP POST.",
            "example": "https://example.com/hooks/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign the request with HMAC-SHA256. If omitted, one is generated.",
            "example": "whsec_4f9a7c1e"
          },
          "payload_items": {
            "type": "array",
            "description": "Extra key-value pairs added to the payload, at most 20.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Name of the extra field in the payload.",
                  "example": "event"
                },
                "value": {
                  "type": "string",
                  "description": "Value of the extra field.",
                  "example": "welcome_flow_finished"
                }
              },
              "required": [
                "key",
                "value"
              ]
            },
            "example": [
              {
                "key": "event",
                "value": "welcome_flow_finished"
              }
            ]
          }
        }
      },
      "SendWebhookAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL that receives the HTTP POST.",
            "example": "https://example.com/hooks/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign the request with HMAC-SHA256. If omitted, one is generated.",
            "example": "whsec_4f9a7c1e"
          },
          "payload_items": {
            "type": "array",
            "description": "Extra key-value pairs added to the payload, at most 20.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Name of the extra field in the payload.",
                  "example": "event"
                },
                "value": {
                  "type": "string",
                  "description": "Value of the extra field.",
                  "example": "welcome_flow_finished"
                }
              },
              "required": [
                "key",
                "value"
              ]
            },
            "example": [
              {
                "key": "event",
                "value": "welcome_flow_finished"
              }
            ]
          }
        }
      },
      "Sender-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "confirmed": {
            "type": "boolean",
            "description": "Confirmed"
          }
        },
        "required": [
          "email"
        ]
      },
      "Sender-sender.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "confirmed": {
            "type": "boolean",
            "description": "Confirmed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "email"
        ]
      },
      "Sender-sender.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address to use as sender. Its owner has to confirm it.",
            "example": "news@acme.example.com"
          }
        }
      },
      "Sender.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "confirmed": {
            "type": "boolean",
            "description": "Confirmed"
          }
        },
        "required": [
          "email"
        ]
      },
      "Sender.jsonld-sender.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Contact email"
          },
          "confirmed": {
            "type": "boolean",
            "description": "Confirmed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "email"
        ]
      },
      "Sender.jsonld-sender.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address to use as sender. Its owner has to confirm it.",
            "example": "news@acme.example.com"
          }
        }
      },
      "SenderDomain-sender_domain.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "domain": {
            "type": "string",
            "description": "Domain name (extracted from email)",
            "example": "example.com"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address used to verify domain ownership",
            "example": "info@example.com"
          },
          "verified": {
            "type": "boolean",
            "description": "Email verification status"
          },
          "authenticated": {
            "type": "boolean",
            "description": "DNS authentication status"
          },
          "aligned": {
            "type": "boolean",
            "description": "Domain alignment status"
          },
          "links_aligned": {
            "type": "boolean",
            "description": "Whether tracking links are aligned to this domain."
          },
          "subdomain": {
            "type": "string",
            "description": "Mail server subdomain (auto-generated)",
            "example": "em123.example.com"
          },
          "tracking_subdomain": {
            "type": "string",
            "description": "Tracking subdomain prefix (only provide the prefix, e.g., \"link\")",
            "example": "link"
          },
          "authentication_info_url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL with DNS configuration instructions",
            "example": "https://app.easymailing.com/app/public/sender-domain/abc123/authenticate-info"
          },
          "dns_records": {
            "type": "array",
            "description": "DNS records to configure (only shown when not authenticated)",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "DNS record type",
                  "enum": [
                    "CNAME",
                    "TXT"
                  ],
                  "example": "CNAME"
                },
                "name": {
                  "type": "string",
                  "description": "Record name (without domain)",
                  "example": "easymk1._domainkey"
                },
                "host": {
                  "type": "string",
                  "description": "Full hostname including domain",
                  "example": "easymk1._domainkey.example.com"
                },
                "value": {
                  "type": "string",
                  "description": "Record value to configure",
                  "example": "dkim.emdlv.net"
                },
                "purpose": {
                  "type": "string",
                  "description": "Purpose of this DNS record",
                  "enum": [
                    "DKIM",
                    "Mail Server",
                    "DMARC",
                    "Tracking"
                  ],
                  "example": "DKIM"
                }
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "SenderDomain-sender_domain.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address of the domain to authenticate. The confirmation email is sent to it.",
            "example": "info@acme.example.com"
          },
          "links_aligned": {
            "type": "boolean",
            "description": "If true, the tracking links of campaigns use your own domain. Requires a plan that includes it and `tracking_subdomain`. If omitted it is set to false.",
            "example": false
          },
          "tracking_subdomain": {
            "type": "string",
            "description": "Prefix for the tracking domain, for example `link` for `link.acme.example.com`. Required when `links_aligned` is true.",
            "example": "link"
          }
        }
      },
      "SenderDomain.SenderDomainAuthenticateOutput-sender_domain.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "authenticated": {
            "type": "boolean"
          },
          "checks": {
            "description": "Individual DNS check results.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "results": {
            "description": "Actual DNS values found during verification.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SenderDomain.SenderDomainAuthenticateOutput.jsonld-sender_domain.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "authenticated": {
            "type": "boolean"
          },
          "checks": {
            "description": "Individual DNS check results.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "results": {
            "description": "Actual DNS values found during verification.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SenderDomain.jsonld-sender_domain.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "domain": {
            "type": "string",
            "description": "Domain name (extracted from email)",
            "example": "example.com"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address used to verify domain ownership",
            "example": "info@example.com"
          },
          "verified": {
            "type": "boolean",
            "description": "Email verification status"
          },
          "authenticated": {
            "type": "boolean",
            "description": "DNS authentication status"
          },
          "aligned": {
            "type": "boolean",
            "description": "Domain alignment status"
          },
          "links_aligned": {
            "type": "boolean",
            "description": "Whether tracking links are aligned to this domain."
          },
          "subdomain": {
            "type": "string",
            "description": "Mail server subdomain (auto-generated)",
            "example": "em123.example.com"
          },
          "tracking_subdomain": {
            "type": "string",
            "description": "Tracking subdomain prefix (only provide the prefix, e.g., \"link\")",
            "example": "link"
          },
          "authentication_info_url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL with DNS configuration instructions",
            "example": "https://app.easymailing.com/app/public/sender-domain/abc123/authenticate-info"
          },
          "dns_records": {
            "type": "array",
            "description": "DNS records to configure (only shown when not authenticated)",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "DNS record type",
                  "enum": [
                    "CNAME",
                    "TXT"
                  ],
                  "example": "CNAME"
                },
                "name": {
                  "type": "string",
                  "description": "Record name (without domain)",
                  "example": "easymk1._domainkey"
                },
                "host": {
                  "type": "string",
                  "description": "Full hostname including domain",
                  "example": "easymk1._domainkey.example.com"
                },
                "value": {
                  "type": "string",
                  "description": "Record value to configure",
                  "example": "dkim.emdlv.net"
                },
                "purpose": {
                  "type": "string",
                  "description": "Purpose of this DNS record",
                  "enum": [
                    "DKIM",
                    "Mail Server",
                    "DMARC",
                    "Tracking"
                  ],
                  "example": "DKIM"
                }
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "SenderDomain.jsonld-sender_domain.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "Email address of the domain to authenticate. The confirmation email is sent to it.",
            "example": "info@acme.example.com"
          },
          "links_aligned": {
            "type": "boolean",
            "description": "If true, the tracking links of campaigns use your own domain. Requires a plan that includes it and `tracking_subdomain`. If omitted it is set to false.",
            "example": false
          },
          "tracking_subdomain": {
            "type": "string",
            "description": "Prefix for the tracking domain, for example `link` for `link.acme.example.com`. Required when `links_aligned` is true.",
            "example": "link"
          }
        }
      },
      "SenderVariantInput-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email"
        ],
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients for this variant. Required.",
            "example": "Ana from Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address for this variant: `/senders/{uuid}` (see `list_senders`). Required.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SenderVariantInput.jsonld-campaign.write.test_ab_sender": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "from_name",
          "from_email"
        ],
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients for this variant. Required.",
            "example": "Ana from Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address for this variant: `/senders/{uuid}` (see `list_senders`). Required.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SentEmail-sent_email.read": {
        "type": "object",
        "description": "`list_sent_emails` (fase 5): the emails sent from the CRM from mailboxes the user can read in full, newest first.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `uuid` is the\nsend's, not the one of the synchronized email.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send (use it with `get_email_send`).",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject.",
            "example": "Proposal for Acme"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox it left from.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "sender_address": {
            "type": "string",
            "description": "Address it left from.",
            "example": "sergio@acme.com"
          },
          "sent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was sent.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The `to` addresses, each with who it is: `address`, `contact` (IRI of the contact that owns the address, or null), `name` (or null) and `kind` (`contact`, `member` for a user of the account, `shared_mailbox`, `internal` or `external` when unknown).",
            "example": [
              {
                "address": "ana@example.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "name": "Ana Ruiz",
                "kind": "contact"
              }
            ]
          },
          "sent_by": {
            "type": "object",
            "description": "Who sent it: `uuid`, `name` and `avatar_url` of the user.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Sergio Gallego",
              "avatar_url": null
            }
          },
          "mine": {
            "type": "boolean",
            "description": "`true` when the user who owns the token sent it.",
            "example": true
          }
        }
      },
      "SentEmail.jsonld-sent_email.read": {
        "type": "object",
        "description": "`list_sent_emails` (fase 5): the emails sent from the CRM from mailboxes the user can read in full, newest first.\nGenerated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. `uuid` is the\nsend's, not the one of the synchronized email.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the send (use it with `get_email_send`).",
            "example": "3a9e1f54-0000-4000-8000-6c474d08b1a5"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Subject.",
            "example": "Proposal for Acme"
          },
          "sender_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Mailbox it left from.",
            "example": "3a9e1f56-0000-4000-8000-6c474d08b1a7"
          },
          "sender_address": {
            "type": "string",
            "description": "Address it left from.",
            "example": "sergio@acme.com"
          },
          "sent_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was sent.",
            "example": "2026-11-03T09:00:20+00:00"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The `to` addresses, each with who it is: `address`, `contact` (IRI of the contact that owns the address, or null), `name` (or null) and `kind` (`contact`, `member` for a user of the account, `shared_mailbox`, `internal` or `external` when unknown).",
            "example": [
              {
                "address": "ana@example.com",
                "contact": "/contacts/3a9e1f57-0000-4000-8000-6c474d08b1a8",
                "name": "Ana Ruiz",
                "kind": "contact"
              }
            ]
          },
          "sent_by": {
            "type": "object",
            "description": "Who sent it: `uuid`, `name` and `avatar_url` of the user.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Sergio Gallego",
              "avatar_url": null
            }
          },
          "mine": {
            "type": "boolean",
            "description": "`true` when the user who owns the token sent it.",
            "example": true
          }
        }
      },
      "SmsCampaign-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sms_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignStatsResource-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign. SMS campaigns are always regular.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `sms` here.",
            "example": "sms",
            "type": "string",
            "enum": [
              "sms"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used for tracking.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_sms_campaign`, `create_sms_campaign` and `update_sms_campaign` fill it; `list_sms_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "SmsCampaign-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sms_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignStatsResource-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign. SMS campaigns are always regular.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `sms` here.",
            "example": "sms",
            "type": "string",
            "enum": [
              "sms"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used for tracking.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "recipient_count": {
            "description": "Number of contacts that would receive the campaign now. Only for draft, ready and scheduled campaigns.",
            "example": 1250,
            "type": "integer"
          },
          "warnings": {
            "description": "Delivery problems detected now. Only for draft, ready and scheduled campaigns. Those with `blocks_sending: true` stop the send.",
            "type": "array",
            "example": []
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_sms_campaign`, `create_sms_campaign` and `update_sms_campaign` fill it; `list_sms_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "SmsCampaign.CampaignDuplicateInput-campaign.write_duplicate": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "description": "Name of the new campaign, for your own reference (max 255 characters). Required.",
            "example": "Black Friday offer (copy)",
            "type": "string"
          }
        }
      },
      "SmsCampaign.CampaignDuplicateInput.jsonld-campaign.write_duplicate": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "description": "Name of the new campaign, for your own reference (max 255 characters). Required.",
            "example": "Black Friday offer (copy)",
            "type": "string"
          }
        }
      },
      "SmsCampaign.CampaignSendInput-campaign.write_schedule": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the campaign is sent, in ISO 8601 with time zone offset. It must be at least one hour from now.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "schedule_mailing_date"
        ]
      },
      "SmsCampaign.CampaignSendInput-campaign.write_send": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "SmsCampaign.CampaignSendInput.jsonld-campaign.write_schedule": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          },
          "schedule_mailing_date": {
            "description": "Date and time at which the campaign is sent, in ISO 8601 with time zone offset. It must be at least one hour from now.",
            "example": "2026-11-27T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "schedule_mailing_date"
        ]
      },
      "SmsCampaign.CampaignSendInput.jsonld-campaign.write_send": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "campaign_confirmation_email": {
            "description": "Set to true to receive a confirmation email at the addresses in `mailing_confirm_emails` when the campaign has finished sending. Defaults to false.",
            "example": true,
            "type": "boolean"
          },
          "mailing_confirm_emails": {
            "description": "Email addresses that receive the confirmation email. At least one is required when `campaign_confirmation_email` is true.",
            "example": [
              "ana@example.com"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "SmsCampaign.CampaignSendSmsTestInput-campaign.write_send_sms_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "phones"
        ],
        "properties": {
          "phones": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Phone numbers that receive the test SMS, in E.164 format (from 1 to 5).",
            "example": [
              "+34612345678"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SmsCampaign.CampaignSendSmsTestInput.jsonld-campaign.write_send_sms_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "phones"
        ],
        "properties": {
          "phones": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Phone numbers that receive the test SMS, in E.164 format (from 1 to 5).",
            "example": [
              "+34612345678"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SmsCampaign.CampaignSmsInput-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "send_to",
          "sms_config",
          "title",
          "audience"
        ],
        "properties": {
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment",
              "send_to_custom_segment"
            ],
            "description": "Who receives the campaign, always among the confirmed subscribers of `audience` with a confirmed SMS subscription and a phone number: the whole audience (`send_to_all`), some of its groups (`send_to_groups`, also send `groups`), a segment (`send_to_segment`, also send `contact_segment`, or `list_segment` for an old audience segment) or the campaign's own filter (`send_to_custom_segment`, also send `filter` and, optionally, `contact_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "list_segment": {
            "description": "IRI of an old audience segment: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`), from the same audience, with `send_to_segment`. Deprecated: Customer App does not show these segments; use `contact_segment` instead. Cannot be combined with `contact_segment` or `filter`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          },
          "sms_config": {
            "description": "Text message and sender of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource-campaign.write.sms"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "description": "Tracking options of the SMS campaign. Send it with every create or update; the fields left out inside it take their defaults.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource-campaign.write.sms"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact_segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a contact segment (`/contact_segments/{uuid}`, see `list_contact_segments`). With `send_to_segment`, the campaign goes to the confirmed subscribers of `audience` who are in the segment; with `send_to_custom_segment`, it is the base the `filter` is applied on. Cannot be combined with `list_segment`.",
            "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "The campaign's own conditions, required with `send_to_custom_segment`: the campaign goes to the confirmed subscribers of `audience` who match them (and are in `contact_segment`, if sent). Shape as `filter` of `create_contact_segment`; only fields with `campaign` in `usable_in`. The filter belongs to the campaign; it is not saved as a segment.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "contact.location_country",
                  "operator": "is_any_of",
                  "value": [
                    "ES"
                  ]
                }
              ]
            }
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday SMS",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          }
        }
      },
      "SmsCampaign.CampaignSmsInput.jsonld-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "send_to",
          "sms_config",
          "title",
          "audience"
        ],
        "properties": {
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment",
              "send_to_custom_segment"
            ],
            "description": "Who receives the campaign, always among the confirmed subscribers of `audience` with a confirmed SMS subscription and a phone number: the whole audience (`send_to_all`), some of its groups (`send_to_groups`, also send `groups`), a segment (`send_to_segment`, also send `contact_segment`, or `list_segment` for an old audience segment) or the campaign's own filter (`send_to_custom_segment`, also send `filter` and, optionally, `contact_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "list_segment": {
            "description": "IRI of an old audience segment: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`), from the same audience, with `send_to_segment`. Deprecated: Customer App does not show these segments; use `contact_segment` instead. Cannot be combined with `contact_segment` or `filter`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          },
          "sms_config": {
            "description": "Text message and sender of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource.jsonld-campaign.write.sms"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "description": "Tracking options of the SMS campaign. Send it with every create or update; the fields left out inside it take their defaults.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource.jsonld-campaign.write.sms"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact_segment": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "description": "IRI of a contact segment (`/contact_segments/{uuid}`, see `list_contact_segments`). With `send_to_segment`, the campaign goes to the confirmed subscribers of `audience` who are in the segment; with `send_to_custom_segment`, it is the base the `filter` is applied on. Cannot be combined with `list_segment`.",
            "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734"
          },
          "filter": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "match": {
                "$ref": "#/components/schemas/ContactFilterMatch",
                "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                "example": "all"
              },
              "conditions": {
                "type": "array",
                "description": "Conditions and groups of the top level, in order. At least one.",
                "example": [
                  {
                    "field": "membership.email_status",
                    "operator": "is_any_of",
                    "value": [
                      "suscriber.status.confirmed"
                    ],
                    "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                  },
                  {
                    "field": "marketing.email.opened",
                    "operator": "occurred",
                    "value": {
                      "message_scope": {
                        "kind": "latest_sent_campaigns",
                        "count": 5
                      }
                    }
                  },
                  {
                    "match": "any",
                    "conditions": [
                      {
                        "field": "contact.location_country",
                        "operator": "is_any_of",
                        "value": [
                          "ES",
                          "PT"
                        ]
                      },
                      {
                        "field": "membership.groups",
                        "operator": "contains_any",
                        "value": [
                          "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      }
                    ]
                  }
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                      "example": "membership.email_status"
                    },
                    "operator": {
                      "type": "string",
                      "description": "Condition: one of the field's `operators[].id`.",
                      "example": "is_any_of"
                    },
                    "value": {
                      "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                      "example": [
                        "suscriber.status.confirmed"
                      ]
                    },
                    "audience": {
                      "type": "string",
                      "format": "uuid",
                      "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                      "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                    },
                    "match": {
                      "$ref": "#/components/schemas/ContactFilterMatch",
                      "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                      "example": "any"
                    },
                    "conditions": {
                      "type": "array",
                      "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                      "example": [
                        {
                          "field": "contact.location_country",
                          "operator": "is_any_of",
                          "value": [
                            "ES",
                            "PT"
                          ]
                        },
                        {
                          "field": "membership.groups",
                          "operator": "contains_any",
                          "value": [
                            "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                          ],
                          "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        }
                      ],
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "match",
              "conditions"
            ],
            "description": "The campaign's own conditions, required with `send_to_custom_segment`: the campaign goes to the confirmed subscribers of `audience` who match them (and are in `contact_segment`, if sent). Shape as `filter` of `create_contact_segment`; only fields with `campaign` in `usable_in`. The filter belongs to the campaign; it is not saved as a segment.",
            "example": {
              "match": "all",
              "conditions": [
                {
                  "field": "contact.location_country",
                  "operator": "is_any_of",
                  "value": [
                    "ES"
                  ]
                }
              ]
            }
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday SMS",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          }
        }
      },
      "SmsCampaign.jsonld-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sms_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignStatsResource.jsonld-campaign.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign. SMS campaigns are always regular.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Campaign channel. Always `sms` for this endpoint.",
            "example": "sms",
            "type": "string",
            "enum": [
              "sms"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used for tracking.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_sms_campaign`, `create_sms_campaign` and `update_sms_campaign` fill it; `list_sms_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "SmsCampaign.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sms_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsConfigResource.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignConfigResource.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_campaign_stats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmsCampaignStatsResource.jsonld-campaign.read_campaign.read.detail"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "description": "Unique identifier of the campaign.",
            "example": "8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35",
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "description": "Name of the campaign in your account.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "status": {
            "description": "Current state of the campaign.",
            "example": "campaign.status.draft",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "type": {
            "description": "Kind of campaign. SMS campaigns are always regular.",
            "example": "campaign.regular",
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CampaignType"
          },
          "channel": {
            "description": "Channel of the campaign. Always `sms` here.",
            "example": "sms",
            "type": "string",
            "enum": [
              "sms"
            ]
          },
          "send_to": {
            "description": "Who receives the campaign: `send_to_all`, `send_to_groups` (see `groups`), `send_to_segment` (see `contact_targeting`, or `list_segment` for an old audience segment) or `send_to_custom_segment` (its own filter, see `contact_targeting`).",
            "example": "send_to_all",
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-template"
          },
          "list_segment": {
            "description": "IRI of the old audience segment that receives the campaign. `null` unless it goes to one; campaigns that use a contact segment or their own filter have it `null` and describe their recipients in `contact_targeting`.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign. Empty unless it is sent to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-template",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "hash": {
            "description": "Unique code of the campaign, used for tracking.",
            "example": "ELGMiR3jr3pHxR4P5AS0sX",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the campaign was created.",
            "example": "2026-10-28T09:15:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "description": "Date and time the campaign was last changed.",
            "example": "2026-10-29T16:40:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "description": "Date and time the sending started. Empty until the campaign starts sending.",
            "example": "2026-11-01T10:00:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "description": "Date and time the sending finished. Empty until the campaign has been sent.",
            "example": "2026-11-01T10:12:00+01:00",
            "type": "string",
            "format": "date-time"
          },
          "recipient_count": {
            "description": "Number of contacts that would receive the campaign now. Only for draft, ready and scheduled campaigns.",
            "example": 1250,
            "type": "integer"
          },
          "warnings": {
            "description": "Delivery problems detected now. Only for draft, ready and scheduled campaigns. Those with `blocks_sending: true` stop the send.",
            "type": "array",
            "example": []
          },
          "contact_targeting": {
            "type": [
              "object",
              "null"
            ],
            "description": "Recipients chosen with the contacts engine, as Customer App does: a contact segment (`send_to_segment`) or the campaign's own filter, optionally on top of a segment (`send_to_custom_segment`). `null` when the campaign goes to the whole audience, to groups or to an old audience segment (`list_segment`). Recipients are always the confirmed subscribers of the campaign's audience and channel who match. Only `get_sms_campaign`, `create_sms_campaign` and `update_sms_campaign` fill it; `list_sms_campaigns` leaves it `null`, read the campaign to know its recipients.",
            "example": {
              "kind": "filter",
              "contact_segment": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
              "contact_segment_name": "Engaged subscribers Spain",
              "contact_segment_deleted": false,
              "filter": {
                "match": "all",
                "conditions": [
                  {
                    "field": "contact.location_country",
                    "operator": "is_any_of",
                    "value": [
                      "ES"
                    ]
                  }
                ]
              },
              "revision_status": "following_latest",
              "pinned_at": null,
              "error_code": null
            },
            "readOnly": true,
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CampaignContactTargetingKind",
                "description": "`segment`: the campaign goes to a contact segment. `filter`: to its own filter.",
                "example": "filter",
                "readOnly": true
              },
              "contact_segment": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "iri-reference",
                "description": "IRI of the segment (`/contact_segments/{uuid}`): the target, or the base of the filter. `null` without segment or if the user lacks `contacts.read`.",
                "example": "/contact_segments/8b3f2d61-4c7a-4e19-9a05-d2c6e8f1a734",
                "readOnly": true
              },
              "contact_segment_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of that segment. `null` like `contact_segment`.",
                "example": "Engaged subscribers Spain",
                "readOnly": true
              },
              "contact_segment_deleted": {
                "type": "boolean",
                "description": "True if that segment was deleted: the campaign cannot be sent until its recipients change (unless it was scheduled before).",
                "example": false,
                "readOnly": true
              },
              "revision_status": {
                "$ref": "#/components/schemas/CampaignContactTargetingRevisionStatus",
                "description": "`following_latest`: the campaign uses the current revision of its segment (drafts). `pinned_current`: it was scheduled or sent with a revision that is still the current one. `pinned_outdated`: the segment changed after it was scheduled; the campaign keeps the old revision.",
                "example": "following_latest",
                "readOnly": true
              },
              "pinned_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the revisions were fixed (scheduling or sending). `null` while following the latest.",
                "example": "2026-11-27T09:00:00+00:00",
                "readOnly": true
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the recipients cannot be calculated now (a code of the filter errors, e.g. `segment_reference_deleted` or `unknown_filter_field`); then `recipient_count` is 0 and the campaign cannot be sent. `null` when they can.",
                "example": "segment_reference_deleted",
                "readOnly": true
              },
              "filter": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "match": {
                    "$ref": "#/components/schemas/ContactFilterMatch",
                    "description": "How the top-level items combine: `all` (AND) or `any` (OR).",
                    "example": "all"
                  },
                  "conditions": {
                    "type": "array",
                    "description": "Conditions and groups of the top level, in order. At least one.",
                    "example": [
                      {
                        "field": "membership.email_status",
                        "operator": "is_any_of",
                        "value": [
                          "suscriber.status.confirmed"
                        ],
                        "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                      },
                      {
                        "field": "marketing.email.opened",
                        "operator": "occurred",
                        "value": {
                          "message_scope": {
                            "kind": "latest_sent_campaigns",
                            "count": 5
                          }
                        }
                      },
                      {
                        "match": "any",
                        "conditions": [
                          {
                            "field": "contact.location_country",
                            "operator": "is_any_of",
                            "value": [
                              "ES",
                              "PT"
                            ]
                          },
                          {
                            "field": "membership.groups",
                            "operator": "contains_any",
                            "value": [
                              "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                            ],
                            "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                          }
                        ]
                      }
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Condition: `id` of a field of `list_contact_filter_fields`. Leave it out in a group.",
                          "example": "membership.email_status"
                        },
                        "operator": {
                          "type": "string",
                          "description": "Condition: one of the field's `operators[].id`.",
                          "example": "is_any_of"
                        },
                        "value": {
                          "description": "Condition: value for the operator, shaped as its `value_shape` says. Leave it out when the shape is `none`.",
                          "example": [
                            "suscriber.status.confirmed"
                          ]
                        },
                        "audience": {
                          "type": "string",
                          "format": "uuid",
                          "description": "Condition: UUID of the audience whose subscription is checked. Only for fields with `audience_required: true`, where it is required.",
                          "example": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                        },
                        "match": {
                          "$ref": "#/components/schemas/ContactFilterMatch",
                          "description": "Group: `all` or `any`, how its conditions combine. Leave it out in a condition.",
                          "example": "any"
                        },
                        "conditions": {
                          "type": "array",
                          "description": "Group: its conditions (at least one), each with `field`, `operator`, `value` and `audience` as above. A group cannot contain a group.",
                          "example": [
                            {
                              "field": "contact.location_country",
                              "operator": "is_any_of",
                              "value": [
                                "ES",
                                "PT"
                              ]
                            },
                            {
                              "field": "membership.groups",
                              "operator": "contains_any",
                              "value": [
                                "c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
                              ],
                              "audience": "0df14405-90ff-4287-b3e4-ef088901ee6f"
                            }
                          ],
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "required": [
                  "match",
                  "conditions"
                ],
                "description": "The campaign's own conditions, in the shape of `filter` of `create_contact_segment`. `null` for `kind: segment` or if the user lacks `contacts.read`.",
                "example": {
                  "match": "all",
                  "conditions": [
                    {
                      "field": "contact.location_country",
                      "operator": "is_any_of",
                      "value": [
                        "ES"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "SmsCampaignConfigResource-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "track_clicks": {
            "description": "Whether clicks on the links in the message are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignConfigResource-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "track_clicks": {
            "description": "Whether clicks on the links in the message are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignConfigResource-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_clicks": {
            "description": "Record clicks on the links in the message.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links so that orders from your store can be attributed to this campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links in the message. Requires `google_analytics_tag`.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignConfigResource.jsonld-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "track_clicks": {
            "description": "Record clicks on the links in the message.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links so that orders from your store can be attributed to this campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links in the message. Requires `google_analytics_tag`.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignConfigResource.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "track_clicks": {
            "description": "Whether clicks on the links in the message are recorded.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Whether the links are marked so that store orders can be attributed to the campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Whether a Google Analytics campaign tag is added to the links.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignConfigResource.jsonld-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "track_clicks": {
            "description": "Record clicks on the links in the message.",
            "default": true,
            "example": true,
            "type": "boolean"
          },
          "track_ecommerce": {
            "description": "Mark the links so that orders from your store can be attributed to this campaign.",
            "type": "boolean",
            "example": false
          },
          "track_google_analytics": {
            "description": "Add a Google Analytics campaign tag to the links in the message. Requires `google_analytics_tag`.",
            "type": "boolean",
            "example": false
          },
          "google_analytics_tag": {
            "description": "Google Analytics campaign tag added to the links when `track_google_analytics` is true.",
            "example": "black_friday_sms",
            "type": "string"
          }
        }
      },
      "SmsCampaignStatsResource-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Total SMS sent",
            "type": "integer"
          },
          "delivered": {
            "description": "SMS delivered successfully",
            "type": "integer"
          },
          "failed": {
            "description": "SMS delivery failures",
            "type": "integer"
          },
          "failed_rate": {
            "description": "Failure rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "unsubscribed": {
            "description": "SMS unsubscriptions",
            "type": "integer"
          },
          "replies": {
            "description": "SMS replies received",
            "type": "integer"
          },
          "credits_consumed": {
            "description": "SMS credits consumed",
            "type": "integer"
          },
          "credits_reserved": {
            "description": "SMS credits reserved",
            "type": "integer"
          },
          "delivery_rate": {
            "description": "Delivery rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "clicked": {
            "description": "Total clicks on SMS links",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "to_send": {
            "description": "Total SMS to send",
            "type": "integer"
          }
        }
      },
      "SmsCampaignStatsResource-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "sent": {
            "description": "Total SMS sent",
            "type": "integer"
          },
          "delivered": {
            "description": "SMS delivered successfully",
            "type": "integer"
          },
          "failed": {
            "description": "SMS delivery failures",
            "type": "integer"
          },
          "failed_rate": {
            "description": "Failure rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "unsubscribed": {
            "description": "SMS unsubscriptions",
            "type": "integer"
          },
          "replies": {
            "description": "SMS replies received",
            "type": "integer"
          },
          "credits_consumed": {
            "description": "SMS credits consumed",
            "type": "integer"
          },
          "credits_reserved": {
            "description": "SMS credits reserved",
            "type": "integer"
          },
          "delivery_rate": {
            "description": "Delivery rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "clicked": {
            "description": "Total clicks on SMS links",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "to_send": {
            "description": "Total SMS to send",
            "type": "integer"
          }
        }
      },
      "SmsCampaignStatsResource.jsonld-campaign.read": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Total SMS sent",
            "type": "integer"
          },
          "delivered": {
            "description": "SMS delivered successfully",
            "type": "integer"
          },
          "failed": {
            "description": "SMS delivery failures",
            "type": "integer"
          },
          "failed_rate": {
            "description": "Failure rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "unsubscribed": {
            "description": "SMS unsubscriptions",
            "type": "integer"
          },
          "replies": {
            "description": "SMS replies received",
            "type": "integer"
          },
          "credits_consumed": {
            "description": "SMS credits consumed",
            "type": "integer"
          },
          "credits_reserved": {
            "description": "SMS credits reserved",
            "type": "integer"
          },
          "delivery_rate": {
            "description": "Delivery rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "clicked": {
            "description": "Total clicks on SMS links",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "to_send": {
            "description": "Total SMS to send",
            "type": "integer"
          }
        }
      },
      "SmsCampaignStatsResource.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "SMS campaign response. SMS campaigns are exposed under /sms_campaigns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "sent": {
            "description": "Total SMS sent",
            "type": "integer"
          },
          "delivered": {
            "description": "SMS delivered successfully",
            "type": "integer"
          },
          "failed": {
            "description": "SMS delivery failures",
            "type": "integer"
          },
          "failed_rate": {
            "description": "Failure rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "unsubscribed": {
            "description": "SMS unsubscriptions",
            "type": "integer"
          },
          "replies": {
            "description": "SMS replies received",
            "type": "integer"
          },
          "credits_consumed": {
            "description": "SMS credits consumed",
            "type": "integer"
          },
          "credits_reserved": {
            "description": "SMS credits reserved",
            "type": "integer"
          },
          "delivery_rate": {
            "description": "Delivery rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "clicked": {
            "description": "Total clicks on SMS links",
            "type": "integer"
          },
          "click_rate": {
            "description": "Click rate (0-100)",
            "type": "number",
            "format": "float"
          },
          "to_send": {
            "description": "Total SMS to send",
            "type": "integer"
          }
        }
      },
      "SmsConfigResource-campaign.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "message": {
            "description": "Text of the SMS.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsConfigResource-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "message": {
            "description": "Text of the SMS.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsConfigResource-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "message": {
            "description": "Text of the SMS. It can include personalization tags such as `{{ text.list.suscriber.firstname }}`.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from: `/sms_senders/{id}` (see `list_sms_senders`). It must be active.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsConfigResource.jsonld-campaign.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "message": {
            "description": "Text of the SMS. It can include personalization tags such as `{{ text.list.suscriber.firstname }}`.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from: `/sms_senders/{id}` (see `list_sms_senders`). It must be active.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsConfigResource.jsonld-campaign.read_campaign.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "message": {
            "description": "Text of the SMS.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsConfigResource.jsonld-campaign.write.sms": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "message",
          "sms_sender"
        ],
        "properties": {
          "message": {
            "description": "Text of the SMS. It can include personalization tags such as `{{ text.list.suscriber.firstname }}`.",
            "example": "Hi {{ text.list.suscriber.firstname }}, our Black Friday offers start now.",
            "type": "string"
          },
          "sms_sender": {
            "description": "IRI of the SMS sender the message goes out from: `/sms_senders/{id}` (see `list_sms_senders`). It must be active.",
            "example": "/sms_senders/1",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "SmsSender-sms_sender.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "integer",
            "description": "Resource identifier"
          },
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Internal sender name",
            "example": "Transactional messages"
          },
          "alphanumeric_id": {
            "minLength": 3,
            "maxLength": 11,
            "pattern": "^((?![0-9]+$)[a-zA-Z0-9]{3,11})$",
            "type": "string",
            "description": "Alphanumeric sender ID shown as the sender of SMS messages. Must be 3-11 alphanumeric characters and cannot be only numbers.",
            "example": "COMPANY"
          },
          "status": {
            "type": "string",
            "description": "SMS sender validation status",
            "enum": [
              "pending_validation",
              "pending_profile",
              "active",
              "rejected",
              "suspended"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "name",
          "alphanumeric_id"
        ]
      },
      "SmsSender-sms_sender.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "alphanumeric_id"
        ],
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Internal sender name",
            "example": "Transactional messages"
          },
          "alphanumeric_id": {
            "minLength": 3,
            "maxLength": 11,
            "pattern": "^((?![0-9]+$)[a-zA-Z0-9]{3,11})$",
            "type": "string",
            "description": "Alphanumeric sender ID shown as the sender of SMS messages. Must be 3-11 alphanumeric characters and cannot be only numbers.",
            "example": "COMPANY"
          }
        }
      },
      "SmsSender.jsonld-sms_sender.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "integer",
            "description": "Resource identifier"
          },
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Internal sender name",
            "example": "Transactional messages"
          },
          "alphanumeric_id": {
            "minLength": 3,
            "maxLength": 11,
            "pattern": "^((?![0-9]+$)[a-zA-Z0-9]{3,11})$",
            "type": "string",
            "description": "Alphanumeric sender ID shown as the sender of SMS messages. Must be 3-11 alphanumeric characters and cannot be only numbers.",
            "example": "COMPANY"
          },
          "status": {
            "type": "string",
            "description": "SMS sender validation status",
            "enum": [
              "pending_validation",
              "pending_profile",
              "active",
              "rejected",
              "suspended"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "name",
          "alphanumeric_id"
        ]
      },
      "SmsSender.jsonld-sms_sender.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "alphanumeric_id"
        ],
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Internal sender name",
            "example": "Transactional messages"
          },
          "alphanumeric_id": {
            "minLength": 3,
            "maxLength": 11,
            "pattern": "^((?![0-9]+$)[a-zA-Z0-9]{3,11})$",
            "type": "string",
            "description": "Alphanumeric sender ID shown as the sender of SMS messages. Must be 3-11 alphanumeric characters and cannot be only numbers.",
            "example": "COMPANY"
          }
        }
      },
      "SocialLinkDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          }
        }
      },
      "SocialLinkDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          },
          "icon_url": {
            "type": "string",
            "format": "uri",
            "description": "Dark icon URL",
            "example": "https://app.easymailing.com/build/default/files/img/social-icons/instagram.png"
          },
          "icon_url_white": {
            "type": "string",
            "format": "uri",
            "description": "White icon URL",
            "example": "https://app.easymailing.com/build/default/files/img/social-icons/instagram_white.png"
          }
        }
      },
      "SocialLinkDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          }
        }
      },
      "SocialLinkDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          }
        }
      },
      "SocialLinkDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          },
          "icon_url": {
            "type": "string",
            "format": "uri",
            "description": "Dark icon URL",
            "example": "https://app.easymailing.com/build/default/files/img/social-icons/instagram.png"
          },
          "icon_url_white": {
            "type": "string",
            "format": "uri",
            "description": "White icon URL",
            "example": "https://app.easymailing.com/build/default/files/img/social-icons/instagram_white.png"
          }
        }
      },
      "SocialLinkDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "key",
          "title",
          "url"
        ],
        "properties": {
          "key": {
            "enum": [
              "facebook",
              "instagram",
              "x",
              "linkedin",
              "youtube",
              "tiktok",
              "pinterest",
              "whatsapp",
              "telegram",
              "snapchat",
              "spotify",
              "soundcloud",
              "medium",
              "blogger",
              "vimeo",
              "tripadvisor",
              "tumblr"
            ],
            "type": [
              "string",
              "null"
            ],
            "description": "Social network key",
            "example": "instagram",
            "$ref": "#/components/schemas/SocialLink"
          },
          "title": {
            "maxLength": 50,
            "type": "string",
            "description": "Display title",
            "example": "Instagram"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Profile URL",
            "example": "https://instagram.com/mycompany"
          }
        }
      },
      "Store-store.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "name",
          "domain",
          "locale",
          "timezone",
          "audience"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the store. It cannot be changed later and it is the `storeResourceId` of all the nested paths.",
            "example": "acme-shop"
          },
          "name": {
            "type": "string",
            "description": "Name of the store.",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Web address of the store.",
            "example": "https://shop.acme.example.com"
          },
          "platform": {
            "type": "string",
            "description": "Platform the store runs on, as free text.",
            "example": "WooCommerce"
          },
          "locale": {
            "type": "string",
            "description": "Language of the store, as a locale code.",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Time zone of the store, as an IANA name.",
            "example": "Europe/Madrid"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the store is connected to. Customers of the store are subscribed to it.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65",
            "description": "IRI of a group of the audience. Every customer of the store is added to it."
          }
        }
      },
      "Store-store.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "name",
          "domain",
          "locale",
          "timezone",
          "audience"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the store",
            "example": "id"
          },
          "name": {
            "type": "string",
            "description": "The name of the store",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The url of the store",
            "example": "https://acme.com"
          },
          "platform": {
            "type": "string",
            "description": "The platform of the store",
            "example": "Woocommerce"
          },
          "locale": {
            "type": "string",
            "description": "The locale of the store",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience associated to the store",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Group associated to the store"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Store-store.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "domain",
          "locale",
          "timezone"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the store.",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Web address of the store.",
            "example": "https://shop.acme.example.com"
          },
          "platform": {
            "type": "string",
            "description": "Platform the store runs on, as free text.",
            "example": "WooCommerce"
          },
          "locale": {
            "type": "string",
            "description": "Language of the store, as a locale code.",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Time zone of the store, as an IANA name.",
            "example": "Europe/Madrid"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65",
            "description": "IRI of a group of the audience. Every customer of the store is added to it. Omit it to keep the current group; send null to remove it."
          }
        }
      },
      "Store.jsonld-store.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "name",
          "domain",
          "locale",
          "timezone",
          "audience"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the store. It cannot be changed later and it is the `storeResourceId` of all the nested paths.",
            "example": "acme-shop"
          },
          "name": {
            "type": "string",
            "description": "Name of the store.",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Web address of the store.",
            "example": "https://shop.acme.example.com"
          },
          "platform": {
            "type": "string",
            "description": "Platform the store runs on, as free text.",
            "example": "WooCommerce"
          },
          "locale": {
            "type": "string",
            "description": "Language of the store, as a locale code.",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Time zone of the store, as an IANA name.",
            "example": "Europe/Madrid"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience the store is connected to. Customers of the store are subscribed to it.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65",
            "description": "IRI of a group of the audience. Every customer of the store is added to it."
          }
        }
      },
      "Store.jsonld-store.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "name",
          "domain",
          "locale",
          "timezone",
          "audience"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the store",
            "example": "id"
          },
          "name": {
            "type": "string",
            "description": "The name of the store",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The url of the store",
            "example": "https://acme.com"
          },
          "platform": {
            "type": "string",
            "description": "The platform of the store",
            "example": "Woocommerce"
          },
          "locale": {
            "type": "string",
            "description": "The locale of the store",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone",
            "example": "Europe/Madrid"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience associated to the store",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Group associated to the store"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Store.jsonld-store.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "domain",
          "locale",
          "timezone"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the store.",
            "example": "Acme shop"
          },
          "domain": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Web address of the store.",
            "example": "https://shop.acme.example.com"
          },
          "platform": {
            "type": "string",
            "description": "Platform the store runs on, as free text.",
            "example": "WooCommerce"
          },
          "locale": {
            "type": "string",
            "description": "Language of the store, as a locale code.",
            "example": "es"
          },
          "timezone": {
            "type": "string",
            "description": "Time zone of the store, as an IANA name.",
            "example": "Europe/Madrid"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65",
            "description": "IRI of a group of the audience. Every customer of the store is added to it. Omit it to keep the current group; send null to remove it."
          }
        }
      },
      "SubjectVariantInput-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "subject"
        ],
        "properties": {
          "subject": {
            "maxLength": 150,
            "description": "Subject line of this variant (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "maxLength": 150,
            "description": "Preview text of this variant (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "SubjectVariantInput.jsonld-campaign.write.test_ab_subject": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "subject"
        ],
        "properties": {
          "subject": {
            "maxLength": 150,
            "description": "Subject line of this variant (max 150 characters). Required.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "maxLength": 150,
            "description": "Preview text of this variant (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "SubscriptionForm-subscription_form.list": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the form.",
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience that receives the people who sign up. Set when the form is created and never changes.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire. Never changes after creation.",
            "example": "embedded",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "What the form collects: `email`, `sms` or both. Never changes after creation.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet (publishing generates it from its template when it can); `form.status.unpublished` has a design but has never been published; `form.status.published` is live; `form.status.paused` was published and is taken offline until it is resumed.",
            "example": "form.status.published",
            "readOnly": true
          },
          "generation": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`current` forms are created and edited in the Customer App and managed with the `subscription_form` operations. `classic` forms belong to the older engine: they are managed with the operations under `/audiences/{audienceUuid}/suscription_forms` and the Customer App only shows them until they are converted.",
            "example": "current",
            "readOnly": true
          },
          "converted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a classic form was converted with `convert_subscription_form`. `null` for forms that were never converted.",
            "example": "2026-10-20T09:00:00+02:00",
            "readOnly": true
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of memberships created through this form: people who joined the audience by signing up here, each counted once. Someone who was already in the audience before filling it in is not counted.",
            "example": 128,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was created.",
            "example": "2026-11-02T09:15:00+01:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was last changed.",
            "example": "2026-11-09T17:40:00+01:00",
            "readOnly": true
          }
        }
      },
      "SubscriptionForm-subscription_form.read": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the form.",
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience that receives the people who sign up. Set when the form is created and never changes.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire. Never changes after creation.",
            "example": "embedded",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "What the form collects: `email`, `sms` or both. Never changes after creation.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet (publishing generates it from its template when it can); `form.status.unpublished` has a design but has never been published; `form.status.published` is live; `form.status.paused` was published and is taken offline until it is resumed.",
            "example": "form.status.published",
            "readOnly": true
          },
          "generation": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`current` forms are created and edited in the Customer App and managed with the `subscription_form` operations. `classic` forms belong to the older engine: they are managed with the operations under `/audiences/{audienceUuid}/suscription_forms` and the Customer App only shows them until they are converted.",
            "example": "current",
            "readOnly": true
          },
          "converted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a classic form was converted with `convert_subscription_form`. `null` for forms that were never converted.",
            "example": "2026-10-20T09:00:00+02:00",
            "readOnly": true
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of memberships created through this form: people who joined the audience by signing up here, each counted once. Someone who was already in the audience before filling it in is not counted.",
            "example": 128,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was created.",
            "example": "2026-11-02T09:15:00+01:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was last changed.",
            "example": "2026-11-09T17:40:00+01:00",
            "readOnly": true
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code.",
            "example": "en"
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "`true` sends a confirmation email and subscribes the person only after they click it. Always `true` when the account requires double opt-in.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "`true` asks for confirmation by SMS before subscribing the phone. Always `true` when the account requires it.",
            "example": false
          },
          "consent_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormConsentMode",
            "description": "How the consent purposes shown in the form are required: `all_required` means the visitor must accept every purpose, `one_required` at least one. It matters when the audience has GDPR enabled.",
            "example": "all_required"
          },
          "purposes": {
            "type": "array",
            "description": "Consent purposes shown in the form, as `{uuid, name}`.",
            "example": [
              {
                "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                "name": "Marketing emails"
              }
            ],
            "items": {
              "type": "object"
            }
          },
          "available_purposes": {
            "type": "array",
            "description": "Purposes the form could show: the purposes enabled in the audience that cover a channel of the form. A person chooses which of them the form shows, in the Customer App.",
            "example": [
              {
                "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                "name": "Marketing emails"
              }
            ],
            "items": {
              "type": "object"
            }
          },
          "groups": {
            "type": "array",
            "description": "IRIs of the groups of the audience that every person who signs up is added to. Read their names with `list_audience_groups`.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "welcome_email_enabled": {
            "type": "boolean",
            "description": "`true` sends the welcome email once the subscription is complete.",
            "example": true
          },
          "crm_data_policy": {
            "type": "object",
            "description": "What the form does with the data of a contact and of a company that already exist in the CRM. `contact` and `company` each take `fill_empty` (write an answer only where the record has no value), `preserve` (never write an existing record) or `update` (write every non-empty answer). `company` only matters when the form asks for company data.",
            "example": {
              "contact": "fill_empty",
              "company": "fill_empty"
            },
            "properties": {
              "contact": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for contacts.",
                "example": "fill_empty"
              },
              "company": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for companies.",
                "example": "fill_empty"
              }
            },
            "required": [
              "contact",
              "company"
            ]
          },
          "popup_behavior": {
            "type": [
              "object",
              "null"
            ],
            "description": "Triggers, frequency, schedule, URLs and devices of a popup form. `null` for embedded forms.",
            "example": {
              "on_load_time_enabled": true,
              "on_load_time_seconds": 8,
              "on_load_scroll_enabled": false,
              "on_load_scroll_percentage": 50,
              "on_exit": true,
              "frequency_days": 30,
              "schedule_enabled": false,
              "schedule_start_at": null,
              "schedule_end_at": null,
              "include_urls": [],
              "exclude_urls": [],
              "hide_on_desktop": false,
              "hide_on_tablet": false,
              "hide_on_mobile": false
            },
            "properties": {
              "on_load_time_enabled": {
                "type": "boolean",
                "description": "Show the popup after a delay.",
                "example": true
              },
              "on_load_time_seconds": {
                "type": "integer",
                "description": "Delay in seconds, 0 or more.",
                "example": 5,
                "minimum": 0
              },
              "on_load_scroll_enabled": {
                "type": "boolean",
                "description": "Show the popup after the visitor scrolls.",
                "example": false
              },
              "on_load_scroll_percentage": {
                "$ref": "#/components/schemas/SubscriptionFormPopupScrollPercentage",
                "description": "Scroll depth that fires the popup: 25, 50, 75 or 100.",
                "example": 50
              },
              "on_exit": {
                "type": "boolean",
                "description": "Show the popup when the visitor is about to leave the page.",
                "example": true
              },
              "frequency_days": {
                "$ref": "#/components/schemas/SubscriptionFormPopupFrequencyDays",
                "description": "Days before the same visitor sees the popup again: 1, 7, 15, 30, 60, 90, 180 or 365.",
                "example": 30
              },
              "schedule_enabled": {
                "type": "boolean",
                "description": "Limit the popup to a date range. When `false` the dates are ignored and saved as `null`.",
                "example": false
              },
              "schedule_start_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Day the popup starts being shown, as `YYYY-MM-DD`. Used only when `schedule_enabled` is `true`.",
                "example": "2026-11-20"
              },
              "schedule_end_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Day the popup stops being shown, as `YYYY-MM-DD`. It must be after `schedule_start_at`.",
                "example": "2026-11-30"
              },
              "include_urls": {
                "type": "array",
                "description": "Show the popup only on these URLs. Empty means everywhere.",
                "example": [
                  "https://acme.com/blog"
                ],
                "items": {
                  "type": "string"
                }
              },
              "exclude_urls": {
                "type": "array",
                "description": "Never show the popup on these URLs.",
                "example": [],
                "items": {
                  "type": "string"
                }
              },
              "hide_on_desktop": {
                "type": "boolean",
                "description": "Hide the popup on desktop computers.",
                "example": false
              },
              "hide_on_tablet": {
                "type": "boolean",
                "description": "Hide the popup on tablets.",
                "example": false
              },
              "hide_on_mobile": {
                "type": "boolean",
                "description": "Hide the popup on phones.",
                "example": false
              }
            }
          },
          "pending_changes": {
            "type": "boolean",
            "description": "`true` when the form has been changed since it was last published, so visitors still see the older version until `publish_subscription_form` is called. `false` for a form that has never been published or has nothing new to publish.",
            "example": false,
            "readOnly": true
          },
          "share_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Public link to a page hosted by Easymailing that shows the form. `null` until the form is published for the first time. From then on the link is always given, but it only works while the form is published and not paused.",
            "example": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7",
            "readOnly": true
          }
        }
      },
      "SubscriptionForm.SubscriptionFormCreateInput": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "required": [
          "title",
          "audience",
          "type",
          "channels"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "description": "IRI of the audience that receives the people who sign up. Get it from `list_audiences`. Cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "format": "iri-reference"
          },
          "type": {
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire (needs a plan that includes popups). Cannot be changed later.",
            "example": "embedded"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What the form collects: `email`, `sms` or both. Cannot be changed later.",
            "example": [
              "email"
            ]
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "`true` sends a confirmation email and subscribes the person only after they click it. Forced to `true` when the account requires it. Default `false`.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "`true` asks for confirmation by SMS before subscribing the phone. Forced to `true` when the account requires it. Default `false`.",
            "example": false
          },
          "locale": {
            "type": "string",
            "description": "Language of the form texts. Optional when the account has a single language; required when it has several.",
            "example": "en"
          },
          "template_id": {
            "type": "integer",
            "description": "Numeric `id` of a template from `list_subscription_form_templates`. If you omit it, the first template that list would return for this audience, type and channels is used.",
            "example": 12,
            "minimum": 1
          }
        }
      },
      "SubscriptionForm.SubscriptionFormCreateInput.jsonld": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "required": [
          "title",
          "audience",
          "type",
          "channels"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "description": "IRI of the audience that receives the people who sign up. Get it from `list_audiences`. Cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "format": "iri-reference"
          },
          "type": {
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire (needs a plan that includes popups). Cannot be changed later.",
            "example": "embedded"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What the form collects: `email`, `sms` or both. Cannot be changed later.",
            "example": [
              "email"
            ]
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "`true` sends a confirmation email and subscribes the person only after they click it. Forced to `true` when the account requires it. Default `false`.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "`true` asks for confirmation by SMS before subscribing the phone. Forced to `true` when the account requires it. Default `false`.",
            "example": false
          },
          "locale": {
            "type": "string",
            "description": "Language of the form texts. Optional when the account has a single language; required when it has several.",
            "example": "en"
          },
          "template_id": {
            "type": "integer",
            "description": "Numeric `id` of a template from `list_subscription_form_templates`. If you omit it, the first template that list would return for this audience, type and channels is used.",
            "example": 12,
            "minimum": 1
          }
        }
      },
      "SubscriptionForm.SubscriptionFormDuplicateInput": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the copy (255 characters at most). If omitted, the name of the original with a copy marker.",
            "example": "Newsletter sign-up (Black Friday)"
          }
        }
      },
      "SubscriptionForm.SubscriptionFormDuplicateInput.jsonld": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the copy (255 characters at most). If omitted, the name of the original with a copy marker.",
            "example": "Newsletter sign-up (Black Friday)"
          }
        }
      },
      "SubscriptionForm.SubscriptionFormPopupBehaviorInput": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "on_load_time_enabled": {
            "type": "boolean",
            "description": "Show the popup after a delay.",
            "example": true
          },
          "on_load_time_seconds": {
            "type": "integer",
            "description": "Delay in seconds, 0 or more.",
            "example": 5,
            "minimum": 0
          },
          "on_load_scroll_enabled": {
            "type": "boolean",
            "description": "Show the popup after the visitor scrolls.",
            "example": false
          },
          "on_load_scroll_percentage": {
            "$ref": "#/components/schemas/SubscriptionFormPopupScrollPercentage",
            "description": "Scroll depth that fires the popup: 25, 50, 75 or 100.",
            "example": 50
          },
          "on_exit": {
            "type": "boolean",
            "description": "Show the popup when the visitor is about to leave the page.",
            "example": true
          },
          "frequency_days": {
            "$ref": "#/components/schemas/SubscriptionFormPopupFrequencyDays",
            "description": "Days before the same visitor sees the popup again: 1, 7, 15, 30, 60, 90, 180 or 365.",
            "example": 30
          },
          "schedule_enabled": {
            "type": "boolean",
            "description": "Limit the popup to a date range. When `false` the dates are ignored and saved as `null`.",
            "example": false
          },
          "schedule_start_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Day the popup starts being shown, as `YYYY-MM-DD`. Used only when `schedule_enabled` is `true`.",
            "example": "2026-11-20",
            "format": "date"
          },
          "schedule_end_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Day the popup stops being shown, as `YYYY-MM-DD`. It must be after `schedule_start_at`.",
            "example": "2026-11-30",
            "format": "date"
          },
          "include_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Show the popup only on these URLs. Empty means everywhere.",
            "example": [
              "https://acme.com/blog"
            ]
          },
          "exclude_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Never show the popup on these URLs.",
            "example": []
          },
          "hide_on_desktop": {
            "type": "boolean",
            "description": "Hide the popup on desktop computers.",
            "example": false
          },
          "hide_on_tablet": {
            "type": "boolean",
            "description": "Hide the popup on tablets.",
            "example": false
          },
          "hide_on_mobile": {
            "type": "boolean",
            "description": "Hide the popup on phones.",
            "example": false
          }
        }
      },
      "SubscriptionForm.SubscriptionFormPopupBehaviorInput.jsonld": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "on_load_time_enabled": {
            "type": "boolean",
            "description": "Show the popup after a delay.",
            "example": true
          },
          "on_load_time_seconds": {
            "type": "integer",
            "description": "Delay in seconds, 0 or more.",
            "example": 5,
            "minimum": 0
          },
          "on_load_scroll_enabled": {
            "type": "boolean",
            "description": "Show the popup after the visitor scrolls.",
            "example": false
          },
          "on_load_scroll_percentage": {
            "$ref": "#/components/schemas/SubscriptionFormPopupScrollPercentage",
            "description": "Scroll depth that fires the popup: 25, 50, 75 or 100.",
            "example": 50
          },
          "on_exit": {
            "type": "boolean",
            "description": "Show the popup when the visitor is about to leave the page.",
            "example": true
          },
          "frequency_days": {
            "$ref": "#/components/schemas/SubscriptionFormPopupFrequencyDays",
            "description": "Days before the same visitor sees the popup again: 1, 7, 15, 30, 60, 90, 180 or 365.",
            "example": 30
          },
          "schedule_enabled": {
            "type": "boolean",
            "description": "Limit the popup to a date range. When `false` the dates are ignored and saved as `null`.",
            "example": false
          },
          "schedule_start_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Day the popup starts being shown, as `YYYY-MM-DD`. Used only when `schedule_enabled` is `true`.",
            "example": "2026-11-20",
            "format": "date"
          },
          "schedule_end_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Day the popup stops being shown, as `YYYY-MM-DD`. It must be after `schedule_start_at`.",
            "example": "2026-11-30",
            "format": "date"
          },
          "include_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Show the popup only on these URLs. Empty means everywhere.",
            "example": [
              "https://acme.com/blog"
            ]
          },
          "exclude_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Never show the popup on these URLs.",
            "example": []
          },
          "hide_on_desktop": {
            "type": "boolean",
            "description": "Hide the popup on desktop computers.",
            "example": false
          },
          "hide_on_tablet": {
            "type": "boolean",
            "description": "Hide the popup on tablets.",
            "example": false
          },
          "hide_on_mobile": {
            "type": "boolean",
            "description": "Hide the popup on phones.",
            "example": false
          }
        }
      },
      "SubscriptionForm.SubscriptionFormUpdateInput": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Internal name (255 characters at most, not empty). Left unchanged if omitted.",
            "example": "Newsletter sign-up (footer)"
          },
          "locale": {
            "type": "string",
            "description": "Language of the form texts, one of the languages of the account. Left unchanged if omitted.",
            "example": "es"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of groups of the form's audience that every person who signs up is added to. Replaces the whole list; `[]` removes all. Left unchanged if omitted. Get them from `list_audience_groups`.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
            ]
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "Require email confirmation before subscribing. Left unchanged if omitted; cannot be turned off where the account requires it.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "Require SMS confirmation before subscribing the phone. Left unchanged if omitted; cannot be turned off where the account requires it.",
            "example": false
          },
          "consent_mode": {
            "$ref": "#/components/schemas/SubscriptionFormConsentMode",
            "description": "`all_required`: the visitor must accept every purpose shown; `one_required`: at least one. Left unchanged if omitted.",
            "example": "all_required"
          },
          "welcome_email_enabled": {
            "type": "boolean",
            "description": "`true` sends the welcome email once the subscription is complete. Left unchanged if omitted.",
            "example": true
          },
          "crm_data_policy": {
            "type": "object",
            "description": "What to do with the data of a contact and of a company that already exist. Send both `contact` and `company`. Left unchanged if omitted.",
            "example": {
              "contact": "fill_empty",
              "company": "fill_empty"
            },
            "properties": {
              "contact": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for contacts: `fill_empty`, `preserve` or `update`.",
                "example": "fill_empty"
              },
              "company": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for companies: `fill_empty`, `preserve` or `update`.",
                "example": "fill_empty"
              }
            },
            "required": [
              "contact",
              "company"
            ]
          }
        }
      },
      "SubscriptionForm.SubscriptionFormUpdateInput.jsonld": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Internal name (255 characters at most, not empty). Left unchanged if omitted.",
            "example": "Newsletter sign-up (footer)"
          },
          "locale": {
            "type": "string",
            "description": "Language of the form texts, one of the languages of the account. Left unchanged if omitted.",
            "example": "es"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "IRIs of groups of the form's audience that every person who signs up is added to. Replaces the whole list; `[]` removes all. Left unchanged if omitted. Get them from `list_audience_groups`.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
            ]
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "Require email confirmation before subscribing. Left unchanged if omitted; cannot be turned off where the account requires it.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "Require SMS confirmation before subscribing the phone. Left unchanged if omitted; cannot be turned off where the account requires it.",
            "example": false
          },
          "consent_mode": {
            "$ref": "#/components/schemas/SubscriptionFormConsentMode",
            "description": "`all_required`: the visitor must accept every purpose shown; `one_required`: at least one. Left unchanged if omitted.",
            "example": "all_required"
          },
          "welcome_email_enabled": {
            "type": "boolean",
            "description": "`true` sends the welcome email once the subscription is complete. Left unchanged if omitted.",
            "example": true
          },
          "crm_data_policy": {
            "type": "object",
            "description": "What to do with the data of a contact and of a company that already exist. Send both `contact` and `company`. Left unchanged if omitted.",
            "example": {
              "contact": "fill_empty",
              "company": "fill_empty"
            },
            "properties": {
              "contact": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for contacts: `fill_empty`, `preserve` or `update`.",
                "example": "fill_empty"
              },
              "company": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for companies: `fill_empty`, `preserve` or `update`.",
                "example": "fill_empty"
              }
            },
            "required": [
              "contact",
              "company"
            ]
          }
        }
      },
      "SubscriptionForm.jsonld-subscription_form.list": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the form.",
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience that receives the people who sign up. Set when the form is created and never changes.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire. Never changes after creation.",
            "example": "embedded",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "What the form collects: `email`, `sms` or both. Never changes after creation.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet (publishing generates it from its template when it can); `form.status.unpublished` has a design but has never been published; `form.status.published` is live; `form.status.paused` was published and is taken offline until it is resumed.",
            "example": "form.status.published",
            "readOnly": true
          },
          "generation": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`current` forms are created and edited in the Customer App and managed with the `subscription_form` operations. `classic` forms belong to the older engine: they are managed with the operations under `/audiences/{audienceUuid}/suscription_forms` and the Customer App only shows them until they are converted.",
            "example": "current",
            "readOnly": true
          },
          "converted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a classic form was converted with `convert_subscription_form`. `null` for forms that were never converted.",
            "example": "2026-10-20T09:00:00+02:00",
            "readOnly": true
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of memberships created through this form: people who joined the audience by signing up here, each counted once. Someone who was already in the audience before filling it in is not counted.",
            "example": 128,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was created.",
            "example": "2026-11-02T09:15:00+01:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was last changed.",
            "example": "2026-11-09T17:40:00+01:00",
            "readOnly": true
          }
        }
      },
      "SubscriptionForm.jsonld-subscription_form.read": {
        "type": "object",
        "description": "Subscription forms of the Customer App (\"current generation\") in the public API (plan 4, Task 4a: the two reads; Task 5a: create, update and popup behavior; Task 5b: duplicate, convert and delete).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\n\nPublished since the unveil (branch `feature/api-formularios-destape`, after the QA of MKT-010): the operations were\nbuilt hidden with `deprecated: true` (decision D4) and now appear in the specification, the snapshot and the MCP.\n`SubscriptionFormsApprovedContractTest` compares them with the approved contract. Each operation declares the whole\nexample of its response (`DocumentationOverride::RESPONSE_EXAMPLE`): the schema is shared and its property examples\ncannot vary per operation.\n\n`subscription_form:list` is the summary every item of the list has; `subscription_form:read` adds the settings\nonly `get_subscription_form` returns.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the form.",
            "example": "3f1c7a52-8d4e-4b0a-9c61-2e5a7d9b1f08",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Internal name of the form (255 characters at most). Visitors do not see it.",
            "example": "Newsletter sign-up"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the audience that receives the people who sign up. Set when the form is created and never changes.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "readOnly": true
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType",
            "description": "`embedded` shows the form inside a page; `popup` shows it over the page when its triggers fire. Never changes after creation.",
            "example": "embedded",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "What the form collects: `email`, `sms` or both. Never changes after creation.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet (publishing generates it from its template when it can); `form.status.unpublished` has a design but has never been published; `form.status.published` is live; `form.status.paused` was published and is taken offline until it is resumed.",
            "example": "form.status.published",
            "readOnly": true
          },
          "generation": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`current` forms are created and edited in the Customer App and managed with the `subscription_form` operations. `classic` forms belong to the older engine: they are managed with the operations under `/audiences/{audienceUuid}/suscription_forms` and the Customer App only shows them until they are converted.",
            "example": "current",
            "readOnly": true
          },
          "converted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a classic form was converted with `convert_subscription_form`. `null` for forms that were never converted.",
            "example": "2026-10-20T09:00:00+02:00",
            "readOnly": true
          },
          "subscriber_count": {
            "type": "integer",
            "description": "Number of memberships created through this form: people who joined the audience by signing up here, each counted once. Someone who was already in the audience before filling it in is not counted.",
            "example": 128,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was created.",
            "example": "2026-11-02T09:15:00+01:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the form was last changed.",
            "example": "2026-11-09T17:40:00+01:00",
            "readOnly": true
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code.",
            "example": "en"
          },
          "email_double_opt_in": {
            "type": "boolean",
            "description": "`true` sends a confirmation email and subscribes the person only after they click it. Always `true` when the account requires double opt-in.",
            "example": true
          },
          "sms_double_opt_in": {
            "type": "boolean",
            "description": "`true` asks for confirmation by SMS before subscribing the phone. Always `true` when the account requires it.",
            "example": false
          },
          "consent_mode": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormConsentMode",
            "description": "How the consent purposes shown in the form are required: `all_required` means the visitor must accept every purpose, `one_required` at least one. It matters when the audience has GDPR enabled.",
            "example": "all_required"
          },
          "purposes": {
            "type": "array",
            "description": "Consent purposes shown in the form, as `{uuid, name}`.",
            "example": [
              {
                "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                "name": "Marketing emails"
              }
            ],
            "items": {
              "type": "object"
            }
          },
          "available_purposes": {
            "type": "array",
            "description": "Purposes the form could show: the purposes enabled in the audience that cover a channel of the form. A person chooses which of them the form shows, in the Customer App.",
            "example": [
              {
                "uuid": "a41c7f02-1b3d-4e5a-9f60-7c8d9e0f1a2b",
                "name": "Marketing emails"
              }
            ],
            "items": {
              "type": "object"
            }
          },
          "groups": {
            "type": "array",
            "description": "IRIs of the groups of the audience that every person who signs up is added to. Read their names with `list_audience_groups`.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e4a10-6d57-4f7b-8c0e-1a3b5c7d9e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "welcome_email_enabled": {
            "type": "boolean",
            "description": "`true` sends the welcome email once the subscription is complete.",
            "example": true
          },
          "crm_data_policy": {
            "type": "object",
            "description": "What the form does with the data of a contact and of a company that already exist in the CRM. `contact` and `company` each take `fill_empty` (write an answer only where the record has no value), `preserve` (never write an existing record) or `update` (write every non-empty answer). `company` only matters when the form asks for company data.",
            "example": {
              "contact": "fill_empty",
              "company": "fill_empty"
            },
            "properties": {
              "contact": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for contacts.",
                "example": "fill_empty"
              },
              "company": {
                "$ref": "#/components/schemas/SubscriptionFormCrmDataMode",
                "description": "Mode for companies.",
                "example": "fill_empty"
              }
            },
            "required": [
              "contact",
              "company"
            ]
          },
          "popup_behavior": {
            "type": [
              "object",
              "null"
            ],
            "description": "Triggers, frequency, schedule, URLs and devices of a popup form. `null` for embedded forms.",
            "example": {
              "on_load_time_enabled": true,
              "on_load_time_seconds": 8,
              "on_load_scroll_enabled": false,
              "on_load_scroll_percentage": 50,
              "on_exit": true,
              "frequency_days": 30,
              "schedule_enabled": false,
              "schedule_start_at": null,
              "schedule_end_at": null,
              "include_urls": [],
              "exclude_urls": [],
              "hide_on_desktop": false,
              "hide_on_tablet": false,
              "hide_on_mobile": false
            },
            "properties": {
              "on_load_time_enabled": {
                "type": "boolean",
                "description": "Show the popup after a delay.",
                "example": true
              },
              "on_load_time_seconds": {
                "type": "integer",
                "description": "Delay in seconds, 0 or more.",
                "example": 5,
                "minimum": 0
              },
              "on_load_scroll_enabled": {
                "type": "boolean",
                "description": "Show the popup after the visitor scrolls.",
                "example": false
              },
              "on_load_scroll_percentage": {
                "$ref": "#/components/schemas/SubscriptionFormPopupScrollPercentage",
                "description": "Scroll depth that fires the popup: 25, 50, 75 or 100.",
                "example": 50
              },
              "on_exit": {
                "type": "boolean",
                "description": "Show the popup when the visitor is about to leave the page.",
                "example": true
              },
              "frequency_days": {
                "$ref": "#/components/schemas/SubscriptionFormPopupFrequencyDays",
                "description": "Days before the same visitor sees the popup again: 1, 7, 15, 30, 60, 90, 180 or 365.",
                "example": 30
              },
              "schedule_enabled": {
                "type": "boolean",
                "description": "Limit the popup to a date range. When `false` the dates are ignored and saved as `null`.",
                "example": false
              },
              "schedule_start_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Day the popup starts being shown, as `YYYY-MM-DD`. Used only when `schedule_enabled` is `true`.",
                "example": "2026-11-20"
              },
              "schedule_end_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Day the popup stops being shown, as `YYYY-MM-DD`. It must be after `schedule_start_at`.",
                "example": "2026-11-30"
              },
              "include_urls": {
                "type": "array",
                "description": "Show the popup only on these URLs. Empty means everywhere.",
                "example": [
                  "https://acme.com/blog"
                ],
                "items": {
                  "type": "string"
                }
              },
              "exclude_urls": {
                "type": "array",
                "description": "Never show the popup on these URLs.",
                "example": [],
                "items": {
                  "type": "string"
                }
              },
              "hide_on_desktop": {
                "type": "boolean",
                "description": "Hide the popup on desktop computers.",
                "example": false
              },
              "hide_on_tablet": {
                "type": "boolean",
                "description": "Hide the popup on tablets.",
                "example": false
              },
              "hide_on_mobile": {
                "type": "boolean",
                "description": "Hide the popup on phones.",
                "example": false
              }
            }
          },
          "pending_changes": {
            "type": "boolean",
            "description": "`true` when the form has been changed since it was last published, so visitors still see the older version until `publish_subscription_form` is called. `false` for a form that has never been published or has nothing new to publish.",
            "example": false,
            "readOnly": true
          },
          "share_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Public link to a page hosted by Easymailing that shows the form. `null` until the form is published for the first time. From then on the link is always given, but it only works while the form is published and not paused.",
            "example": "https://acme.easymailing.cloud/app/public/f/s/CB8vQHYrr54mPUJbfpXHV7",
            "readOnly": true
          }
        }
      },
      "SubscriptionFormStatistics-subscription_form_statistics.read": {
        "type": "object",
        "description": "`get_subscription_form_statistics`: daily activity of a form of the Customer App (plan 4, Task 4b).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\nPublished since the unveil (it was built hidden, decision D4); `SubscriptionFormsApprovedContractTest` compares it\nwith the approved contract.",
        "deprecated": false,
        "properties": {
          "timezone": {
            "type": "string",
            "description": "IANA time zone used to group the days.",
            "example": "Europe/Madrid",
            "readOnly": true
          },
          "requested_range": {
            "type": "object",
            "description": "The period you asked for.",
            "example": {
              "start": "2026-10-01",
              "end": "2026-11-11"
            },
            "readOnly": true,
            "properties": {
              "start": {
                "type": "string",
                "format": "date",
                "description": "First day.",
                "example": "2026-10-01"
              },
              "end": {
                "type": "string",
                "format": "date",
                "description": "Last day.",
                "example": "2026-11-11"
              }
            },
            "required": [
              "start",
              "end"
            ]
          },
          "range": {
            "type": [
              "object",
              "null"
            ],
            "description": "Days actually counted: they start on the day a converted form was converted. `null` when the whole period is before that day.",
            "example": {
              "start": "2026-10-01",
              "end": "2026-11-11"
            },
            "readOnly": true,
            "properties": {
              "start": {
                "type": "string",
                "format": "date",
                "description": "First day counted.",
                "example": "2026-10-01"
              },
              "end": {
                "type": "string",
                "format": "date",
                "description": "Last day counted.",
                "example": "2026-11-11"
              }
            },
            "required": [
              "start",
              "end"
            ]
          },
          "channels": {
            "type": "array",
            "description": "Channels of the published version of the form. A change of channels in a draft does not count until it is published.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "totals": {
            "type": "object",
            "description": "Totals for the counted period.",
            "example": {
              "impressions": 5400,
              "submissions": 190,
              "subscribed_contacts": 128,
              "conversion_rate": 2.37
            },
            "readOnly": true,
            "properties": {
              "impressions": {
                "type": "integer",
                "description": "Times the form was shown.",
                "example": 5400
              },
              "submissions": {
                "type": "integer",
                "description": "Answers accepted from visitors.",
                "example": 190
              },
              "subscribed_contacts": {
                "type": "integer",
                "description": "Distinct contacts who completed their subscription in the period, whatever their status now.",
                "example": 128
              },
              "conversion_rate": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "`subscribed_contacts` divided by `impressions`, as a percentage with two decimals. `null` when there were no impressions.",
                "example": 2.37
              }
            },
            "required": [
              "impressions",
              "submissions",
              "subscribed_contacts",
              "conversion_rate"
            ]
          },
          "days": {
            "type": "array",
            "description": "One entry per day counted, oldest first: `date`, `impressions`, `submissions`, `email_subscriptions`, `sms_subscriptions`, `subscribed_contacts` and `conversion_rate`.",
            "example": [
              {
                "date": "2026-11-10",
                "impressions": 120,
                "submissions": 5,
                "email_subscriptions": 3,
                "sms_subscriptions": 0,
                "subscribed_contacts": 3,
                "conversion_rate": 2.5
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "SubscriptionFormStatistics.jsonld-subscription_form_statistics.read": {
        "type": "object",
        "description": "`get_subscription_form_statistics`: daily activity of a form of the Customer App (plan 4, Task 4b).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\nPublished since the unveil (it was built hidden, decision D4); `SubscriptionFormsApprovedContractTest` compares it\nwith the approved contract.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "timezone": {
            "type": "string",
            "description": "IANA time zone used to group the days.",
            "example": "Europe/Madrid",
            "readOnly": true
          },
          "requested_range": {
            "type": "object",
            "description": "The period you asked for.",
            "example": {
              "start": "2026-10-01",
              "end": "2026-11-11"
            },
            "readOnly": true,
            "properties": {
              "start": {
                "type": "string",
                "format": "date",
                "description": "First day.",
                "example": "2026-10-01"
              },
              "end": {
                "type": "string",
                "format": "date",
                "description": "Last day.",
                "example": "2026-11-11"
              }
            },
            "required": [
              "start",
              "end"
            ]
          },
          "range": {
            "type": [
              "object",
              "null"
            ],
            "description": "Days actually counted: they start on the day a converted form was converted. `null` when the whole period is before that day.",
            "example": {
              "start": "2026-10-01",
              "end": "2026-11-11"
            },
            "readOnly": true,
            "properties": {
              "start": {
                "type": "string",
                "format": "date",
                "description": "First day counted.",
                "example": "2026-10-01"
              },
              "end": {
                "type": "string",
                "format": "date",
                "description": "Last day counted.",
                "example": "2026-11-11"
              }
            },
            "required": [
              "start",
              "end"
            ]
          },
          "channels": {
            "type": "array",
            "description": "Channels of the published version of the form. A change of channels in a draft does not count until it is published.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "totals": {
            "type": "object",
            "description": "Totals for the counted period.",
            "example": {
              "impressions": 5400,
              "submissions": 190,
              "subscribed_contacts": 128,
              "conversion_rate": 2.37
            },
            "readOnly": true,
            "properties": {
              "impressions": {
                "type": "integer",
                "description": "Times the form was shown.",
                "example": 5400
              },
              "submissions": {
                "type": "integer",
                "description": "Answers accepted from visitors.",
                "example": 190
              },
              "subscribed_contacts": {
                "type": "integer",
                "description": "Distinct contacts who completed their subscription in the period, whatever their status now.",
                "example": 128
              },
              "conversion_rate": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "`subscribed_contacts` divided by `impressions`, as a percentage with two decimals. `null` when there were no impressions.",
                "example": 2.37
              }
            },
            "required": [
              "impressions",
              "submissions",
              "subscribed_contacts",
              "conversion_rate"
            ]
          },
          "days": {
            "type": "array",
            "description": "One entry per day counted, oldest first: `date`, `impressions`, `submissions`, `email_subscriptions`, `sms_subscriptions`, `subscribed_contacts` and `conversion_rate`.",
            "example": [
              {
                "date": "2026-11-10",
                "impressions": 120,
                "submissions": 5,
                "email_subscriptions": 3,
                "sms_subscriptions": 0,
                "subscribed_contacts": 3,
                "conversion_rate": 2.5
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "SubscriptionFormTemplate-subscription_form_template.read": {
        "type": "object",
        "description": "`list_subscription_form_templates`: the starting designs a new form can use (plan 4, Task 4b).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\nPublished since the unveil (it was built hidden, decision D4); `SubscriptionFormsApprovedContractTest` compares it\nwith the approved contract.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "integer",
            "description": "Numeric identifier of the template. Templates have no UUID: use this number as `template_id` in `create_subscription_form`.",
            "example": 12,
            "readOnly": true
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the template.",
            "example": "Minimal email",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "Channels the template is made for.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Picture of the template.",
            "example": "https://assets.example.com/form-templates/12.png",
            "readOnly": true
          }
        }
      },
      "SubscriptionFormTemplate.jsonld-subscription_form_template.read": {
        "type": "object",
        "description": "`list_subscription_form_templates`: the starting designs a new form can use (plan 4, Task 4b).\nThe texts are the approved contract's (`trabajo/2026-11-11-maia-customer-app/formularios-propuesta/subscription-forms.json`).\nPublished since the unveil (it was built hidden, decision D4); `SubscriptionFormsApprovedContractTest` compares it\nwith the approved contract.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "integer",
            "description": "Numeric identifier of the template. Templates have no UUID: use this number as `template_id` in `create_subscription_form`.",
            "example": 12,
            "readOnly": true
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the template.",
            "example": "Minimal email",
            "readOnly": true
          },
          "channels": {
            "type": "array",
            "description": "Channels the template is made for.",
            "example": [
              "email"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Picture of the template.",
            "example": "https://assets.example.com/form-templates/12.png",
            "readOnly": true
          }
        }
      },
      "SupportTicket-support_ticket.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9A-Z]{4}-[0-9A-Z]{4}$",
            "description": "Ticket code shown to the user in the support emails and in the support portal: use it, not `id`, when you mention the ticket to the user. `null` for tickets not handled in the support portal.",
            "example": "K7QM-3XRP"
          },
          "subject": {
            "type": "string",
            "description": "Ticket subject",
            "example": "Issue with campaign delivery"
          },
          "status": {
            "type": "string",
            "description": "Ticket status",
            "enum": [
              "new",
              "open",
              "pending",
              "hold",
              "solved",
              "closed"
            ],
            "example": "open"
          },
          "priority": {
            "type": "string",
            "description": "Ticket priority",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ],
            "example": "normal"
          },
          "type": {
            "type": "string",
            "description": "Ticket type",
            "enum": [
              "question",
              "incident",
              "problem",
              "task"
            ],
            "example": "question"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Ticket creation date"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Ticket last update date"
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportTicketCommentResource-support_ticket.read"
            }
          }
        }
      },
      "SupportTicket.SupportTicketInput": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "subject",
          "description"
        ],
        "properties": {
          "subject": {
            "minLength": 5,
            "maxLength": 150,
            "description": "Short title of the problem.",
            "type": "string",
            "example": "Campaign not sending to subscribers"
          },
          "description": {
            "minLength": 20,
            "maxLength": 5000,
            "description": "What the user was doing, what went wrong, what they already tried and any error message.",
            "type": "string",
            "example": "The user tried to send a campaign to the \"Newsletter\" audience but got the error \"Delivery failed: sender not verified\". The sender is configured and the content is complete."
          }
        }
      },
      "SupportTicket.SupportTicketInput.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "subject",
          "description"
        ],
        "properties": {
          "subject": {
            "minLength": 5,
            "maxLength": 150,
            "description": "Short title of the problem.",
            "type": "string",
            "example": "Campaign not sending to subscribers"
          },
          "description": {
            "minLength": 20,
            "maxLength": 5000,
            "description": "What the user was doing, what went wrong, what they already tried and any error message.",
            "type": "string",
            "example": "The user tried to send a campaign to the \"Newsletter\" audience but got the error \"Delivery failed: sender not verified\". The sender is configured and the content is complete."
          }
        }
      },
      "SupportTicket.jsonld-support_ticket.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9A-Z]{4}-[0-9A-Z]{4}$",
            "description": "Ticket code shown to the user in the support emails and in the support portal: use it, not `id`, when you mention the ticket to the user. `null` for tickets not handled in the support portal.",
            "example": "K7QM-3XRP"
          },
          "subject": {
            "type": "string",
            "description": "Ticket subject",
            "example": "Issue with campaign delivery"
          },
          "status": {
            "type": "string",
            "description": "Ticket status",
            "enum": [
              "new",
              "open",
              "pending",
              "hold",
              "solved",
              "closed"
            ],
            "example": "open"
          },
          "priority": {
            "type": "string",
            "description": "Ticket priority",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ],
            "example": "normal"
          },
          "type": {
            "type": "string",
            "description": "Ticket type",
            "enum": [
              "question",
              "incident",
              "problem",
              "task"
            ],
            "example": "question"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Ticket creation date"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Ticket last update date"
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportTicketCommentResource.jsonld-support_ticket.read"
            }
          }
        }
      },
      "SupportTicketCommentResource-support_ticket.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "body": {
            "type": "string",
            "description": "Comment body text"
          },
          "author_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "ID of the comment author: the Easymailing user ID for comments written by the customer, or null for comments written by the support team."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Comment creation date"
          },
          "public": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the comment is public or internal note"
          }
        }
      },
      "SupportTicketCommentResource.jsonld-support_ticket.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "body": {
            "type": "string",
            "description": "Comment body text"
          },
          "author_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "ID of the comment author: the Easymailing user ID for comments written by the customer, or null for comments written by the support team."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Comment creation date"
          },
          "public": {
            "default": true,
            "example": true,
            "type": "boolean",
            "description": "Whether the comment is public or internal note"
          }
        }
      },
      "Survey-survey.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Survey name",
            "example": "Newsletter feedback"
          },
          "type": {
            "type": "string",
            "enum": [
              "poll",
              "page"
            ],
            "description": "Survey type: `poll` (single question voted inline from the email) or `page` (public multi-question page linked from the email)"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "closed"
            ],
            "description": "Survey status. Only active surveys can be linked to campaigns; questions are immutable once the survey leaves draft."
          },
          "locale": {
            "type": "string",
            "description": "Locale of the public pages of the survey",
            "example": "es"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering"
          },
          "redirect_url": {
            "type": "string",
            "format": "uri",
            "description": "Optional URL the respondent is redirected to after answering (instead of the thank-you page)"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Survey-survey.read_survey.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Survey name",
            "example": "Newsletter feedback"
          },
          "type": {
            "type": "string",
            "enum": [
              "poll",
              "page"
            ],
            "description": "Survey type: `poll` (single question voted inline from the email) or `page` (public multi-question page linked from the email)"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "closed"
            ],
            "description": "Survey status. Only active surveys can be linked to campaigns; questions are immutable once the survey leaves draft."
          },
          "locale": {
            "type": "string",
            "description": "Locale of the public pages of the survey",
            "example": "es"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering"
          },
          "redirect_url": {
            "type": "string",
            "format": "uri",
            "description": "Optional URL the respondent is redirected to after answering (instead of the thank-you page)"
          },
          "questions": {
            "description": "Questions ordered by position",
            "type": "array",
            "example": [
              {
                "answer_field": "1287",
                "position": 0,
                "text": "How satisfied are you with our newsletter?",
                "type": "rating",
                "display": "default",
                "required": true,
                "options": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "answer_field": {
                  "type": "string",
                  "description": "Id of the answer to this question in a workflow: the `field` of a condition in the `answersFilter` of «Survey answered» (`marketing-survey-answered`). It changes when the questions of a draft are replaced with `update_survey`.",
                  "example": "1287"
                },
                "position": {
                  "type": "integer"
                },
                "text": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "single_choice",
                    "multiple_choice",
                    "yes_no",
                    "rating",
                    "nps",
                    "text"
                  ]
                },
                "display": {
                  "type": "string",
                  "enum": [
                    "default",
                    "smileys",
                    "icons"
                  ],
                  "description": "Visual presentation (cosmetic only): smileys renders the 1-5 rating as emoji faces; icons renders rating faces or yes_no thumbs as app icons (emails always fall back to emojis)"
                },
                "required": {
                  "type": "boolean"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "uuid": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "text": {
                        "type": "string"
                      },
                      "position": {
                        "type": "integer"
                      }
                    }
                  }
                }
              }
            }
          },
          "public_url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL of the multi-question page (only for active `page` surveys; null otherwise)"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Survey.SurveyStatsOutput-survey.stats": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "total_responses": {
            "type": "integer",
            "description": "Completed human responses"
          },
          "identified_responses": {
            "type": "integer",
            "description": "Completed responses linked to an identified contact"
          },
          "responses_last_seven_days": {
            "type": "integer",
            "description": "Completed responses in the last 7 days"
          },
          "started_not_completed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Responses started but not completed (only for `page` surveys; null for polls)"
          },
          "completion_rate": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Completion rate in percent (only for `page` surveys with at least one started response)"
          },
          "poll_winner": {
            "type": [
              "object",
              "null"
            ],
            "description": "Most voted option of the poll ({text, percent}; null without votes or for `page` surveys)",
            "properties": {
              "text": {
                "type": "string"
              },
              "percent": {
                "type": "integer"
              }
            }
          },
          "last_response_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date & Time of the last completed response"
          },
          "responses_by_campaign": {
            "type": "array",
            "description": "Completed responses grouped by the campaign that brought them (campaign null for answers outside a campaign)",
            "items": {
              "type": "object",
              "properties": {
                "campaign_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "campaign_title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "responses": {
                  "type": "integer"
                }
              }
            }
          },
          "questions": {
            "type": "array",
            "description": "Aggregates per question, ordered by position. Choice questions (single_choice / multiple_choice / yes_no) carry total_votes and options[{text, votes, percent}] — in yes_no the first option is the 👍 answer and the second the 👎 one; rating questions carry average (1 decimal, null without answers), distribution (1..5) and total_ratings; nps questions carry nps_score (-100..100, null without answers), detractors (0-6), passives (7-8), promoters (9-10), average, distribution (0..10) and total_ratings; text questions carry total_texts only (individual answers are not exposed).",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "Survey.SurveyStatsOutput.jsonld-survey.stats": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "total_responses": {
            "type": "integer",
            "description": "Completed human responses"
          },
          "identified_responses": {
            "type": "integer",
            "description": "Completed responses linked to an identified contact"
          },
          "responses_last_seven_days": {
            "type": "integer",
            "description": "Completed responses in the last 7 days"
          },
          "started_not_completed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Responses started but not completed (only for `page` surveys; null for polls)"
          },
          "completion_rate": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Completion rate in percent (only for `page` surveys with at least one started response)"
          },
          "poll_winner": {
            "type": [
              "object",
              "null"
            ],
            "description": "Most voted option of the poll ({text, percent}; null without votes or for `page` surveys)",
            "properties": {
              "text": {
                "type": "string"
              },
              "percent": {
                "type": "integer"
              }
            }
          },
          "last_response_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date & Time of the last completed response"
          },
          "responses_by_campaign": {
            "type": "array",
            "description": "Completed responses grouped by the campaign that brought them (campaign null for answers outside a campaign)",
            "items": {
              "type": "object",
              "properties": {
                "campaign_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "campaign_title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "responses": {
                  "type": "integer"
                }
              }
            }
          },
          "questions": {
            "type": "array",
            "description": "Aggregates per question, ordered by position. Choice questions (single_choice / multiple_choice / yes_no) carry total_votes and options[{text, votes, percent}] — in yes_no the first option is the 👍 answer and the second the 👎 one; rating questions carry average (1 decimal, null without answers), distribution (1..5) and total_ratings; nps questions carry nps_score (-100..100, null without answers), detractors (0-6), passives (7-8), promoters (9-10), average, distribution (0..10) and total_ratings; text questions carry total_texts only (individual answers are not exposed).",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "Survey.jsonld-survey.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Survey name",
            "example": "Newsletter feedback"
          },
          "type": {
            "type": "string",
            "enum": [
              "poll",
              "page"
            ],
            "description": "Survey type: `poll` (single question voted inline from the email) or `page` (public multi-question page linked from the email)"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "closed"
            ],
            "description": "Survey status. Only active surveys can be linked to campaigns; questions are immutable once the survey leaves draft."
          },
          "locale": {
            "type": "string",
            "description": "Locale of the public pages of the survey",
            "example": "es"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering"
          },
          "redirect_url": {
            "type": "string",
            "format": "uri",
            "description": "Optional URL the respondent is redirected to after answering (instead of the thank-you page)"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Survey.jsonld-survey.read_survey.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "name": {
            "type": "string",
            "description": "Survey name",
            "example": "Newsletter feedback"
          },
          "type": {
            "type": "string",
            "enum": [
              "poll",
              "page"
            ],
            "description": "Survey type: `poll` (single question voted inline from the email) or `page` (public multi-question page linked from the email)"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "closed"
            ],
            "description": "Survey status. Only active surveys can be linked to campaigns; questions are immutable once the survey leaves draft."
          },
          "locale": {
            "type": "string",
            "description": "Locale of the public pages of the survey",
            "example": "es"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering"
          },
          "redirect_url": {
            "type": "string",
            "format": "uri",
            "description": "Optional URL the respondent is redirected to after answering (instead of the thank-you page)"
          },
          "questions": {
            "description": "Questions ordered by position",
            "type": "array",
            "example": [
              {
                "answer_field": "1287",
                "position": 0,
                "text": "How satisfied are you with our newsletter?",
                "type": "rating",
                "display": "default",
                "required": true,
                "options": []
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "answer_field": {
                  "type": "string",
                  "description": "Id of the answer to this question in a workflow: the `field` of a condition in the `answersFilter` of «Survey answered» (`marketing-survey-answered`). It changes when the questions of a draft are replaced with `update_survey`.",
                  "example": "1287"
                },
                "position": {
                  "type": "integer"
                },
                "text": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "single_choice",
                    "multiple_choice",
                    "yes_no",
                    "rating",
                    "nps",
                    "text"
                  ]
                },
                "display": {
                  "type": "string",
                  "enum": [
                    "default",
                    "smileys",
                    "icons"
                  ],
                  "description": "Visual presentation (cosmetic only): smileys renders the 1-5 rating as emoji faces; icons renders rating faces or yes_no thumbs as app icons (emails always fall back to emojis)"
                },
                "required": {
                  "type": "boolean"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "uuid": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "text": {
                        "type": "string"
                      },
                      "position": {
                        "type": "integer"
                      }
                    }
                  }
                }
              }
            }
          },
          "public_url": {
            "type": "string",
            "format": "uri",
            "description": "Public URL of the multi-question page (only for active `page` surveys; null otherwise)"
          },
          "audience": {
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "SurveyOptionInput-survey.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Option text shown to the respondent",
            "example": "Very satisfied"
          }
        }
      },
      "SurveyOptionInput.jsonld-survey.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Option text shown to the respondent",
            "example": "Very satisfied"
          }
        }
      },
      "SuscriberConsent": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "Use treatment_purposes instead"
          }
        }
      },
      "SuscriberConsent.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "ip": {
            "type": "string",
            "format": "ipv4",
            "description": "Contact ip"
          },
          "consent_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "list_gdpr_treatment_purposes": {
            "deprecated": true,
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "description": "Use treatment_purposes instead"
          }
        }
      },
      "Suscription": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "status": {
            "type": "string",
            "description": "Suscriber status",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "source": {
            "type": "string",
            "description": "Suscriber Source",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "suscriber_consent": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "Suscription.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Suscriber status",
            "$ref": "#/components/schemas/SuscriberStatus"
          },
          "source": {
            "type": "string",
            "description": "Suscriber Source",
            "$ref": "#/components/schemas/SuscriberSource"
          },
          "rating": {
            "type": "number",
            "format": "float",
            "description": "Engage rating (0 to 20)",
            "example": 5.5
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          },
          "suscriber_consent": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "custom_fields": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          }
        }
      },
      "SuscriptionForm-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Suscription form URL"
          },
          "domain": {
            "type": "string",
            "description": "Account identifier domain"
          },
          "title": {
            "type": "string",
            "description": "Suscription form title",
            "example": "My awesome form"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "Is double opt-in?"
          },
          "active": {
            "type": "boolean",
            "description": "Is active?"
          },
          "paused": {
            "type": "boolean",
            "description": "Is paused?"
          }
        }
      },
      "SuscriptionForm-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "hash": {
            "type": "string",
            "description": "Hash to show in api",
            "example": "7L4Gfr51podURoCdplgSKx"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Suscription form URL"
          },
          "domain": {
            "type": "string",
            "description": "Account identifier domain"
          },
          "title": {
            "type": "string",
            "description": "Suscription form title",
            "example": "My awesome form"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet; `form.status.unpublished` has a design but is not live; `form.status.published` is live; `form.status.paused` is published but offline. A form created in the Customer App counts as designed when its design is saved in the Customer App editor."
          },
          "generation": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`classic` forms are managed with the operations under `/audiences/{audienceUuid}/suscription_forms`; `current` forms were created or converted in the Customer App and are managed with `get_subscription_form` and the other `subscription_form` operations.",
            "example": "classic"
          },
          "converted_at": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the form was converted to the Customer App. `null` if it never was.",
            "example": "2026-10-20T09:00:00+02:00"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "Is double opt-in?"
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "Is welcome email enabled?"
          },
          "active": {
            "type": "boolean",
            "description": "Is active?"
          },
          "paused": {
            "type": "boolean",
            "description": "Is paused?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto-suscription_form.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "description": "Form statistics (impressions, conversions, conversion rate). `null` for forms with `generation: current` (created in the Customer App or converted to it).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriptionFormStatsDto-suscription_form.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "SuscriptionForm.CreateEmbeddedFormDto-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Omit it or send `[]` for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        }
      },
      "SuscriptionForm.CreateEmbeddedFormDto.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Omit it or send `[]` for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        }
      },
      "SuscriptionForm.CreatePopupFormDto-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto-suscription_form.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Popup behavior: when it appears, when it is active, how often, and where. Each section you send is stored whole; sections you leave out use their defaults."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Omit it or send `[]` for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        },
        "required": [
          "title",
          "locale"
        ]
      },
      "SuscriptionForm.CreatePopupFormDto.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto.jsonld-suscription_form.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Popup behavior: when it appears, when it is active, how often, and where. Each section you send is stored whole; sections you leave out use their defaults."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Omit it or send `[]` for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        },
        "required": [
          "title",
          "locale"
        ]
      },
      "SuscriptionForm.PublishingInfoDto-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "status": {
            "type": "string",
            "description": "Current status of the form: `form.status.draft`, `form.status.unpublished`, `form.status.published` or `form.status.paused`. A form created in the Customer App counts as designed when its design is saved in the Customer App editor.",
            "example": "form.status.published"
          },
          "is_paused": {
            "type": "boolean",
            "description": "Whether the form is paused",
            "example": false
          },
          "script_code": {
            "type": "string",
            "description": "JavaScript code to embed in your website (include in <head>)",
            "example": "<script>...</script>"
          },
          "html_placeholder": {
            "type": "string",
            "description": "HTML placeholder for embedded forms (place where you want the form)",
            "example": "<div data-easymform=\"abc123\"></div>"
          },
          "click_trigger_code": {
            "type": "string",
            "description": "HTML link to trigger popup on click (only for popup forms)",
            "example": "<a href=\"#\" class=\"easym-open-popup\">Subscribe</a>"
          },
          "form_url": {
            "type": "string",
            "format": "uri",
            "description": "Direct URL to the form landing page",
            "example": "https://forms.easymailing.com/f/abc123"
          },
          "integrations": {
            "type": "object",
            "description": "Integration information for third-party platforms",
            "properties": {
              "wordpress": {
                "type": "object",
                "properties": {
                  "pluginUrl": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                }
              },
              "shopify": {
                "type": "object",
                "properties": {
                  "appUrl": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "instructions": {
            "type": "object",
            "description": "Installation instructions",
            "properties": {
              "title": {
                "type": "string"
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "requirements": {
            "type": "object",
            "description": "Requirements check (only when not published)",
            "properties": {
              "hasDesign": {
                "type": "boolean"
              },
              "hasSenderEmails": {
                "type": "boolean"
              },
              "missingRequirements": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "message": {
            "type": "string",
            "description": "Message when form is not yet publishable"
          }
        }
      },
      "SuscriptionForm.PublishingInfoDto.jsonld-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Current status of the form: `form.status.draft`, `form.status.unpublished`, `form.status.published` or `form.status.paused`. A form created in the Customer App counts as designed when its design is saved in the Customer App editor.",
            "example": "form.status.published"
          },
          "is_paused": {
            "type": "boolean",
            "description": "Whether the form is paused",
            "example": false
          },
          "script_code": {
            "type": "string",
            "description": "JavaScript code to embed in your website (include in <head>)",
            "example": "<script>...</script>"
          },
          "html_placeholder": {
            "type": "string",
            "description": "HTML placeholder for embedded forms (place where you want the form)",
            "example": "<div data-easymform=\"abc123\"></div>"
          },
          "click_trigger_code": {
            "type": "string",
            "description": "HTML link to trigger popup on click (only for popup forms)",
            "example": "<a href=\"#\" class=\"easym-open-popup\">Subscribe</a>"
          },
          "form_url": {
            "type": "string",
            "format": "uri",
            "description": "Direct URL to the form landing page",
            "example": "https://forms.easymailing.com/f/abc123"
          },
          "integrations": {
            "type": "object",
            "description": "Integration information for third-party platforms",
            "properties": {
              "wordpress": {
                "type": "object",
                "properties": {
                  "pluginUrl": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                }
              },
              "shopify": {
                "type": "object",
                "properties": {
                  "appUrl": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "instructions": {
            "type": "object",
            "description": "Installation instructions",
            "properties": {
              "title": {
                "type": "string"
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "requirements": {
            "type": "object",
            "description": "Requirements check (only when not published)",
            "properties": {
              "hasDesign": {
                "type": "boolean"
              },
              "hasSenderEmails": {
                "type": "boolean"
              },
              "missingRequirements": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "message": {
            "type": "string",
            "description": "Message when form is not yet publishable"
          }
        }
      },
      "SuscriptionForm.UpdateEmbeddedFormDto-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Replaces the current groups; send `[]` or omit it for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        }
      },
      "SuscriptionForm.UpdateEmbeddedFormDto.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Replaces the current groups; send `[]` or omit it for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        }
      },
      "SuscriptionForm.UpdatePopupFormDto-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto-suscription_form.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Popup behavior: when it appears, when it is active, how often, and where. Each section you send replaces that whole section; sections you leave out keep their current value."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Replaces the current groups; send `[]` or omit it for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        },
        "required": [
          "title",
          "locale"
        ]
      },
      "SuscriptionForm.UpdatePopupFormDto.jsonld-suscription_form.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto.jsonld-suscription_form.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Popup behavior: when it appears, when it is active, how often, and where. Each section you send replaces that whole section; sections you leave out keep their current value."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the form, as shown in the panel.",
            "example": "Newsletter sign-up"
          },
          "locale": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the form texts, as a locale code. Required.",
            "example": "es"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "When true, people who sign up must confirm their email before they are subscribed. If omitted it is set to false.",
            "example": true
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "When true, people who sign up through the form receive the welcome email of the form. If omitted it is set to false.",
            "example": false
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group.jsonld-suscription_form.write"
            },
            "description": "Groups of the audience the people who sign up are added to, as IRIs. Replaces the current groups; send `[]` or omit it for none.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/9b2e6c14-5f3a-4d87-a1c0-7e8f2d3b4a65"
            ]
          },
          "channels": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the form collects: `email`, `sms` or both. At least one is required; if omitted it is set to `[\"email\"]`.",
            "example": [
              "email"
            ]
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "When true, people who give a phone number must confirm it by SMS. Publishing a form with SMS double opt-in needs an active SMS sender in the audience. If omitted it is set to null (the audience default applies).",
            "example": false
          }
        },
        "required": [
          "title",
          "locale"
        ]
      },
      "SuscriptionForm.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Suscription form URL"
          },
          "domain": {
            "type": "string",
            "description": "Account identifier domain"
          },
          "title": {
            "type": "string",
            "description": "Suscription form title",
            "example": "My awesome form"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "Is double opt-in?"
          },
          "active": {
            "type": "boolean",
            "description": "Is active?"
          },
          "paused": {
            "type": "boolean",
            "description": "Is paused?"
          }
        }
      },
      "SuscriptionForm.jsonld-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "hash": {
            "type": "string",
            "description": "Hash to show in api",
            "example": "7L4Gfr51podURoCdplgSKx"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Suscription form URL"
          },
          "domain": {
            "type": "string",
            "description": "Account identifier domain"
          },
          "title": {
            "type": "string",
            "description": "Suscription form title",
            "example": "My awesome form"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormType"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SuscriptionFormStatus",
            "description": "Where the form stands: `form.status.draft` has no design yet; `form.status.unpublished` has a design but is not live; `form.status.published` is live; `form.status.paused` is published but offline. A form created in the Customer App counts as designed when its design is saved in the Customer App editor."
          },
          "generation": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/SubscriptionFormGeneration",
            "description": "`classic` forms are managed with the operations under `/audiences/{audienceUuid}/suscription_forms`; `current` forms were created or converted in the Customer App and are managed with `get_subscription_form` and the other `subscription_form` operations.",
            "example": "classic"
          },
          "converted_at": {
            "readOnly": true,
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the form was converted to the Customer App. `null` if it never was.",
            "example": "2026-10-20T09:00:00+02:00"
          },
          "double_opt_in": {
            "type": "boolean",
            "description": "Is double opt-in?"
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sms_double_opt_in": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "enable_welcome_email": {
            "type": "boolean",
            "description": "Is welcome email enabled?"
          },
          "active": {
            "type": "boolean",
            "description": "Is active?"
          },
          "paused": {
            "type": "boolean",
            "description": "Is paused?"
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "Audience",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "behavior": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupBehaviorDto.jsonld-suscription_form.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "description": "Form statistics (impressions, conversions, conversion rate). `null` for forms with `generation: current` (created in the Customer App or converted to it).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SuscriptionFormStatsDto.jsonld-suscription_form.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "SuscriptionFormStatsDto-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "impressions": {
            "type": "integer",
            "description": "Total number of form impressions (views)",
            "example": 1250
          },
          "conversions": {
            "type": "integer",
            "description": "Total number of conversions (subscriptions)",
            "example": 87
          },
          "conversion_rate": {
            "type": "number",
            "format": "float",
            "description": "Conversion rate percentage (conversions / impressions * 100)",
            "example": 6.96
          },
          "last_subscription_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date and time of the last subscription"
          }
        }
      },
      "SuscriptionFormStatsDto.jsonld-suscription_form.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "impressions": {
            "type": "integer",
            "description": "Total number of form impressions (views)",
            "example": 1250
          },
          "conversions": {
            "type": "integer",
            "description": "Total number of conversions (subscriptions)",
            "example": 87
          },
          "conversion_rate": {
            "type": "number",
            "format": "float",
            "description": "Conversion rate percentage (conversions / impressions * 100)",
            "example": 6.96
          },
          "last_subscription_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Date and time of the last subscription"
          }
        }
      },
      "Task": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the task.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML (paragraphs, line breaks, bold, italic and links). `null` when there is none.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskStatus",
            "description": "`open` while the task is pending, `completed` once it is done.",
            "example": "open"
          },
          "priority": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work. It only classifies the task: completing a `call` or `email` task does not make a call or send an email.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "object",
              "null"
            ],
            "description": "User responsible for the task. `null` when it is unassigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user (their email when they have no name).",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `assignee` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone offset (the instant is stored in UTC). `null` when it has no due date.",
            "example": "2026-11-05T09:00:00+00:00"
          },
          "overdue": {
            "type": "boolean",
            "description": "`true` when the task is open and its due date has passed. Always `false` for a completed task. It is calculated when you read it.",
            "example": false
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes before `due_at` at which the assignee is reminded; `0` means at the due time. `null` when there is no reminder.",
            "example": 60
          },
          "reminder_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the reminder, calculated from `due_at` and `reminder_offset_minutes`. Read-only. `null` when there is no reminder.",
            "example": "2026-11-05T08:00:00+00:00",
            "readOnly": true
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was completed. `null` while it is open.",
            "example": "2026-11-04T16:20:00+00:00"
          },
          "completed_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who completed the task. `null` while it is open.",
            "example": {
              "kind": "user",
              "name": "Laura Martín"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who decided to create the task. `null` when the creator is unknown. It is not the assignee.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "initiated_via": {
            "type": [
              "string",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/CrmInitiatedVia"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the task was created: `ui` (the app), `maia`, `api`, `import`, `sync`, `automation` or `system`.",
            "example": "maia"
          },
          "contacts": {
            "type": "array",
            "description": "The contacts the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                }
              }
            }
          },
          "companies": {
            "type": "array",
            "description": "The companies the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                }
              }
            }
          },
          "opportunities": {
            "type": "array",
            "description": "The opportunities the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": "Acme Corp"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "Acme Corp"
                }
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the task; it grows with every change. Send it as `expected_version` to make sure nobody changed the task in between.",
            "example": 3
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit, complete or reopen this task.",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this task: its creator, its assignee or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": false,
            "readOnly": true
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "Task-task.read": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the task.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML (paragraphs, line breaks, bold, italic and links). `null` when there is none.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskStatus",
            "description": "`open` while the task is pending, `completed` once it is done.",
            "example": "open"
          },
          "priority": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work. It only classifies the task: completing a `call` or `email` task does not make a call or send an email.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "object",
              "null"
            ],
            "description": "User responsible for the task. `null` when it is unassigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user (their email when they have no name).",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `assignee` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone offset (the instant is stored in UTC). `null` when it has no due date.",
            "example": "2026-11-05T09:00:00+00:00"
          },
          "overdue": {
            "type": "boolean",
            "description": "`true` when the task is open and its due date has passed. Always `false` for a completed task. It is calculated when you read it.",
            "example": false
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes before `due_at` at which the assignee is reminded; `0` means at the due time. `null` when there is no reminder.",
            "example": 60
          },
          "reminder_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the reminder, calculated from `due_at` and `reminder_offset_minutes`. Read-only. `null` when there is no reminder.",
            "example": "2026-11-05T08:00:00+00:00",
            "readOnly": true
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was completed. `null` while it is open.",
            "example": "2026-11-04T16:20:00+00:00"
          },
          "completed_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who completed the task. `null` while it is open.",
            "example": {
              "kind": "user",
              "name": "Laura Martín"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who decided to create the task. `null` when the creator is unknown. It is not the assignee.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "initiated_via": {
            "type": [
              "string",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/CrmInitiatedVia"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the task was created: `ui` (the app), `maia`, `api`, `import`, `sync`, `automation` or `system`.",
            "example": "maia"
          },
          "contacts": {
            "type": "array",
            "description": "The contacts the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                }
              }
            }
          },
          "companies": {
            "type": "array",
            "description": "The companies the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                }
              }
            }
          },
          "opportunities": {
            "type": "array",
            "description": "The opportunities the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": "Acme Corp"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "Acme Corp"
                }
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the task; it grows with every change. Send it as `expected_version` to make sure nobody changed the task in between.",
            "example": 3
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit, complete or reopen this task.",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this task: its creator, its assignee or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": false,
            "readOnly": true
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "Task.TaskAssignInput": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "required": [
          "assignee"
        ],
        "properties": {
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user who will be responsible, exactly as they sign in. `null` leaves the task unassigned. The field is required even when it is `null`.",
            "example": "laura@acme.com"
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.TaskAssignInput.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "required": [
          "assignee"
        ],
        "properties": {
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user who will be responsible, exactly as they sign in. `null` leaves the task unassigned. The field is required even when it is `null`.",
            "example": "laura@acme.com"
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.TaskCreateInput": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID for the new task, generated by you. Optional: when you leave it out the server generates one. Send it to be able to retry safely: a second request with the same `uuid` does not create another task, it fails with `crm_task_create_conflict`.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done. Between 1 and 200 characters.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML: paragraphs, line breaks, bold, italic and links with `https`; anything else is removed. At most 10,000 visible characters. `null` or empty clears it.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task. Default `none`.",
            "example": "high"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work; it only classifies the task. Default `general`.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user of the account who is responsible for the task, exactly as they sign in. The user needs a CRM seat and must be able to see every record the task is linked to. `null` leaves the task unassigned.",
            "example": "laura@acme.com"
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone or offset (`2026-11-05T09:00:00+01:00` or `...Z`). A date without time is not accepted. `null` removes the due date.",
            "example": "2026-11-05T09:00:00+01:00"
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Remind the assignee this many minutes before `due_at` (`0` = at the due time). It needs an assignee and a due date. `null` removes the reminder.",
            "example": 60,
            "minimum": 0
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts the task is linked to (`/contacts/{uuid}`), at most 50.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "type": "array",
            "description": "IRIs of the companies the task is linked to (`/companies/{uuid}`), at most 50.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "opportunities": {
            "type": "array",
            "description": "IRIs of the opportunities the task is linked to (`/opportunities/{uuid}`), at most 50.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "title"
        ]
      },
      "Task.TaskCreateInput.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID for the new task, generated by you. Optional: when you leave it out the server generates one. Send it to be able to retry safely: a second request with the same `uuid` does not create another task, it fails with `crm_task_create_conflict`.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done. Between 1 and 200 characters.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML: paragraphs, line breaks, bold, italic and links with `https`; anything else is removed. At most 10,000 visible characters. `null` or empty clears it.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task. Default `none`.",
            "example": "high"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work; it only classifies the task. Default `general`.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user of the account who is responsible for the task, exactly as they sign in. The user needs a CRM seat and must be able to see every record the task is linked to. `null` leaves the task unassigned.",
            "example": "laura@acme.com"
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone or offset (`2026-11-05T09:00:00+01:00` or `...Z`). A date without time is not accepted. `null` removes the due date.",
            "example": "2026-11-05T09:00:00+01:00"
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Remind the assignee this many minutes before `due_at` (`0` = at the due time). It needs an assignee and a due date. `null` removes the reminder.",
            "example": 60,
            "minimum": 0
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts the task is linked to (`/contacts/{uuid}`), at most 50.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "type": "array",
            "description": "IRIs of the companies the task is linked to (`/companies/{uuid}`), at most 50.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "opportunities": {
            "type": "array",
            "description": "IRIs of the opportunities the task is linked to (`/opportunities/{uuid}`), at most 50.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "title"
        ]
      },
      "Task.TaskReopenInput": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 2,
            "minimum": 1
          }
        }
      },
      "Task.TaskReopenInput.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 2,
            "minimum": 1
          }
        }
      },
      "Task.TaskUpdateInput": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "What has to be done. Between 1 and 200 characters; it cannot be blank.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML: paragraphs, line breaks, bold, italic and links with `https`; anything else is removed. At most 10,000 visible characters. `null` or empty clears it.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work; it only classifies the task.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user of the account who is responsible for the task, exactly as they sign in. The user needs a CRM seat and must be able to see every record the task is linked to. `null` leaves the task unassigned; on an update it also removes the reminder.",
            "example": "laura@acme.com"
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone or offset (`2026-11-05T09:00:00+01:00` or `...Z`). A date without time is not accepted. `null` removes the due date and the reminder.",
            "example": "2026-11-05T09:00:00+01:00"
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Remind the assignee this many minutes before `due_at` (`0` = at the due time). It needs an assignee and a due date. `null` removes the reminder.",
            "example": 60,
            "minimum": 0
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts the task is linked to (`/contacts/{uuid}`), at most 50. A write replaces the whole list: send the contacts you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "type": "array",
            "description": "IRIs of the companies the task is linked to (`/companies/{uuid}`), at most 50. A write replaces the whole list: send the companies you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "opportunities": {
            "type": "array",
            "description": "IRIs of the opportunities the task is linked to (`/opportunities/{uuid}`), at most 50. A write replaces the whole list: send the opportunities you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.TaskUpdateInput.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "What has to be done. Between 1 and 200 characters; it cannot be blank.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML: paragraphs, line breaks, bold, italic and links with `https`; anything else is removed. At most 10,000 visible characters. `null` or empty clears it.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work; it only classifies the task.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email of the active user of the account who is responsible for the task, exactly as they sign in. The user needs a CRM seat and must be able to see every record the task is linked to. `null` leaves the task unassigned; on an update it also removes the reminder.",
            "example": "laura@acme.com"
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone or offset (`2026-11-05T09:00:00+01:00` or `...Z`). A date without time is not accepted. `null` removes the due date and the reminder.",
            "example": "2026-11-05T09:00:00+01:00"
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Remind the assignee this many minutes before `due_at` (`0` = at the due time). It needs an assignee and a due date. `null` removes the reminder.",
            "example": 60,
            "minimum": 0
          },
          "contacts": {
            "type": "array",
            "description": "IRIs of the contacts the task is linked to (`/contacts/{uuid}`), at most 50. A write replaces the whole list: send the contacts you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
            ],
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "type": "array",
            "description": "IRIs of the companies the task is linked to (`/companies/{uuid}`), at most 50. A write replaces the whole list: send the companies you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
            ],
            "items": {
              "type": "string"
            }
          },
          "opportunities": {
            "type": "array",
            "description": "IRIs of the opportunities the task is linked to (`/opportunities/{uuid}`), at most 50. A write replaces the whole list: send the opportunities you want to keep as well, or `[]` to unlink them all.",
            "example": [
              "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
            ],
            "items": {
              "type": "string"
            }
          },
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.TaskVersionInput": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.TaskVersionInput.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "expected_version": {
            "type": "integer",
            "description": "Version of the task you read (`version`). Optional: if you send it and the task has changed since, nothing is saved and you get `crm_task_version_conflict`; if you leave it out, the change is applied over the current state.",
            "example": 1,
            "minimum": 1
          }
        }
      },
      "Task.jsonld": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the task.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML (paragraphs, line breaks, bold, italic and links). `null` when there is none.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskStatus",
            "description": "`open` while the task is pending, `completed` once it is done.",
            "example": "open"
          },
          "priority": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work. It only classifies the task: completing a `call` or `email` task does not make a call or send an email.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "object",
              "null"
            ],
            "description": "User responsible for the task. `null` when it is unassigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user (their email when they have no name).",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `assignee` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone offset (the instant is stored in UTC). `null` when it has no due date.",
            "example": "2026-11-05T09:00:00+00:00"
          },
          "overdue": {
            "type": "boolean",
            "description": "`true` when the task is open and its due date has passed. Always `false` for a completed task. It is calculated when you read it.",
            "example": false
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes before `due_at` at which the assignee is reminded; `0` means at the due time. `null` when there is no reminder.",
            "example": 60
          },
          "reminder_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the reminder, calculated from `due_at` and `reminder_offset_minutes`. Read-only. `null` when there is no reminder.",
            "example": "2026-11-05T08:00:00+00:00",
            "readOnly": true
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was completed. `null` while it is open.",
            "example": "2026-11-04T16:20:00+00:00"
          },
          "completed_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who completed the task. `null` while it is open.",
            "example": {
              "kind": "user",
              "name": "Laura Martín"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who decided to create the task. `null` when the creator is unknown. It is not the assignee.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "initiated_via": {
            "type": [
              "string",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/CrmInitiatedVia"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the task was created: `ui` (the app), `maia`, `api`, `import`, `sync`, `automation` or `system`.",
            "example": "maia"
          },
          "contacts": {
            "type": "array",
            "description": "The contacts the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                }
              }
            }
          },
          "companies": {
            "type": "array",
            "description": "The companies the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                }
              }
            }
          },
          "opportunities": {
            "type": "array",
            "description": "The opportunities the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": "Acme Corp"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "Acme Corp"
                }
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the task; it grows with every change. Send it as `expected_version` to make sure nobody changed the task in between.",
            "example": 3
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit, complete or reopen this task.",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this task: its creator, its assignee or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": false,
            "readOnly": true
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "Task.jsonld-task.read": {
        "type": "object",
        "description": "Tasks of the public API (plan fase 4, Tasks 17 and 18). The reads are generated from the approved proposal by\nfase-4/tools/gen_task_read.py and the writes by fase-4/tools/gen_task_write.py, edited by hand afterwards: the texts\nare the proposal's. Every operation checks the\nCRM access in its provider or processor before anything else, because API Platform evaluates `security` after the\nprovider.\n\n`list_tasks` pages by cursor (`paginationViaCursor` goes on the resource: on the operation API Platform 3.4.17 loses\nit) and gives no total. `cursor` is the opaque position of each task, which API Platform copies into the `cursor[gt]`\nof `hydra:next` (the last item) and the `cursor[lt]` of `hydra:previous` (the first one); it is never published.\n`assignee`, `completed_by` and `created_by` are arrays so that they keep the shape of the proposal; the related\nrecords are {@see \\App\\Application\\Crm\\RecordRelationView} arrays.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the task.",
            "example": "7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13"
          },
          "title": {
            "type": "string",
            "description": "What has to be done.",
            "example": "Send the revised proposal to Ana"
          },
          "description_html": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description as limited HTML (paragraphs, line breaks, bold, italic and links). `null` when there is none.",
            "example": "<p>Include the <strong>annual</strong> discount.</p>"
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskStatus",
            "description": "`open` while the task is pending, `completed` once it is done.",
            "example": "open"
          },
          "priority": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskPriority",
            "description": "Urgency of the task.",
            "example": "high"
          },
          "type": {
            "type": "string",
            "$ref": "#/components/schemas/CrmTaskType",
            "description": "Kind of work. It only classifies the task: completing a `call` or `email` task does not make a call or send an email.",
            "example": "email"
          },
          "assignee": {
            "type": [
              "object",
              "null"
            ],
            "description": "User responsible for the task. `null` when it is unassigned.",
            "example": {
              "uuid": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28",
              "name": "Laura Martín",
              "email": "laura@acme.com"
            },
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the user.",
                "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
              },
              "name": {
                "type": "string",
                "description": "Full name of the user (their email when they have no name).",
                "example": "Laura Martín"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user; send it in `assignee` to assign this user.",
                "example": "laura@acme.com"
              }
            }
          },
          "due_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task is due, ISO 8601 with the time zone offset (the instant is stored in UTC). `null` when it has no due date.",
            "example": "2026-11-05T09:00:00+00:00"
          },
          "overdue": {
            "type": "boolean",
            "description": "`true` when the task is open and its due date has passed. Always `false` for a completed task. It is calculated when you read it.",
            "example": false
          },
          "reminder_offset_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes before `due_at` at which the assignee is reminded; `0` means at the due time. `null` when there is no reminder.",
            "example": 60
          },
          "reminder_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Instant of the reminder, calculated from `due_at` and `reminder_offset_minutes`. Read-only. `null` when there is no reminder.",
            "example": "2026-11-05T08:00:00+00:00",
            "readOnly": true
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was completed. `null` while it is open.",
            "example": "2026-11-04T16:20:00+00:00"
          },
          "completed_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who completed the task. `null` while it is open.",
            "example": {
              "kind": "user",
              "name": "Laura Martín"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "created_by": {
            "type": [
              "object",
              "null"
            ],
            "description": "Who decided to create the task. `null` when the creator is unknown. It is not the assignee.",
            "example": {
              "kind": "user",
              "name": "Sergio Gallego"
            },
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/CrmActorKind",
                "description": "Kind of actor: `user` for a person, otherwise `contact`, `automation`, `integration`, `system` or `external`.",
                "example": "user"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Name of the actor. `null` when the person is no longer a member of the account.",
                "example": "Laura Martín"
              }
            }
          },
          "initiated_via": {
            "type": [
              "string",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/CrmInitiatedVia"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the task was created: `ui` (the app), `maia`, `api`, `import`, `sync`, `automation` or `system`.",
            "example": "maia"
          },
          "contacts": {
            "type": "array",
            "description": "The contacts the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40",
                "label": "Ana García",
                "secondary": "ana@example.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/contacts/3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Ana García"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "ana@example.com"
                }
              }
            }
          },
          "companies": {
            "type": "array",
            "description": "The companies the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21",
                "label": "Acme Corp",
                "secondary": "acme.com"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/companies/7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme Corp"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "acme.com"
                }
              }
            }
          },
          "opportunities": {
            "type": "array",
            "description": "The opportunities the task is linked to. Empty when it has none.",
            "example": [
              {
                "iri": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95",
                "label": "Acme annual plan",
                "secondary": "Acme Corp"
              }
            ],
            "items": {
              "type": "object",
              "properties": {
                "iri": {
                  "type": "string",
                  "format": "iri-reference",
                  "description": "IRI of the record; send it in the same field to link it.",
                  "example": "/opportunities/5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95"
                },
                "label": {
                  "type": "string",
                  "description": "Name of the record: the full name of a contact, the name of a company or opportunity.",
                  "example": "Acme annual plan"
                },
                "secondary": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Second line that tells records with the same name apart: the email of a contact, the primary domain of a company. `null` when there is none.",
                  "example": "Acme Corp"
                }
              }
            }
          },
          "version": {
            "type": "integer",
            "description": "Version of the task; it grows with every change. Send it as `expected_version` to make sure nobody changed the task in between.",
            "example": 3
          },
          "can_edit": {
            "type": "boolean",
            "description": "Whether the user who owns the token can edit, complete or reopen this task.",
            "example": true,
            "readOnly": true
          },
          "can_delete": {
            "type": "boolean",
            "description": "Whether the user who owns the token can delete this task: its creator, its assignee or an account admin with a token that reaches account administration (an API key, or OAuth with the `admin` scope).",
            "example": false,
            "readOnly": true
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task was created, ISO 8601.",
            "example": "2026-10-30T09:15:00+00:00"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the task last changed, ISO 8601.",
            "example": "2026-10-30T10:02:11+00:00"
          }
        }
      },
      "TaskAssignee-task_assignee.read": {
        "type": "object",
        "description": "The users a task can be assigned to (plan fase 4, Task 17). Generated from the approved proposal by\nfase-4/tools/gen_task_read.py.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user.",
            "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
          },
          "name": {
            "type": "string",
            "description": "Full name of the user (their email when they have no name).",
            "example": "Laura Martín"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email of the user; send it in `assignee` to assign this user.",
            "example": "laura@acme.com"
          },
          "current": {
            "type": "boolean",
            "description": "`true` for the user who owns the token.",
            "example": false
          }
        }
      },
      "TaskAssignee.jsonld-task_assignee.read": {
        "type": "object",
        "description": "The users a task can be assigned to (plan fase 4, Task 17). Generated from the approved proposal by\nfase-4/tools/gen_task_read.py.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the user.",
            "example": "c41b8e07-2d93-4f6a-8b15-7a0e9d3c6f28"
          },
          "name": {
            "type": "string",
            "description": "Full name of the user (their email when they have no name).",
            "example": "Laura Martín"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email of the user; send it in `assignee` to assign this user.",
            "example": "laura@acme.com"
          },
          "current": {
            "type": "boolean",
            "description": "`true` for the user who owns the token.",
            "example": false
          }
        }
      },
      "Template-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Template-template.read_template.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "content": {
            "type": "string",
            "description": "Template content (HTML). Required if simpleJsonCode is not provided.",
            "example": "<html><body><p>My awesome template!</p></body</html>"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "simple_json_code": {
            "type": "object",
            "description": "Simple JSON structure for BeeEditor templates. Use GET /templates/schema for the JSON schema. When provided, the system automatically generates the full JSON and HTML. Only applicable for be_editor templates. If provided, 'content' field is ignored."
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Template-template.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the template.",
            "example": "Welcome email"
          },
          "content": {
            "type": "string",
            "description": "Full HTML of the email, for a custom-HTML template (`code_own`). Required if `simple_json_code` is not sent; ignored if it is. Include the unsubscribe link `{{ link.campaign.unsuscribe }}`.",
            "example": "<html><body><p>Hello {{ text.list.suscriber.email }}</p><p><a href=\"{{ link.campaign.unsuscribe }}\">Unsubscribe</a></p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "Design for the visual editor (`be_editor`) as simple JSON; its structure is returned by `get_template_schema`. The full design and the HTML are generated from it. If sent, `content` is ignored."
          }
        }
      },
      "Template.CreateTemplateFromBeeSessionInput-template.write_from_bee_session": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "bee_template_id"
        ],
        "properties": {
          "bee_template_id": {
            "maxLength": 255,
            "type": "string",
            "description": "Identifier of the Beefree session (the `templateId` returned when the session was opened).",
            "example": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
          },
          "em_template_id": {
            "maxLength": 255,
            "type": "string",
            "format": "uuid",
            "description": "UUID of an existing visual-editor (`be_editor`) template to update. Omit it to create a new template.",
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          },
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the template. If omitted when creating, a default title is used; when updating, the current title is kept.",
            "example": "Newsletter June"
          }
        }
      },
      "Template.CreateTemplateFromBeeSessionInput.jsonld-template.write_from_bee_session": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "bee_template_id"
        ],
        "properties": {
          "bee_template_id": {
            "maxLength": 255,
            "type": "string",
            "description": "Identifier of the Beefree session (the `templateId` returned when the session was opened).",
            "example": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
          },
          "em_template_id": {
            "maxLength": 255,
            "type": "string",
            "format": "uuid",
            "description": "UUID of an existing visual-editor (`be_editor`) template to update. Omit it to create a new template.",
            "example": "5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835"
          },
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the template. If omitted when creating, a default title is used; when updating, the current title is kept.",
            "example": "Newsletter June"
          }
        }
      },
      "Template.TemplateSendTestInput-template.write_send_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "emails"
        ],
        "properties": {
          "emails": {
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "description": "Email addresses that receive the test (1 to 5).",
            "example": [
              "ana@example.com"
            ]
          },
          "subject": {
            "type": "string",
            "description": "Subject line of the test email.",
            "example": "Test: Welcome email"
          }
        }
      },
      "Template.TemplateSendTestInput.jsonld-template.write_send_test": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "emails"
        ],
        "properties": {
          "emails": {
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "description": "Email addresses that receive the test (1 to 5).",
            "example": [
              "ana@example.com"
            ]
          },
          "subject": {
            "type": "string",
            "description": "Subject line of the test email.",
            "example": "Test: Welcome email"
          }
        }
      },
      "Template.jsonld-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Template.jsonld-template.read_template.read.detail": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "content": {
            "type": "string",
            "description": "Template content (HTML). Required if simpleJsonCode is not provided.",
            "example": "<html><body><p>My awesome template!</p></body</html>"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "simple_json_code": {
            "type": "object",
            "description": "Simple JSON structure for BeeEditor templates. Use GET /templates/schema for the JSON schema. When provided, the system automatically generates the full JSON and HTML. Only applicable for be_editor templates. If provided, 'content' field is ignored."
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Template.jsonld-template.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the template.",
            "example": "Welcome email"
          },
          "content": {
            "type": "string",
            "description": "Full HTML of the email, for a custom-HTML template (`code_own`). Required if `simple_json_code` is not sent; ignored if it is. Include the unsubscribe link `{{ link.campaign.unsuscribe }}`.",
            "example": "<html><body><p>Hello {{ text.list.suscriber.email }}</p><p><a href=\"{{ link.campaign.unsuscribe }}\">Unsubscribe</a></p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "Design for the visual editor (`be_editor`) as simple JSON; its structure is returned by `get_template_schema`. The full design and the HTML are generated from it. If sent, `content` is ignored."
          }
        }
      },
      "TemplateSchema": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "default": "schema",
            "example": "schema",
            "type": "string"
          },
          "schema": {
            "type": "object",
            "description": "JSON Schema for BeeEditor templates"
          },
          "official_example": {
            "type": "object",
            "description": "Official example template from Beefree"
          },
          "common_errors": {
            "type": "object",
            "description": "Map of common property errors and their correct alternatives"
          },
          "documentation": {
            "type": "object",
            "description": "Additional documentation and rules"
          }
        }
      },
      "TemplateSchema.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "default": "schema",
            "example": "schema",
            "type": "string"
          },
          "schema": {
            "type": "object",
            "description": "JSON Schema for BeeEditor templates"
          },
          "official_example": {
            "type": "object",
            "description": "Official example template from Beefree"
          },
          "common_errors": {
            "type": "object",
            "description": "Map of common property errors and their correct alternatives"
          },
          "documentation": {
            "type": "object",
            "description": "Additional documentation and rules"
          }
        }
      },
      "TemplateVariantInput-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "template": {
            "description": "IRI of an existing template for this variant: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email for this variant. Alternative to `template` and `template_simple_json_code`.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design for this variant as simple JSON for the visual editor (see `get_template_schema`). Alternative to `template` and `template_html`.",
            "type": "object"
          }
        }
      },
      "TemplateVariantInput.jsonld-campaign.write.test_ab_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "template": {
            "description": "IRI of an existing template for this variant: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email for this variant. Alternative to `template` and `template_simple_json_code`.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design for this variant as simple JSON for the visual editor (see `get_template_schema`). Alternative to `template` and `template_html`.",
            "type": "object"
          }
        }
      },
      "TextElementDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of lists."
          }
        }
      },
      "TextElementDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "TextElementDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of lists."
          }
        }
      },
      "TextElementDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of lists."
          }
        }
      },
      "TextElementDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "TextElementDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of lists."
          }
        }
      },
      "TextStyleDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextStyleDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextStyleDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextStyleDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextStyleDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextStyleDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "color",
          "font_family",
          "font_size",
          "font_weight",
          "link_color",
          "line_height"
        ],
        "properties": {
          "color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Text color (hex)",
            "example": "#374151"
          },
          "font_family": {
            "type": "string",
            "description": "CSS font-family",
            "example": "'Roboto'"
          },
          "font_size": {
            "type": "string",
            "description": "Font size",
            "example": "16px"
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight",
            "example": "400"
          },
          "link_color": {
            "pattern": "^(.*(^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$).*)$",
            "type": "string",
            "description": "Link color (hex)",
            "example": "#3B82F6"
          },
          "line_height": {
            "type": "string",
            "description": "Line height",
            "example": "1.5"
          }
        }
      },
      "TextsDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "TextsDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "Theme-theme.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Theme UUID",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "title": {
            "type": "string",
            "description": "Theme title",
            "example": "Modern Newsletter"
          },
          "description": {
            "type": "string",
            "description": "Theme description",
            "example": "A clean and modern newsletter design"
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "Theme thumbnail URL",
            "example": "https://assets.easymailing.com/themes/modern-newsletter.jpg"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "description": "Theme types",
            "example": [
              {
                "id": 1,
                "name": "Newsletter"
              }
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "description": "Theme industries",
            "example": [
              {
                "id": 1,
                "name": "E-commerce"
              }
            ]
          },
          "requires_pro": {
            "type": "boolean",
            "description": "Whether this theme requires a Pro subscription",
            "example": false
          },
          "is_new": {
            "type": "boolean",
            "description": "Whether this is a new theme (created in last 15 days)",
            "example": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time theme was created"
          },
          "content": {
            "type": "string",
            "description": "Theme HTML content (only available on item endpoint, not in collection)",
            "example": "<html>...</html>"
          }
        }
      },
      "Theme.CreateTemplateFromThemeInput-theme.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the new template (up to 255 characters).",
            "example": "Black Friday newsletter"
          }
        }
      },
      "Theme.CreateTemplateFromThemeInput.jsonld-theme.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Title of the new template (up to 255 characters).",
            "example": "Black Friday newsletter"
          }
        }
      },
      "Theme.TemplateResource-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Theme.TemplateResource.jsonld-template.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "title": {
            "type": "string",
            "description": "Template title",
            "example": "My awesome template"
          },
          "type": {
            "type": "string",
            "description": "Template type: 'be_editor' for visual editor templates, 'code_own' for custom HTML",
            "example": "be_editor",
            "enum": [
              "be_editor",
              "code_own"
            ]
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "template thumbnail",
            "example": "https://assets.easymailing.com/templates/thumbnail.jpg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title"
        ]
      },
      "Theme.jsonld-theme.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Theme UUID",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "title": {
            "type": "string",
            "description": "Theme title",
            "example": "Modern Newsletter"
          },
          "description": {
            "type": "string",
            "description": "Theme description",
            "example": "A clean and modern newsletter design"
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "Theme thumbnail URL",
            "example": "https://assets.easymailing.com/themes/modern-newsletter.jpg"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "description": "Theme types",
            "example": [
              {
                "id": 1,
                "name": "Newsletter"
              }
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            },
            "description": "Theme industries",
            "example": [
              {
                "id": 1,
                "name": "E-commerce"
              }
            ]
          },
          "requires_pro": {
            "type": "boolean",
            "description": "Whether this theme requires a Pro subscription",
            "example": false
          },
          "is_new": {
            "type": "boolean",
            "description": "Whether this is a new theme (created in last 15 days)",
            "example": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time theme was created"
          },
          "content": {
            "type": "string",
            "description": "Theme HTML content (only available on item endpoint, not in collection)",
            "example": "<html>...</html>"
          }
        }
      },
      "ThemeIndustry-theme_industry.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "integer",
            "description": "Industry ID",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Industry name",
            "example": "E-commerce"
          }
        }
      },
      "ThemeIndustry.jsonld-theme_industry.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "integer",
            "description": "Industry ID",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Industry name",
            "example": "E-commerce"
          }
        }
      },
      "ThemeType-theme_type.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "integer",
            "description": "Theme type ID",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Theme type name",
            "example": "Newsletter"
          }
        }
      },
      "ThemeType.jsonld-theme_type.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "integer",
            "description": "Theme type ID",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Theme type name",
            "example": "Newsletter"
          }
        }
      },
      "TitlesDto-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the main heading."
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the second-level heading."
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the third-level heading."
          }
        }
      },
      "TitlesDto-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "TitlesDto-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the main heading."
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the second-level heading."
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the third-level heading."
          }
        }
      },
      "TitlesDto.jsonld-design_setting.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the main heading."
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the second-level heading."
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the third-level heading."
          }
        }
      },
      "TitlesDto.jsonld-design_setting.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.read"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "TitlesDto.jsonld-design_setting.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "h1",
          "h2",
          "h3"
        ],
        "properties": {
          "h1": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the main heading."
          },
          "h2": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the second-level heading."
          },
          "h3": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeadingStyleDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of the third-level heading."
          }
        }
      },
      "TreatmentPurpose-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation-audience.read"
            }
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Treatment purpose name",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          },
          "custom": {
            "type": "boolean",
            "description": "Is custom treatment purpose"
          }
        }
      },
      "TreatmentPurpose-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation-automation_queue.read"
            }
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          }
        }
      },
      "TreatmentPurpose-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation-member.read"
            }
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          }
        }
      },
      "TreatmentPurpose-treatment_purpose.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation-treatment_purpose.read"
            }
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Treatment purpose name",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          },
          "custom": {
            "type": "boolean",
            "description": "Is custom treatment purpose"
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TreatmentPurpose-treatment_purpose.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "translations": {
            "minItems": 1,
            "description": "Texts shown to people when they are asked for this consent, one per language. Each has a `locale` (such as `es_ES`) and a `title`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation-treatment_purpose.write"
            },
            "example": [
              {
                "locale": "es_ES",
                "title": "I accept the sending of commercial communications and newsletters"
              }
            ]
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Internal name of the purpose.",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Internal description of the purpose.",
            "example": "Sending of newsletters and offers"
          },
          "custom": {
            "type": "boolean",
            "description": "True for a purpose created by the account; false for one provided by Easymailing.",
            "example": true
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the purpose applies to, such as `email` or `sms`. If omitted it is set to `[\"email\"]`."
          }
        }
      },
      "TreatmentPurpose.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation.jsonld-audience.read"
            }
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Treatment purpose name",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          },
          "custom": {
            "type": "boolean",
            "description": "Is custom treatment purpose"
          }
        }
      },
      "TreatmentPurpose.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation.jsonld-automation_queue.read"
            }
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          }
        }
      },
      "TreatmentPurpose.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation.jsonld-member.read"
            }
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          }
        }
      },
      "TreatmentPurpose.jsonld-treatment_purpose.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "translations": {
            "minItems": 1,
            "description": "Translations",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation.jsonld-treatment_purpose.read"
            }
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Treatment purpose name",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Treatment purpose description",
            "example": "Commercial newsletters"
          },
          "custom": {
            "type": "boolean",
            "description": "Is custom treatment purpose"
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TreatmentPurpose.jsonld-treatment_purpose.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "translations": {
            "minItems": 1,
            "description": "Texts shown to people when they are asked for this consent, one per language. Each has a `locale` (such as `es_ES`) and a `title`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TreatmentPurposeTranslation.jsonld-treatment_purpose.write"
            },
            "example": [
              {
                "locale": "es_ES",
                "title": "I accept the sending of commercial communications and newsletters"
              }
            ]
          },
          "name": {
            "deprecated": true,
            "type": "string",
            "description": "Internal name of the purpose.",
            "example": "Commercial newsletters"
          },
          "description": {
            "type": "string",
            "description": "Internal description of the purpose.",
            "example": "Sending of newsletters and offers"
          },
          "custom": {
            "type": "boolean",
            "description": "True for a purpose created by the account; false for one provided by Easymailing.",
            "example": true
          },
          "channels": {
            "default": [
              "email"
            ],
            "example": [
              "email"
            ],
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Channels the purpose applies to, such as `email` or `sms`. If omitted it is set to `[\"email\"]`."
          }
        }
      },
      "TreatmentPurposeTranslation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation-treatment_purpose.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation-treatment_purpose.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Text the person accepts, in this language.",
            "example": "I accept the sending of commercial communications and newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Language of the text, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld-audience.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld-automation_queue.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld-member.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld-treatment_purpose.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Treatment purpose name",
            "example": "I accept the sending of commercial communications and / or Newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Locale code ISO 3166-1",
            "example": "es_ES"
          }
        }
      },
      "TreatmentPurposeTranslation.jsonld-treatment_purpose.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "locale"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Text the person accepts, in this language.",
            "example": "I accept the sending of commercial communications and newsletters"
          },
          "locale": {
            "type": "string",
            "description": "Language of the text, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          }
        }
      },
      "TriggerAutomationAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "automation": {
            "description": "IRI of the automation to start for the contact, as returned by `list_automations`. It must be active and have a manual trigger.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "TriggerAutomationAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "automation": {
            "description": "IRI of the automation to start for the contact, as returned by `list_automations`. It must be active and have a manual trigger.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "TriggerAutomationAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "automation": {
            "description": "IRI of the automation to start for the contact, as returned by `list_automations`. It must be active and have a manual trigger.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "TriggerAutomationAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "automation": {
            "description": "IRI of the automation to start for the contact, as returned by `list_automations`. It must be active and have a manual trigger.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "UnsubscribeAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "UnsubscribeAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "UnsubscribeAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          }
        }
      },
      "UnsubscribeAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false
      },
      "UpdateCustomFieldAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the custom field to write, as returned by `list_audience_custom_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "value": {
            "description": "Fixed value to write. Its type depends on the field: text, number, date, true or false, or a list for multiple-choice fields.",
            "example": "Premium"
          }
        }
      },
      "UpdateCustomFieldAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the custom field to write, as returned by `list_audience_custom_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "value": {
            "description": "Fixed value to write. Its type depends on the field: text, number, date, true or false, or a list for multiple-choice fields.",
            "example": "Premium"
          }
        }
      },
      "UpdateCustomFieldAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "field": {
            "description": "IRI of the custom field to write, as returned by `list_audience_custom_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "value": {
            "description": "Fixed value to write. Its type depends on the field: text, number, date, true or false, or a list for multiple-choice fields.",
            "example": "Premium"
          }
        }
      },
      "UpdateCustomFieldAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "field": {
            "description": "IRI of the custom field to write, as returned by `list_audience_custom_fields`.",
            "type": "string",
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/d7a83bf3-4891-4fe9-a39b-c827fdf82fde"
          },
          "value": {
            "description": "Fixed value to write. Its type depends on the field: text, number, date, true or false, or a list for multiple-choice fields.",
            "example": "Premium"
          }
        }
      },
      "UpdateScoreAction-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Points to add to the contact's quality score, from -5 to 5. Negative values subtract.",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UpdateScoreAction-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Points to add to the contact's quality score, from -5 to 5. Negative values subtract.",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UpdateScoreAction.jsonld-automation_step.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "value": {
            "description": "Points to add to the contact's quality score, from -5 to 5. Negative values subtract.",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UpdateScoreAction.jsonld-automation_step.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "value": {
            "description": "Points to add to the contact's quality score, from -5 to 5. Negative values subtract.",
            "example": 2,
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UsableBookingPage-usable_booking_page.read": {
        "type": "object",
        "description": "`list_usable_booking_pages` and `get_usable_booking_page` (fase 5): the published booking pages the user can use, own\nor shared with them, with their public data only. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the page.",
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/UsableBookingPageState",
            "description": "Always `published`: only published pages can be used.",
            "example": "published"
          },
          "version": {
            "type": "integer",
            "description": "Version of the page. `create_booking_offer` checks it.",
            "example": 3
          },
          "title": {
            "type": "string",
            "description": "Name of the meeting.",
            "example": "Intro call with Sergio"
          },
          "description": {
            "type": "string",
            "description": "Text of the booking page.",
            "example": "A 30-minute call to see how Easymailing fits your team."
          },
          "host_name": {
            "type": "string",
            "description": "Name of the host.",
            "example": "Sergio Gallego"
          },
          "host_image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the host; `null` when none.",
            "example": "https://cdn.easymailing.com/avatars/sergio.jpg"
          },
          "location": {
            "type": "string",
            "$ref": "#/components/schemas/BookingLocation",
            "description": "Where the meeting happens.",
            "example": "google_meet"
          },
          "location_value": {
            "type": "string",
            "description": "Phone number, address or link for `phone`, `in_person` and `custom`; empty for `google_meet`.",
            "example": ""
          },
          "time_zone": {
            "type": "string",
            "description": "IANA time zone of the host.",
            "example": "Europe/Madrid"
          },
          "hour_format": {
            "type": "string",
            "$ref": "#/components/schemas/BookingHourFormat",
            "description": "How the page shows times.",
            "example": "24h"
          },
          "allow_duration_selection": {
            "type": "boolean",
            "description": "Whether the person booking can choose the duration.",
            "example": false
          },
          "default_duration": {
            "type": "integer",
            "description": "Duration in minutes when there is no choice.",
            "example": 30
          },
          "allowed_durations": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Durations in minutes that can be offered.",
            "example": [
              30
            ]
          },
          "horizon_days": {
            "type": "integer",
            "description": "How many days ahead times are offered.",
            "example": 60
          },
          "public_url": {
            "type": "string",
            "format": "uri",
            "description": "Link people use to book.",
            "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "relation": {
            "type": "string",
            "$ref": "#/components/schemas/UsableBookingPageRelation",
            "description": "`own` for the user's own page, `shared` for a page another user shared with them.",
            "example": "own"
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "can_insert_link": {
                "type": "boolean",
                "description": "Always `true`: the link can be put in an email.",
                "example": true
              },
              "can_propose_slots": {
                "type": "boolean",
                "description": "Always `true`: `create_booking_offer` can be used.",
                "example": true
              },
              "can_propose_outside_hours": {
                "type": "boolean",
                "description": "Whether `allow_outside_hours` can be used: only on the user's own pages.",
                "example": true
              }
            },
            "required": [
              "can_insert_link",
              "can_propose_slots",
              "can_propose_outside_hours"
            ],
            "description": "What the user can do with this page.",
            "example": {
              "can_insert_link": true,
              "can_propose_slots": true,
              "can_propose_outside_hours": true
            }
          }
        }
      },
      "UsableBookingPage.jsonld-usable_booking_page.read": {
        "type": "object",
        "description": "`list_usable_booking_pages` and `get_usable_booking_page` (fase 5): the published booking pages the user can use, own\nor shared with them, with their public data only. Generated from the proposal by fase-5/tools/gen_booking_pages_api.py; the texts are the proposal's.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the page.",
            "example": "b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/UsableBookingPageState",
            "description": "Always `published`: only published pages can be used.",
            "example": "published"
          },
          "version": {
            "type": "integer",
            "description": "Version of the page. `create_booking_offer` checks it.",
            "example": 3
          },
          "title": {
            "type": "string",
            "description": "Name of the meeting.",
            "example": "Intro call with Sergio"
          },
          "description": {
            "type": "string",
            "description": "Text of the booking page.",
            "example": "A 30-minute call to see how Easymailing fits your team."
          },
          "host_name": {
            "type": "string",
            "description": "Name of the host.",
            "example": "Sergio Gallego"
          },
          "host_image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Photo of the host; `null` when none.",
            "example": "https://cdn.easymailing.com/avatars/sergio.jpg"
          },
          "location": {
            "type": "string",
            "$ref": "#/components/schemas/BookingLocation",
            "description": "Where the meeting happens.",
            "example": "google_meet"
          },
          "location_value": {
            "type": "string",
            "description": "Phone number, address or link for `phone`, `in_person` and `custom`; empty for `google_meet`.",
            "example": ""
          },
          "time_zone": {
            "type": "string",
            "description": "IANA time zone of the host.",
            "example": "Europe/Madrid"
          },
          "hour_format": {
            "type": "string",
            "$ref": "#/components/schemas/BookingHourFormat",
            "description": "How the page shows times.",
            "example": "24h"
          },
          "allow_duration_selection": {
            "type": "boolean",
            "description": "Whether the person booking can choose the duration.",
            "example": false
          },
          "default_duration": {
            "type": "integer",
            "description": "Duration in minutes when there is no choice.",
            "example": 30
          },
          "allowed_durations": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Durations in minutes that can be offered.",
            "example": [
              30
            ]
          },
          "horizon_days": {
            "type": "integer",
            "description": "How many days ahead times are offered.",
            "example": 60
          },
          "public_url": {
            "type": "string",
            "format": "uri",
            "description": "Link people use to book.",
            "example": "https://acme.easymailing.com/app/public/booking/b4d2c7a1-8e35-4f60-9a12-3c5e7d9f1b84"
          },
          "relation": {
            "type": "string",
            "$ref": "#/components/schemas/UsableBookingPageRelation",
            "description": "`own` for the user's own page, `shared` for a page another user shared with them.",
            "example": "own"
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "can_insert_link": {
                "type": "boolean",
                "description": "Always `true`: the link can be put in an email.",
                "example": true
              },
              "can_propose_slots": {
                "type": "boolean",
                "description": "Always `true`: `create_booking_offer` can be used.",
                "example": true
              },
              "can_propose_outside_hours": {
                "type": "boolean",
                "description": "Whether `allow_outside_hours` can be used: only on the user's own pages.",
                "example": true
              }
            },
            "required": [
              "can_insert_link",
              "can_propose_slots",
              "can_propose_outside_hours"
            ],
            "description": "What the user can do with this page.",
            "example": {
              "can_insert_link": true,
              "can_propose_slots": true,
              "can_propose_outside_hours": true
            }
          }
        }
      },
      "Variant-product.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the variant",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Variant title",
            "example": "My awesome variant"
          },
          "sku": {
            "type": "string",
            "description": "SKU for the variant"
          },
          "price": {
            "type": "integer",
            "description": "Variant price in cents",
            "example": 1850
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Inventory quantity for the variant",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant image url"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Variant-variant.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the variant. It cannot be changed later.",
            "example": "sneaker-01-42"
          },
          "title": {
            "type": "string",
            "description": "Name of the variant, for example its size or color.",
            "example": "Size 42"
          },
          "sku": {
            "type": "string",
            "description": "Stock keeping unit code of the variant.",
            "example": "SNK-01-42"
          },
          "price": {
            "type": "integer",
            "description": "Price of the variant in cents.",
            "example": 4990
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Units in stock.",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image of the variant.",
            "example": "https://shop.acme.example.com/img/urban-sneaker-42.jpg"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the variant page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker?variant=42"
          }
        }
      },
      "Variant-variant.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the variant",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Variant title",
            "example": "My awesome variant"
          },
          "sku": {
            "type": "string",
            "description": "SKU for the variant"
          },
          "price": {
            "type": "integer",
            "description": "Variant price in cents",
            "example": 1850
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Inventory quantity for the variant",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant image url"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant url"
          },
          "product": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Product"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Variant-variant.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the variant, for example its size or color.",
            "example": "Size 42"
          },
          "sku": {
            "type": "string",
            "description": "Stock keeping unit code of the variant.",
            "example": "SNK-01-42"
          },
          "price": {
            "type": "integer",
            "description": "Price of the variant in cents.",
            "example": 4990
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Units in stock.",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image of the variant.",
            "example": "https://shop.acme.example.com/img/urban-sneaker-42.jpg"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the variant page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker?variant=42"
          }
        }
      },
      "Variant.jsonld-product.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the variant",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Variant title",
            "example": "My awesome variant"
          },
          "sku": {
            "type": "string",
            "description": "SKU for the variant"
          },
          "price": {
            "type": "integer",
            "description": "Variant price in cents",
            "example": 1850
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Inventory quantity for the variant",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant image url"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Variant.jsonld-variant.create": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "Identifier you choose for the variant. It cannot be changed later.",
            "example": "sneaker-01-42"
          },
          "title": {
            "type": "string",
            "description": "Name of the variant, for example its size or color.",
            "example": "Size 42"
          },
          "sku": {
            "type": "string",
            "description": "Stock keeping unit code of the variant.",
            "example": "SNK-01-42"
          },
          "price": {
            "type": "integer",
            "description": "Price of the variant in cents.",
            "example": 4990
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Units in stock.",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image of the variant.",
            "example": "https://shop.acme.example.com/img/urban-sneaker-42.jpg"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the variant page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker?variant=42"
          }
        }
      },
      "Variant.jsonld-variant.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "resource_id",
          "title"
        ],
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "resource_id": {
            "pattern": "^([a-z0-9-_]+)$",
            "type": "string",
            "description": "A unique identifier for the variant",
            "example": "id"
          },
          "title": {
            "type": "string",
            "description": "Variant title",
            "example": "My awesome variant"
          },
          "sku": {
            "type": "string",
            "description": "SKU for the variant"
          },
          "price": {
            "type": "integer",
            "description": "Variant price in cents",
            "example": 1850
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Inventory quantity for the variant",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant image url"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "The variant url"
          },
          "product": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/",
            "description": "Product"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Variant.jsonld-variant.update": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the variant, for example its size or color.",
            "example": "Size 42"
          },
          "sku": {
            "type": "string",
            "description": "Stock keeping unit code of the variant.",
            "example": "SNK-01-42"
          },
          "price": {
            "type": "integer",
            "description": "Price of the variant in cents.",
            "example": 4990
          },
          "inventory_quantity": {
            "type": "integer",
            "description": "Units in stock.",
            "example": 10
          },
          "image_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of an image of the variant.",
            "example": "https://shop.acme.example.com/img/urban-sneaker-42.jpg"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of the variant page in the shop.",
            "example": "https://shop.acme.example.com/products/urban-sneaker?variant=42"
          }
        }
      },
      "Webhook-webhook.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "scope": {
            "default": "marketing",
            "example": "marketing",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Kind of webhook: `marketing` (events of one audience, `audience` required) or `crm` (events of contacts, companies and opportunities of the whole account, without `audience`). Default `marketing`. It cannot change after creation."
          },
          "title": {
            "type": "string",
            "description": "Webhook title"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events to subscribe"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL to send data"
          },
          "secret": {
            "type": "string",
            "description": "Auth key"
          },
          "active": {
            "type": "boolean",
            "description": "Confirmed"
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "Audience whose events are sent. Required for `marketing` webhooks; null for `crm` webhooks."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "Webhook-webhook.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "scope": {
            "default": "marketing",
            "example": "crm",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Current scope of the webhook (`marketing` or `crm`). It cannot change: omit it or send the current value."
          },
          "title": {
            "type": "string",
            "description": "Name of the webhook, for you to recognize it.",
            "example": "Sync subscribers to CRM"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events that trigger a delivery to the URL. All of them must belong to the scope: `member_*` and `custom_automation_step` for `marketing`, `crm_*` for `crm`.",
            "example": [
              "member_subscribed",
              "member_unsubscribed"
            ]
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of your server that receives the events. It must be reachable from the internet; addresses on private networks are blocked.",
            "example": "https://hooks.acme.example.com/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign each delivery. Easymailing sends the header `Easymailing-Webhook-Signature` with `sha256=` followed by the HMAC-SHA256 of the body using this secret; check it to be sure the call comes from Easymailing.",
            "example": "s3cr3t-key-123"
          },
          "active": {
            "type": "boolean",
            "description": "If true, the webhook sends events. It is turned off automatically if your server answers 404 or 410. If omitted it is set to false.",
            "example": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "IRI of the audience whose events are sent. Required for `marketing` webhooks; must be omitted or null for `crm` webhooks."
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "Webhook.jsonld-webhook.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "scope": {
            "default": "marketing",
            "example": "marketing",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Kind of webhook: `marketing` (events of one audience, `audience` required) or `crm` (events of contacts, companies and opportunities of the whole account, without `audience`). Default `marketing`. It cannot change after creation."
          },
          "title": {
            "type": "string",
            "description": "Webhook title"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events to subscribe"
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL to send data"
          },
          "secret": {
            "type": "string",
            "description": "Auth key"
          },
          "active": {
            "type": "boolean",
            "description": "Confirmed"
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "Audience whose events are sent. Required for `marketing` webhooks; null for `crm` webhooks."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "Webhook.jsonld-webhook.write": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "scope": {
            "default": "marketing",
            "example": "crm",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Current scope of the webhook (`marketing` or `crm`). It cannot change: omit it or send the current value."
          },
          "title": {
            "type": "string",
            "description": "Name of the webhook, for you to recognize it.",
            "example": "Sync subscribers to CRM"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events that trigger a delivery to the URL. All of them must belong to the scope: `member_*` and `custom_automation_step` for `marketing`, `crm_*` for `crm`.",
            "example": [
              "member_subscribed",
              "member_unsubscribed"
            ]
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of your server that receives the events. It must be reachable from the internet; addresses on private networks are blocked.",
            "example": "https://hooks.acme.example.com/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign each delivery. Easymailing sends the header `Easymailing-Webhook-Signature` with `sha256=` followed by the HMAC-SHA256 of the body using this secret; check it to be sure the call comes from Easymailing.",
            "example": "s3cr3t-key-123"
          },
          "active": {
            "type": "boolean",
            "description": "If true, the webhook sends events. It is turned off automatically if your server answers 404 or 410. If omitted it is set to false.",
            "example": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "IRI of the audience whose events are sent. Required for `marketing` webhooks; must be omitted or null for `crm` webhooks."
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "WebhookEvent-webhook_event.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "event_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Event type",
            "$ref": "#/components/schemas/WebhookEventType"
          },
          "webhook": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "webhook_request": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "event_data": {
            "type": "object",
            "description": "Event data, schema depends on event type"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "WebhookEvent.jsonld-webhook_event.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "event_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Event type",
            "$ref": "#/components/schemas/WebhookEventType"
          },
          "webhook": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "webhook_request": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "https://example.com/"
          },
          "event_data": {
            "type": "object",
            "description": "Event data, schema depends on event type"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "WebhookRequest-webhook_request.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "payload": {
            "type": "string",
            "description": "Payload"
          },
          "response_body": {
            "type": "string",
            "description": "Response body"
          },
          "response_status_code": {
            "type": "number",
            "description": "Response status code"
          },
          "retry_count": {
            "type": "number",
            "description": "Retries number"
          },
          "successful": {
            "type": "boolean",
            "description": "Successful"
          },
          "webhook_events": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "WebhookRequest.jsonld-webhook_request.read": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Resource UUID"
          },
          "payload": {
            "type": "string",
            "description": "Payload"
          },
          "response_body": {
            "type": "string",
            "description": "Response body"
          },
          "response_status_code": {
            "type": "number",
            "description": "Response status code"
          },
          "retry_count": {
            "type": "number",
            "description": "Retries number"
          },
          "successful": {
            "type": "boolean",
            "description": "Successful"
          },
          "webhook_events": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource created"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date & Time resource updated"
          }
        }
      },
      "Workflow": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "display_status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowDisplayStatus",
            "description": "The state a list shows. `draft`: never published. Otherwise `error` when some execution is blocked; otherwise `active` when `status` is `active`; otherwise `paused` (entries closed, whole workflow paused or commercial pause).",
            "example": "paused",
            "readOnly": true
          },
          "active_execution_count": {
            "type": "integer",
            "description": "Executions that have not ended: running, waiting or blocked.",
            "example": 14,
            "minimum": 0,
            "readOnly": true
          },
          "blocked_execution_count": {
            "type": "integer",
            "description": "Blocked executions: they wait for someone to resolve them in the app.",
            "example": 0,
            "minimum": 0,
            "readOnly": true
          },
          "last_execution_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the most recent execution started, whatever its state, ISO 8601. `null` when it has none.",
            "example": "2026-11-11T08:05:12+00:00",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          },
          "validation": {
            "type": "object",
            "properties": {
              "workflow_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the workflow.",
                "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
              },
              "draft_version": {
                "type": "integer",
                "description": "`draft_version` of the draft that was reviewed.",
                "example": 2,
                "minimum": 1
              },
              "publishable": {
                "type": "boolean",
                "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
                "example": false
              },
              "counts": {
                "type": "object",
                "properties": {
                  "incomplete": {
                    "type": "integer",
                    "description": "Issues that are something to fill in; they block publishing.",
                    "example": 1,
                    "minimum": 0
                  },
                  "error": {
                    "type": "integer",
                    "description": "Issues that are something wrong; they block publishing.",
                    "example": 0,
                    "minimum": 0
                  },
                  "warning": {
                    "type": "integer",
                    "description": "Issues worth checking; they do not block publishing.",
                    "example": 0,
                    "minimum": 0
                  }
                },
                "description": "How many issues of each severity.",
                "example": {
                  "incomplete": 1,
                  "error": 0,
                  "warning": 0
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "node_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                      "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                    },
                    "catalog_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                      "example": "wait-duration"
                    },
                    "field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                      "example": "durationValue"
                    },
                    "code": {
                      "$ref": "#/components/schemas/WorkflowIssueCode",
                      "description": "What the issue is about.",
                      "example": "missing_configuration"
                    },
                    "severity": {
                      "$ref": "#/components/schemas/WorkflowIssueSeverity",
                      "description": "`incomplete` and `error` block publishing; `warning` does not.",
                      "example": "incomplete"
                    },
                    "hint": {
                      "type": "string",
                      "description": "What the code means and how to fix it, in English.",
                      "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                    }
                  }
                },
                "description": "The issues, in the order of the document; empty when there is nothing to fix.",
                "example": [
                  {
                    "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                    "catalog_id": "wait-duration",
                    "field": "durationValue",
                    "code": "missing_configuration",
                    "severity": "incomplete",
                    "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                  }
                ]
              }
            },
            "description": "Only in the answer of `create_workflow` and `update_workflow`: the review of the saved draft with the rules of publishing, as `get_workflow_validation` gives it. Fix each issue as its `hint` says and save again.",
            "example": {
              "workflow_uuid": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
              "draft_version": 2,
              "publishable": false,
              "counts": {
                "incomplete": 1,
                "error": 0,
                "warning": 0
              },
              "issues": [
                {
                  "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalog_id": "wait-duration",
                  "field": "durationValue",
                  "code": "missing_configuration",
                  "severity": "incomplete",
                  "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              ]
            },
            "readOnly": true
          }
        }
      },
      "Workflow-workflow.list": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "display_status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowDisplayStatus",
            "description": "The state a list shows. `draft`: never published. Otherwise `error` when some execution is blocked; otherwise `active` when `status` is `active`; otherwise `paused` (entries closed, whole workflow paused or commercial pause).",
            "example": "paused",
            "readOnly": true
          },
          "active_execution_count": {
            "type": "integer",
            "description": "Executions that have not ended: running, waiting or blocked.",
            "example": 14,
            "minimum": 0,
            "readOnly": true
          },
          "blocked_execution_count": {
            "type": "integer",
            "description": "Blocked executions: they wait for someone to resolve them in the app.",
            "example": 0,
            "minimum": 0,
            "readOnly": true
          },
          "last_execution_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the most recent execution started, whatever its state, ISO 8601. `null` when it has none.",
            "example": "2026-11-11T08:05:12+00:00",
            "readOnly": true
          }
        }
      },
      "Workflow-workflow.read": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          }
        }
      },
      "Workflow-workflow.read_workflow.validation": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          },
          "validation": {
            "type": "object",
            "properties": {
              "workflow_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the workflow.",
                "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
              },
              "draft_version": {
                "type": "integer",
                "description": "`draft_version` of the draft that was reviewed.",
                "example": 2,
                "minimum": 1
              },
              "publishable": {
                "type": "boolean",
                "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
                "example": false
              },
              "counts": {
                "type": "object",
                "properties": {
                  "incomplete": {
                    "type": "integer",
                    "description": "Issues that are something to fill in; they block publishing.",
                    "example": 1,
                    "minimum": 0
                  },
                  "error": {
                    "type": "integer",
                    "description": "Issues that are something wrong; they block publishing.",
                    "example": 0,
                    "minimum": 0
                  },
                  "warning": {
                    "type": "integer",
                    "description": "Issues worth checking; they do not block publishing.",
                    "example": 0,
                    "minimum": 0
                  }
                },
                "description": "How many issues of each severity.",
                "example": {
                  "incomplete": 1,
                  "error": 0,
                  "warning": 0
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "node_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                      "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                    },
                    "catalog_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                      "example": "wait-duration"
                    },
                    "field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                      "example": "durationValue"
                    },
                    "code": {
                      "$ref": "#/components/schemas/WorkflowIssueCode",
                      "description": "What the issue is about.",
                      "example": "missing_configuration"
                    },
                    "severity": {
                      "$ref": "#/components/schemas/WorkflowIssueSeverity",
                      "description": "`incomplete` and `error` block publishing; `warning` does not.",
                      "example": "incomplete"
                    },
                    "hint": {
                      "type": "string",
                      "description": "What the code means and how to fix it, in English.",
                      "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                    }
                  }
                },
                "description": "The issues, in the order of the document; empty when there is nothing to fix.",
                "example": [
                  {
                    "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                    "catalog_id": "wait-duration",
                    "field": "durationValue",
                    "code": "missing_configuration",
                    "severity": "incomplete",
                    "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                  }
                ]
              }
            },
            "description": "Only in the answer of `create_workflow` and `update_workflow`: the review of the saved draft with the rules of publishing, as `get_workflow_validation` gives it. Fix each issue as its `hint` says and save again.",
            "example": {
              "workflow_uuid": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
              "draft_version": 2,
              "publishable": false,
              "counts": {
                "incomplete": 1,
                "error": 0,
                "warning": 0
              },
              "issues": [
                {
                  "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalog_id": "wait-duration",
                  "field": "durationValue",
                  "code": "missing_configuration",
                  "severity": "incomplete",
                  "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              ]
            },
            "readOnly": true
          }
        }
      },
      "Workflow.WorkflowCreateInput": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the workflow, 1 to 120 characters. Surrounding spaces are removed.",
            "example": "New companies: follow up in 2 days",
            "minLength": 1,
            "maxLength": 120
          },
          "definition": {
            "type": [
              "object",
              "null"
            ],
            "description": "The whole draft of the workflow: a declarative document in format 3, with its keys in camelCase exactly as `get_workflow` returns it in `definition` (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order: every `next` points to a later node) have `uuid`, `catalogId` and `configuration`, and the nodes also `name`, `next`, `branches` and `body`. Which pieces (`catalogId`) exist: `list_workflow_pieces`. How each piece is configured: the `automation_workflows_guide` guide of the MCP (`get_guide`). A draft may be incomplete: it is saved and `validation` says what is missing. Missing or `null` creates a blank draft (no triggers and no steps).",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "company",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "9d4e1f3a-6b2c-4d8e-a1f0-3c5b7e9d2a41",
                  "catalogId": "record-created",
                  "configuration": {
                    "filter": null,
                    "origins": [
                      "manual",
                      "api",
                      "form",
                      "mailbox",
                      "automation"
                    ],
                    "recordType": "company"
                  },
                  "next": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                }
              ],
              "nodes": [
                {
                  "uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationUnit": "days",
                    "durationValue": 2
                  },
                  "next": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "branches": [],
                  "body": null
                },
                {
                  "uuid": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "catalogId": "end",
                  "name": null,
                  "configuration": {},
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            }
          }
        }
      },
      "Workflow.WorkflowCreateInput.jsonld": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the workflow, 1 to 120 characters. Surrounding spaces are removed.",
            "example": "New companies: follow up in 2 days",
            "minLength": 1,
            "maxLength": 120
          },
          "definition": {
            "type": [
              "object",
              "null"
            ],
            "description": "The whole draft of the workflow: a declarative document in format 3, with its keys in camelCase exactly as `get_workflow` returns it in `definition` (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order: every `next` points to a later node) have `uuid`, `catalogId` and `configuration`, and the nodes also `name`, `next`, `branches` and `body`. Which pieces (`catalogId`) exist: `list_workflow_pieces`. How each piece is configured: the `automation_workflows_guide` guide of the MCP (`get_guide`). A draft may be incomplete: it is saved and `validation` says what is missing. Missing or `null` creates a blank draft (no triggers and no steps).",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "company",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "9d4e1f3a-6b2c-4d8e-a1f0-3c5b7e9d2a41",
                  "catalogId": "record-created",
                  "configuration": {
                    "filter": null,
                    "origins": [
                      "manual",
                      "api",
                      "form",
                      "mailbox",
                      "automation"
                    ],
                    "recordType": "company"
                  },
                  "next": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                }
              ],
              "nodes": [
                {
                  "uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationUnit": "days",
                    "durationValue": 2
                  },
                  "next": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "branches": [],
                  "body": null
                },
                {
                  "uuid": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "catalogId": "end",
                  "name": null,
                  "configuration": {},
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            }
          }
        }
      },
      "Workflow.WorkflowEntryStateInput": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "entry_state"
        ],
        "properties": {
          "entry_state": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/WorkflowTriggerEntryState",
            "description": "`open` admits new entries again; `paused` admits none (what is already inside goes on).",
            "example": "paused"
          },
          "trigger_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Only the entries of this trigger of the published version (a `uuid` of `triggers` in `get_workflow`). Missing or `null`: the entries of the whole workflow (`entries_open`).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
          }
        }
      },
      "Workflow.WorkflowEntryStateInput.jsonld": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "entry_state"
        ],
        "properties": {
          "entry_state": {
            "type": [
              "string",
              "null"
            ],
            "$ref": "#/components/schemas/WorkflowTriggerEntryState",
            "description": "`open` admits new entries again; `paused` admits none (what is already inside goes on).",
            "example": "paused"
          },
          "trigger_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Only the entries of this trigger of the published version (a `uuid` of `triggers` in `get_workflow`). Missing or `null`: the entries of the whole workflow (`entries_open`).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
          }
        }
      },
      "Workflow.WorkflowPublishInput": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "expected_draft_version"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft you want to publish (from `get_workflow`, or the answer of your last `create_workflow` / `update_workflow`). If someone changed the workflow in between, nothing is published and the answer is 409 `draft_version_conflict`.",
            "example": 2,
            "minimum": 1
          }
        }
      },
      "Workflow.WorkflowPublishInput.jsonld": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "expected_draft_version"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft you want to publish (from `get_workflow`, or the answer of your last `create_workflow` / `update_workflow`). If someone changed the workflow in between, nothing is published and the answer is 409 `draft_version_conflict`.",
            "example": 2,
            "minimum": 1
          }
        }
      },
      "Workflow.WorkflowUpdateInput": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "expected_draft_version",
          "definition"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the workflow you read (with `get_workflow`, or the answer of your last `create_workflow` / `update_workflow`). If someone saved it in between, nothing is saved and the answer is 409 `draft_version_conflict`.",
            "example": 2,
            "minimum": 1
          },
          "definition": {
            "type": "object",
            "description": "The whole draft of the workflow: a declarative document in format 3, with its keys in camelCase exactly as `get_workflow` returns it in `definition` (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order: every `next` points to a later node) have `uuid`, `catalogId` and `configuration`, and the nodes also `name`, `next`, `branches` and `body`. Which pieces (`catalogId`) exist: `list_workflow_pieces`. How each piece is configured: the `automation_workflows_guide` guide of the MCP (`get_guide`). A draft may be incomplete: it is saved and `validation` says what is missing. It REPLACES the whole draft: send every trigger and node, not only the ones that change.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "company",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "9d4e1f3a-6b2c-4d8e-a1f0-3c5b7e9d2a41",
                  "catalogId": "record-created",
                  "configuration": {
                    "filter": null,
                    "origins": [
                      "manual",
                      "api",
                      "form",
                      "mailbox",
                      "automation"
                    ],
                    "recordType": "company"
                  },
                  "next": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                }
              ],
              "nodes": [
                {
                  "uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationUnit": "days",
                    "durationValue": 2
                  },
                  "next": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "branches": [],
                  "body": null
                },
                {
                  "uuid": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "catalogId": "end",
                  "name": null,
                  "configuration": {},
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            }
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "New name, 1 to 120 characters; surrounding spaces are removed. Missing or `null` keeps the current one.",
            "example": "New companies: follow up in 2 days",
            "minLength": 1,
            "maxLength": 120
          }
        }
      },
      "Workflow.WorkflowUpdateInput.jsonld": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "required": [
          "expected_draft_version",
          "definition"
        ],
        "properties": {
          "expected_draft_version": {
            "type": "integer",
            "description": "`draft_version` of the workflow you read (with `get_workflow`, or the answer of your last `create_workflow` / `update_workflow`). If someone saved it in between, nothing is saved and the answer is 409 `draft_version_conflict`.",
            "example": 2,
            "minimum": 1
          },
          "definition": {
            "type": "object",
            "description": "The whole draft of the workflow: a declarative document in format 3, with its keys in camelCase exactly as `get_workflow` returns it in `definition` (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order: every `next` points to a later node) have `uuid`, `catalogId` and `configuration`, and the nodes also `name`, `next`, `branches` and `body`. Which pieces (`catalogId`) exist: `list_workflow_pieces`. How each piece is configured: the `automation_workflows_guide` guide of the MCP (`get_guide`). A draft may be incomplete: it is saved and `validation` says what is missing. It REPLACES the whole draft: send every trigger and node, not only the ones that change.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "company",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "9d4e1f3a-6b2c-4d8e-a1f0-3c5b7e9d2a41",
                  "catalogId": "record-created",
                  "configuration": {
                    "filter": null,
                    "origins": [
                      "manual",
                      "api",
                      "form",
                      "mailbox",
                      "automation"
                    ],
                    "recordType": "company"
                  },
                  "next": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                }
              ],
              "nodes": [
                {
                  "uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationUnit": "days",
                    "durationValue": 2
                  },
                  "next": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "branches": [],
                  "body": null
                },
                {
                  "uuid": "e8b3d6f2-1a4c-4e7b-8d9f-5c2a0e6b4d13",
                  "catalogId": "end",
                  "name": null,
                  "configuration": {},
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            }
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "New name, 1 to 120 characters; surrounding spaces are removed. Missing or `null` keeps the current one.",
            "example": "New companies: follow up in 2 days",
            "minLength": 1,
            "maxLength": 120
          }
        }
      },
      "Workflow.jsonld": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "display_status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowDisplayStatus",
            "description": "The state a list shows. `draft`: never published. Otherwise `error` when some execution is blocked; otherwise `active` when `status` is `active`; otherwise `paused` (entries closed, whole workflow paused or commercial pause).",
            "example": "paused",
            "readOnly": true
          },
          "active_execution_count": {
            "type": "integer",
            "description": "Executions that have not ended: running, waiting or blocked.",
            "example": 14,
            "minimum": 0,
            "readOnly": true
          },
          "blocked_execution_count": {
            "type": "integer",
            "description": "Blocked executions: they wait for someone to resolve them in the app.",
            "example": 0,
            "minimum": 0,
            "readOnly": true
          },
          "last_execution_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the most recent execution started, whatever its state, ISO 8601. `null` when it has none.",
            "example": "2026-11-11T08:05:12+00:00",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          },
          "validation": {
            "type": "object",
            "properties": {
              "workflow_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the workflow.",
                "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
              },
              "draft_version": {
                "type": "integer",
                "description": "`draft_version` of the draft that was reviewed.",
                "example": 2,
                "minimum": 1
              },
              "publishable": {
                "type": "boolean",
                "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
                "example": false
              },
              "counts": {
                "type": "object",
                "properties": {
                  "incomplete": {
                    "type": "integer",
                    "description": "Issues that are something to fill in; they block publishing.",
                    "example": 1,
                    "minimum": 0
                  },
                  "error": {
                    "type": "integer",
                    "description": "Issues that are something wrong; they block publishing.",
                    "example": 0,
                    "minimum": 0
                  },
                  "warning": {
                    "type": "integer",
                    "description": "Issues worth checking; they do not block publishing.",
                    "example": 0,
                    "minimum": 0
                  }
                },
                "description": "How many issues of each severity.",
                "example": {
                  "incomplete": 1,
                  "error": 0,
                  "warning": 0
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "node_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                      "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                    },
                    "catalog_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                      "example": "wait-duration"
                    },
                    "field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                      "example": "durationValue"
                    },
                    "code": {
                      "$ref": "#/components/schemas/WorkflowIssueCode",
                      "description": "What the issue is about.",
                      "example": "missing_configuration"
                    },
                    "severity": {
                      "$ref": "#/components/schemas/WorkflowIssueSeverity",
                      "description": "`incomplete` and `error` block publishing; `warning` does not.",
                      "example": "incomplete"
                    },
                    "hint": {
                      "type": "string",
                      "description": "What the code means and how to fix it, in English.",
                      "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                    }
                  }
                },
                "description": "The issues, in the order of the document; empty when there is nothing to fix.",
                "example": [
                  {
                    "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                    "catalog_id": "wait-duration",
                    "field": "durationValue",
                    "code": "missing_configuration",
                    "severity": "incomplete",
                    "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                  }
                ]
              }
            },
            "description": "Only in the answer of `create_workflow` and `update_workflow`: the review of the saved draft with the rules of publishing, as `get_workflow_validation` gives it. Fix each issue as its `hint` says and save again.",
            "example": {
              "workflow_uuid": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
              "draft_version": 2,
              "publishable": false,
              "counts": {
                "incomplete": 1,
                "error": 0,
                "warning": 0
              },
              "issues": [
                {
                  "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalog_id": "wait-duration",
                  "field": "durationValue",
                  "code": "missing_configuration",
                  "severity": "incomplete",
                  "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              ]
            },
            "readOnly": true
          }
        }
      },
      "Workflow.jsonld-workflow.list": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "display_status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowDisplayStatus",
            "description": "The state a list shows. `draft`: never published. Otherwise `error` when some execution is blocked; otherwise `active` when `status` is `active`; otherwise `paused` (entries closed, whole workflow paused or commercial pause).",
            "example": "paused",
            "readOnly": true
          },
          "active_execution_count": {
            "type": "integer",
            "description": "Executions that have not ended: running, waiting or blocked.",
            "example": 14,
            "minimum": 0,
            "readOnly": true
          },
          "blocked_execution_count": {
            "type": "integer",
            "description": "Blocked executions: they wait for someone to resolve them in the app.",
            "example": 0,
            "minimum": 0,
            "readOnly": true
          },
          "last_execution_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the most recent execution started, whatever its state, ISO 8601. `null` when it has none.",
            "example": "2026-11-11T08:05:12+00:00",
            "readOnly": true
          }
        }
      },
      "Workflow.jsonld-workflow.read": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          }
        }
      },
      "Workflow.jsonld-workflow.read_workflow.validation": {
        "type": "object",
        "description": "Workflows of the new automation engine in the public API (F7, task B4; writes since the plan «flujos en la API pública», T7 and T8). It\nreads them (`list_workflows`, `get_workflow`), creates them and saves their draft (`create_workflow`, `update_workflow`) and runs\ntheir lifecycle (`publish_workflow`, `pause_workflow`, `resume_workflow`, `set_workflow_entry_state`, `delete_workflow`), so that an\nexternal client or an AI, through the public MCP, can build, publish and run a workflow end to end; the review of the draft is\n{@see WorkflowValidationResource}. Each provider or processor checks its capability before the use case\n({@see \\App\\Application\\Automation\\ApiWorkflowAccess}: `automations.read` to read, `automations.work` to create and save,\n`automations.manage` for the lifecycle, as in the internal API), because API Platform evaluates `security` after the provider; the\nrules, the visibility, CRM in the plan, the plan limit of automations and the audit (origin `api`) are those of the CoreBundle use\ncases the internal API and Maia run (`Service\\App\\Automation\\Workflows`).\n\nThe list gives the summary (with the execution counts); `get_workflow` the whole workflow with its draft (`definition`, the format 3\ndocument as stored, in camelCase like the internal API: it is a declarative document, not API fields), the triggers of the published\nversion, the versions and the responsible. Creating and saving answer the same workflow plus `validation` (the review of the saved\ndraft) and neither publishes nor starts anything. Publishing has no confirmation step (decision of Sergio: an external API does not\ntreat an AI differently): its side effects are explained in its description, as in `automation_activate`. The lifecycle operations\nanswer the workflow as `get_workflow` reads it, and `delete_workflow` nothing (204). A workflow that the account does not have is 404\n`workflow_not_found`.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "Name of the workflow, up to 120 characters.",
            "example": "Web leads: task for the owner in 2 days",
            "maxLength": 120,
            "readOnly": true
          },
          "status": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowStatus",
            "description": "State of the workflow. `draft`: never published. `active`: published, with its entries open and not paused. `paused`: published, but its entries are closed or the whole workflow is paused (`paused_at`). `commercial-paused`: paused by Easymailing because the account lost the CRM plan its published version needs; it is reviewed and reactivated in the app.",
            "example": "paused",
            "readOnly": true
          },
          "published_revision": {
            "type": "integer",
            "description": "Revision number of the current published version; 0 when it was never published.",
            "example": 2,
            "minimum": 0,
            "readOnly": true
          },
          "unpublished_changes": {
            "type": "boolean",
            "description": "The draft differs from the published version: what is being edited is not what runs until it is published.",
            "example": false,
            "readOnly": true
          },
          "trigger_catalog_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`catalogId` of each trigger of the draft, in order. `list_workflow_pieces` lists them.",
            "example": [
              "record-created"
            ],
            "readOnly": true
          },
          "entries_open": {
            "type": "boolean",
            "description": "The workflow admits new entries (its global entry switch). False for a workflow never published. A trigger can still be paused on its own: see `triggers`.",
            "example": true,
            "readOnly": true
          },
          "paused_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Since when the whole workflow is paused (nothing enters and no execution moves on), ISO 8601. `null` when it is not; a commercial pause does not set it.",
            "example": "2026-11-11T10:30:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the workflow was last edited or published, ISO 8601.",
            "example": "2026-11-10T16:20:00+00:00",
            "readOnly": true
          },
          "updated_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "UUID of the account member who last edited or published it.",
            "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
            "readOnly": true
          },
          "draft_version": {
            "type": "integer",
            "description": "Version of the workflow, starting at 1: it grows each time its draft is saved or it is published (opening or pausing entries, pausing and resuming do not change it). Always send the last value you read. Two reads with the same value saw the same draft.",
            "example": 7,
            "minimum": 1,
            "readOnly": true
          },
          "definition": {
            "type": "object",
            "description": "The draft of the workflow: a declarative document in format 3, with its keys in camelCase as the editor stores them (it is not translated to the snake_case of the API). `formatVersion` is 3; `settings` has `rootSubjectType`, `audienceUuid` and `exitWhen`; `triggers` and `nodes` (in reading order, every `next` points to a later node) have `uuid`, `catalogId` (see `list_workflow_pieces`) and `configuration`, which depends on the piece. A draft can be incomplete: only a published version runs.",
            "example": {
              "formatVersion": 3,
              "settings": {
                "rootSubjectType": "contact",
                "audienceUuid": null,
                "exitWhen": null
              },
              "triggers": [
                {
                  "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                  "catalogId": "record-created",
                  "configuration": {
                    "recordType": "contact"
                  },
                  "next": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                }
              ],
              "nodes": [
                {
                  "uuid": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                  "catalogId": "wait-duration",
                  "name": null,
                  "configuration": {
                    "durationValue": 2,
                    "durationUnit": "days"
                  },
                  "next": null,
                  "branches": [],
                  "body": null
                }
              ]
            },
            "readOnly": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the trigger, as in `definition.triggers[].uuid`.",
                  "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
                },
                "entry_state": {
                  "$ref": "#/components/schemas/WorkflowTriggerEntryState",
                  "description": "Whether this trigger admits new entries. The workflow also needs `entries_open`.",
                  "example": "open"
                },
                "published_since_revision": {
                  "type": "integer",
                  "description": "The first revision of the uninterrupted run of published versions, up to the current one, that has this trigger.",
                  "example": 1,
                  "minimum": 1
                }
              }
            },
            "description": "Triggers of the current published version and their entry state. Empty for a workflow never published.",
            "example": [
              {
                "uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
                "entry_state": "open",
                "published_since_revision": 1
              }
            ],
            "readOnly": true
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "revision": {
                  "type": "integer",
                  "description": "Revision number, starting at 1.",
                  "example": 2,
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was published, ISO 8601.",
                  "example": "2026-11-10T16:20:00+00:00"
                },
                "published_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "UUID of the account member who published it; `null` when it is not known.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "node_count": {
                  "type": "integer",
                  "description": "Steps, waits and containers in that version.",
                  "example": 2,
                  "minimum": 0
                }
              }
            },
            "description": "Published versions, newest first. Empty for a workflow never published.",
            "example": [
              {
                "revision": 2,
                "published_at": "2026-11-10T16:20:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              },
              {
                "revision": 1,
                "published_at": "2026-11-03T09:00:00+00:00",
                "published_by": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57",
                "node_count": 1
              }
            ],
            "readOnly": true
          },
          "resuming": {
            "type": "boolean",
            "description": "A resume of the whole workflow is still moving the waits of the pause in the background; `paused_at` stays set until it ends.",
            "example": false,
            "readOnly": true
          },
          "responsible": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the account member responsible for the workflow.",
                "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
              },
              "name": {
                "type": "string",
                "description": "Their name, or their email when they have none. A member removed from the account reads as «Deleted user», in the language of the person behind the credentials.",
                "example": "Ana García"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Their email; `null` for a removed member.",
                "example": "ana@example.com"
              },
              "can_act": {
                "type": "boolean",
                "description": "Whether the responsible can act now. False when they were removed, deactivated or lost access: the workflow does not admit entries until someone else takes over in the app.",
                "example": true
              }
            },
            "description": "Who is responsible for the workflow: its executions act on their behalf.",
            "readOnly": true
          },
          "validation": {
            "type": "object",
            "properties": {
              "workflow_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "UUID of the workflow.",
                "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
              },
              "draft_version": {
                "type": "integer",
                "description": "`draft_version` of the draft that was reviewed.",
                "example": 2,
                "minimum": 1
              },
              "publishable": {
                "type": "boolean",
                "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
                "example": false
              },
              "counts": {
                "type": "object",
                "properties": {
                  "incomplete": {
                    "type": "integer",
                    "description": "Issues that are something to fill in; they block publishing.",
                    "example": 1,
                    "minimum": 0
                  },
                  "error": {
                    "type": "integer",
                    "description": "Issues that are something wrong; they block publishing.",
                    "example": 0,
                    "minimum": 0
                  },
                  "warning": {
                    "type": "integer",
                    "description": "Issues worth checking; they do not block publishing.",
                    "example": 0,
                    "minimum": 0
                  }
                },
                "description": "How many issues of each severity.",
                "example": {
                  "incomplete": 1,
                  "error": 0,
                  "warning": 0
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "node_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                      "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                    },
                    "catalog_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                      "example": "wait-duration"
                    },
                    "field": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                      "example": "durationValue"
                    },
                    "code": {
                      "$ref": "#/components/schemas/WorkflowIssueCode",
                      "description": "What the issue is about.",
                      "example": "missing_configuration"
                    },
                    "severity": {
                      "$ref": "#/components/schemas/WorkflowIssueSeverity",
                      "description": "`incomplete` and `error` block publishing; `warning` does not.",
                      "example": "incomplete"
                    },
                    "hint": {
                      "type": "string",
                      "description": "What the code means and how to fix it, in English.",
                      "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                    }
                  }
                },
                "description": "The issues, in the order of the document; empty when there is nothing to fix.",
                "example": [
                  {
                    "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                    "catalog_id": "wait-duration",
                    "field": "durationValue",
                    "code": "missing_configuration",
                    "severity": "incomplete",
                    "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                  }
                ]
              }
            },
            "description": "Only in the answer of `create_workflow` and `update_workflow`: the review of the saved draft with the rules of publishing, as `get_workflow_validation` gives it. Fix each issue as its `hint` says and save again.",
            "example": {
              "workflow_uuid": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
              "draft_version": 2,
              "publishable": false,
              "counts": {
                "incomplete": 1,
                "error": 0,
                "warning": 0
              },
              "issues": [
                {
                  "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                  "catalog_id": "wait-duration",
                  "field": "durationValue",
                  "code": "missing_configuration",
                  "severity": "incomplete",
                  "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              ]
            },
            "readOnly": true
          }
        }
      },
      "WorkflowAnswerField-workflow_answer_field.read": {
        "type": "object",
        "description": "`list_workflow_answer_fields` (condiciones de flujos, Task 6d): the answer fields of a form as the «Only if» of «Form submitted»\n(`answersFilter` of `marketing-form-completed`) takes them, from `WorkflowFormAnswerFields` of CoreBundle: the ids and types the engine\nvalidates with, their operators, and the label and options of the design. `get_subscription_form` does not publish the fields of a form\nand is shared with the classic panel; this list is the one of the workflow filter, also for «any form», which has no form to read.",
        "deprecated": false,
        "properties": {
          "field": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition of `answersFilter`: the key of the field in the current publication of the form.",
            "example": "city",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Label of the field in the design of the form (its `field` when it has none).",
            "example": "City",
            "readOnly": true
          },
          "type": {
            "default": "text",
            "example": "text",
            "type": "string",
            "description": "Form of the answer: `text` (a text; also a choice, a date or a yes/no) or `number` (number, integer, decimal, percentage and the amount of money). It decides the operators.",
            "readOnly": true
          },
          "options": {
            "type": "array",
            "description": "The options of a choice in the design of the form: the answer is their `value` (see **Values** of the operation); empty for the other fields. The engine does not check that a value is one of them.",
            "example": [
              {
                "value": "madrid",
                "label": "Madrid"
              }
            ],
            "items": {
              "type": "object"
            },
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (`null`) or `scalar` (`{\"value\": <one value of the form of `type`>}`). Text: `is`, `isNot`, `contains`, `startsWith`, `isEmpty`, `isNotEmpty`; number: `is`, `greaterThan`, `lessThan`, `isEmpty`, `isNotEmpty`.",
            "example": [
              {
                "id": "is",
                "value_shape": "scalar"
              },
              {
                "id": "isEmpty",
                "value_shape": "none"
              }
            ],
            "items": {
              "type": "object"
            },
            "readOnly": true
          }
        }
      },
      "WorkflowAnswerField.jsonld-workflow_answer_field.read": {
        "type": "object",
        "description": "`list_workflow_answer_fields` (condiciones de flujos, Task 6d): the answer fields of a form as the «Only if» of «Form submitted»\n(`answersFilter` of `marketing-form-completed`) takes them, from `WorkflowFormAnswerFields` of CoreBundle: the ids and types the engine\nvalidates with, their operators, and the label and options of the design. `get_subscription_form` does not publish the fields of a form\nand is shared with the classic panel; this list is the one of the workflow filter, also for «any form», which has no form to read.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "field": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition of `answersFilter`: the key of the field in the current publication of the form.",
            "example": "city",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Label of the field in the design of the form (its `field` when it has none).",
            "example": "City",
            "readOnly": true
          },
          "type": {
            "default": "text",
            "example": "text",
            "type": "string",
            "description": "Form of the answer: `text` (a text; also a choice, a date or a yes/no) or `number` (number, integer, decimal, percentage and the amount of money). It decides the operators.",
            "readOnly": true
          },
          "options": {
            "type": "array",
            "description": "The options of a choice in the design of the form: the answer is their `value` (see **Values** of the operation); empty for the other fields. The engine does not check that a value is one of them.",
            "example": [
              {
                "value": "madrid",
                "label": "Madrid"
              }
            ],
            "items": {
              "type": "object"
            },
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (`null`) or `scalar` (`{\"value\": <one value of the form of `type`>}`). Text: `is`, `isNot`, `contains`, `startsWith`, `isEmpty`, `isNotEmpty`; number: `is`, `greaterThan`, `lessThan`, `isEmpty`, `isNotEmpty`.",
            "example": [
              {
                "id": "is",
                "value_shape": "scalar"
              },
              {
                "id": "isEmpty",
                "value_shape": "none"
              }
            ],
            "items": {
              "type": "object"
            },
            "readOnly": true
          }
        }
      },
      "WorkflowExecution-workflow_execution.list": {
        "type": "object",
        "description": "Executions of a workflow of the new automation engine in the public API (F7, task B5). Read only, with the visibility of the internal\nAPI (`WorkflowExecutionVisibility`, contract § 14): an execution whose subject the caller cannot read does not exist for them (404\n`workflow_execution_not_found`, as one of another workflow), a record value of `outputs` or `trace` they cannot read is\n`{\"redacted\": true}`, and a subject whose record they cannot read in full (the pipeline of an opportunity) is `hidden`: a protected\nrecord, without name. Every capability is read under the token's ceiling ({@see \\App\\Application\\Crm\\CeiledApiAccountAccess}).\n\n`list_workflow_executions` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next` (the same for every item of a page: the one after the last), and {@see ForwardOnlyCursor} drops the `hydra:previous` it\nwould also build. The last page with items still links to the empty page that ends the walk. It is never published.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the execution.",
            "example": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
            "readOnly": true
          },
          "workflow": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the workflow (`get_workflow`).",
            "example": "/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "revision": {
            "default": 1,
            "example": 2,
            "type": "integer",
            "description": "The published version it runs on.",
            "minimum": 1,
            "readOnly": true
          },
          "trigger_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The trigger it entered by (`definition.triggers[].uuid` of that version).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
            "readOnly": true
          },
          "subject": {
            "type": "object",
            "properties": {
              "type": {
                "$ref": "#/components/schemas/WorkflowSubjectType",
                "description": "What the execution runs for.",
                "example": "contact"
              },
              "uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The record; `null` for a received webhook request.",
                "example": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Its readable name (contact: name or email; company: name; opportunity: title; task: title); `null` for a webhook request, a record that no longer exists or a protected record (see `state`).",
                "example": "Ana García"
              },
              "detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Contact: email; company: primary domain; opportunity: its company; `null` otherwise.",
                "example": "ana@example.com"
              },
              "state": {
                "$ref": "#/components/schemas/WorkflowSubjectState",
                "description": "`visible`, `hidden` (a protected record: no name or detail) or `deleted`.",
                "example": "visible"
              }
            },
            "description": "For whom the execution runs.",
            "readOnly": true
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowExecutionState",
            "description": "State of the execution. `waiting` is a timed wait; `active`, anything else still on its way.",
            "example": "waiting",
            "readOnly": true
          },
          "cause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is blocked, stopped or canceled, as the engine records it (for example `blocked_unresolved` when a blocked execution expired, or `canceled_by_user`); `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "canceled_by_user"
            ],
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it started, ISO 8601.",
            "example": "2026-11-10T09:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed, ISO 8601.",
            "example": "2026-11-10T09:00:01+00:00",
            "readOnly": true
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it runs next (the end of a wait, a retry or the check of an effect), ISO 8601; `null` otherwise.",
            "example": "2026-11-12T09:00:00+00:00",
            "readOnly": true
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Only while blocked: when it is canceled (`blocked_unresolved`) unless someone resolves it, 30 days after it blocked plus the time its workflow was paused. While the workflow is paused the expiry is frozen: this is the instant it would have if the pause were lifted now. `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "2026-12-10T09:00:00+00:00"
            ],
            "readOnly": true
          },
          "current_node_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The step it is at, or where it ended (`definition.nodes[].uuid` of the version it runs on).",
            "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
            "readOnly": true
          },
          "current_iteration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "for_each_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "The «For each» step.",
                "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
              },
              "index": {
                "type": "integer",
                "description": "The round, from 0.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "The round of a «For each» it is in; `null` outside any loop.",
            "readOnly": true
          },
          "detail_purged": {
            "type": "boolean",
            "description": "The route of the execution was purged (90 days after it ended): `steps` is empty and `summary` is what is left.",
            "example": false,
            "readOnly": true
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "description": "What is kept of the route after the purge, for 24 months: the number of steps per step state (`steps`), their `total`, how many were rounds of a «For each» (`iterations`) and the trigger it entered by (`trigger_uuid`). `null` while the route exists.",
            "example": null,
            "examples": [
              null,
              {
                "steps": {
                  "completed": 3
                },
                "total": 3,
                "iterations": 0,
                "trigger_uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
              }
            ],
            "readOnly": true
          }
        }
      },
      "WorkflowExecution-workflow_execution.read": {
        "type": "object",
        "description": "Executions of a workflow of the new automation engine in the public API (F7, task B5). Read only, with the visibility of the internal\nAPI (`WorkflowExecutionVisibility`, contract § 14): an execution whose subject the caller cannot read does not exist for them (404\n`workflow_execution_not_found`, as one of another workflow), a record value of `outputs` or `trace` they cannot read is\n`{\"redacted\": true}`, and a subject whose record they cannot read in full (the pipeline of an opportunity) is `hidden`: a protected\nrecord, without name. Every capability is read under the token's ceiling ({@see \\App\\Application\\Crm\\CeiledApiAccountAccess}).\n\n`list_workflow_executions` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next` (the same for every item of a page: the one after the last), and {@see ForwardOnlyCursor} drops the `hydra:previous` it\nwould also build. The last page with items still links to the empty page that ends the walk. It is never published.",
        "deprecated": false,
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the execution.",
            "example": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
            "readOnly": true
          },
          "workflow": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the workflow (`get_workflow`).",
            "example": "/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "revision": {
            "default": 1,
            "example": 2,
            "type": "integer",
            "description": "The published version it runs on.",
            "minimum": 1,
            "readOnly": true
          },
          "trigger_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The trigger it entered by (`definition.triggers[].uuid` of that version).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
            "readOnly": true
          },
          "subject": {
            "type": "object",
            "properties": {
              "type": {
                "$ref": "#/components/schemas/WorkflowSubjectType",
                "description": "What the execution runs for.",
                "example": "contact"
              },
              "uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The record; `null` for a received webhook request.",
                "example": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Its readable name (contact: name or email; company: name; opportunity: title; task: title); `null` for a webhook request, a record that no longer exists or a protected record (see `state`).",
                "example": "Ana García"
              },
              "detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Contact: email; company: primary domain; opportunity: its company; `null` otherwise.",
                "example": "ana@example.com"
              },
              "state": {
                "$ref": "#/components/schemas/WorkflowSubjectState",
                "description": "`visible`, `hidden` (a protected record: no name or detail) or `deleted`.",
                "example": "visible"
              }
            },
            "description": "For whom the execution runs.",
            "readOnly": true
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowExecutionState",
            "description": "State of the execution. `waiting` is a timed wait; `active`, anything else still on its way.",
            "example": "waiting",
            "readOnly": true
          },
          "cause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is blocked, stopped or canceled, as the engine records it (for example `blocked_unresolved` when a blocked execution expired, or `canceled_by_user`); `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "canceled_by_user"
            ],
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it started, ISO 8601.",
            "example": "2026-11-10T09:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed, ISO 8601.",
            "example": "2026-11-10T09:00:01+00:00",
            "readOnly": true
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it runs next (the end of a wait, a retry or the check of an effect), ISO 8601; `null` otherwise.",
            "example": "2026-11-12T09:00:00+00:00",
            "readOnly": true
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Only while blocked: when it is canceled (`blocked_unresolved`) unless someone resolves it, 30 days after it blocked plus the time its workflow was paused. While the workflow is paused the expiry is frozen: this is the instant it would have if the pause were lifted now. `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "2026-12-10T09:00:00+00:00"
            ],
            "readOnly": true
          },
          "current_node_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The step it is at, or where it ended (`definition.nodes[].uuid` of the version it runs on).",
            "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
            "readOnly": true
          },
          "current_iteration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "for_each_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "The «For each» step.",
                "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
              },
              "index": {
                "type": "integer",
                "description": "The round, from 0.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "The round of a «For each» it is in; `null` outside any loop.",
            "readOnly": true
          },
          "detail_purged": {
            "type": "boolean",
            "description": "The route of the execution was purged (90 days after it ended): `steps` is empty and `summary` is what is left.",
            "example": false,
            "readOnly": true
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "description": "What is kept of the route after the purge, for 24 months: the number of steps per step state (`steps`), their `total`, how many were rounds of a «For each» (`iterations`) and the trigger it entered by (`trigger_uuid`). `null` while the route exists.",
            "example": null,
            "examples": [
              null,
              {
                "steps": {
                  "completed": 3
                },
                "total": 3,
                "iterations": 0,
                "trigger_uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
              }
            ],
            "readOnly": true
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "node_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The step (`definition.nodes[].uuid` of the version it runs on).",
                  "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                },
                "catalog_id": {
                  "type": "string",
                  "description": "The piece (`list_workflow_pieces`).",
                  "example": "wait-duration"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The name of the step in that version.",
                  "example": null,
                  "examples": [
                    null,
                    "Wait 2 days"
                  ]
                },
                "iteration": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "for_each_uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The «For each» step.",
                      "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
                    },
                    "index": {
                      "type": "integer",
                      "description": "The round, from 0.",
                      "example": 0,
                      "minimum": 0
                    }
                  },
                  "description": "The round of a «For each» this row belongs to; `null` outside any loop."
                },
                "state": {
                  "$ref": "#/components/schemas/WorkflowExecutionStepState",
                  "description": "State of the step.",
                  "example": "waiting"
                },
                "branch_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The branch it took, in a step with branches (`definition.nodes[].branches[].key`).",
                  "example": null,
                  "examples": [
                    null,
                    "found"
                  ]
                },
                "outputs": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "What the step produced once completed, as the engine records it (keys in camelCase); a record the user cannot read is `{\"redacted\": true}`.",
                  "example": null,
                  "examples": [
                    null,
                    {
                      "id": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
                    }
                  ]
                },
                "trace": {
                  "type": "object",
                  "description": "What the step evaluated and decided, as the engine records it (for a «For each», `items`, `taken` and `total`), and `resolutions` of who retried, skipped or canceled it; a record the user cannot read is `{\"redacted\": true}`. The instants the engine traces are ISO 8601 in UTC (`+00:00`), like every date of the API.",
                  "example": {
                    "taken": 2,
                    "total": 2
                  }
                },
                "attempts": {
                  "type": "integer",
                  "description": "Times it was tried.",
                  "example": 1,
                  "minimum": 0
                },
                "cause": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why it blocked, stopped or failed, as the engine records it; `null` otherwise.",
                  "example": null,
                  "examples": [
                    null,
                    "piece_unavailable"
                  ]
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the step started, ISO 8601.",
                  "example": "2026-11-10T09:00:00+00:00"
                },
                "finished_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When it finished, ISO 8601; `null` while it goes on.",
                  "example": null,
                  "examples": [
                    null,
                    "2026-11-10T09:00:01+00:00"
                  ]
                },
                "wait_ends_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "For a wait: when it ends, ISO 8601; `null` otherwise.",
                  "example": "2026-11-12T09:00:00+00:00"
                },
                "effect_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Idempotency key of the effect of the step (an email, a record change…); `null` for a step without effect.",
                  "example": null,
                  "examples": [
                    null,
                    "aut3:2b5e8c1d-6f4a-5b3c-9d2e-1f0a9b8c7d6e"
                  ]
                }
              }
            },
            "description": "Its exact route: a row per step (and per round of a «For each»), in the order they started. Empty once purged (`detail_purged`).",
            "readOnly": true
          },
          "resolutions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "description": "What was done: `cancel`.",
                  "example": "cancel"
                },
                "resolved_by": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the account member who did it.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "resolved_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When, ISO 8601.",
                  "example": "2026-11-10T10:00:00+00:00"
                }
              }
            },
            "description": "Who resolved it and when, when no step row could keep it (a cancel after its last step ended). Usually empty: the resolutions of a step are in its `trace`.",
            "example": [],
            "readOnly": true
          }
        }
      },
      "WorkflowExecution.jsonld-workflow_execution.list": {
        "type": "object",
        "description": "Executions of a workflow of the new automation engine in the public API (F7, task B5). Read only, with the visibility of the internal\nAPI (`WorkflowExecutionVisibility`, contract § 14): an execution whose subject the caller cannot read does not exist for them (404\n`workflow_execution_not_found`, as one of another workflow), a record value of `outputs` or `trace` they cannot read is\n`{\"redacted\": true}`, and a subject whose record they cannot read in full (the pipeline of an opportunity) is `hidden`: a protected\nrecord, without name. Every capability is read under the token's ceiling ({@see \\App\\Application\\Crm\\CeiledApiAccountAccess}).\n\n`list_workflow_executions` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next` (the same for every item of a page: the one after the last), and {@see ForwardOnlyCursor} drops the `hydra:previous` it\nwould also build. The last page with items still links to the empty page that ends the walk. It is never published.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the execution.",
            "example": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
            "readOnly": true
          },
          "workflow": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the workflow (`get_workflow`).",
            "example": "/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "revision": {
            "default": 1,
            "example": 2,
            "type": "integer",
            "description": "The published version it runs on.",
            "minimum": 1,
            "readOnly": true
          },
          "trigger_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The trigger it entered by (`definition.triggers[].uuid` of that version).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
            "readOnly": true
          },
          "subject": {
            "type": "object",
            "properties": {
              "type": {
                "$ref": "#/components/schemas/WorkflowSubjectType",
                "description": "What the execution runs for.",
                "example": "contact"
              },
              "uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The record; `null` for a received webhook request.",
                "example": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Its readable name (contact: name or email; company: name; opportunity: title; task: title); `null` for a webhook request, a record that no longer exists or a protected record (see `state`).",
                "example": "Ana García"
              },
              "detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Contact: email; company: primary domain; opportunity: its company; `null` otherwise.",
                "example": "ana@example.com"
              },
              "state": {
                "$ref": "#/components/schemas/WorkflowSubjectState",
                "description": "`visible`, `hidden` (a protected record: no name or detail) or `deleted`.",
                "example": "visible"
              }
            },
            "description": "For whom the execution runs.",
            "readOnly": true
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowExecutionState",
            "description": "State of the execution. `waiting` is a timed wait; `active`, anything else still on its way.",
            "example": "waiting",
            "readOnly": true
          },
          "cause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is blocked, stopped or canceled, as the engine records it (for example `blocked_unresolved` when a blocked execution expired, or `canceled_by_user`); `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "canceled_by_user"
            ],
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it started, ISO 8601.",
            "example": "2026-11-10T09:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed, ISO 8601.",
            "example": "2026-11-10T09:00:01+00:00",
            "readOnly": true
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it runs next (the end of a wait, a retry or the check of an effect), ISO 8601; `null` otherwise.",
            "example": "2026-11-12T09:00:00+00:00",
            "readOnly": true
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Only while blocked: when it is canceled (`blocked_unresolved`) unless someone resolves it, 30 days after it blocked plus the time its workflow was paused. While the workflow is paused the expiry is frozen: this is the instant it would have if the pause were lifted now. `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "2026-12-10T09:00:00+00:00"
            ],
            "readOnly": true
          },
          "current_node_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The step it is at, or where it ended (`definition.nodes[].uuid` of the version it runs on).",
            "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
            "readOnly": true
          },
          "current_iteration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "for_each_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "The «For each» step.",
                "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
              },
              "index": {
                "type": "integer",
                "description": "The round, from 0.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "The round of a «For each» it is in; `null` outside any loop.",
            "readOnly": true
          },
          "detail_purged": {
            "type": "boolean",
            "description": "The route of the execution was purged (90 days after it ended): `steps` is empty and `summary` is what is left.",
            "example": false,
            "readOnly": true
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "description": "What is kept of the route after the purge, for 24 months: the number of steps per step state (`steps`), their `total`, how many were rounds of a «For each» (`iterations`) and the trigger it entered by (`trigger_uuid`). `null` while the route exists.",
            "example": null,
            "examples": [
              null,
              {
                "steps": {
                  "completed": 3
                },
                "total": 3,
                "iterations": 0,
                "trigger_uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
              }
            ],
            "readOnly": true
          }
        }
      },
      "WorkflowExecution.jsonld-workflow_execution.read": {
        "type": "object",
        "description": "Executions of a workflow of the new automation engine in the public API (F7, task B5). Read only, with the visibility of the internal\nAPI (`WorkflowExecutionVisibility`, contract § 14): an execution whose subject the caller cannot read does not exist for them (404\n`workflow_execution_not_found`, as one of another workflow), a record value of `outputs` or `trace` they cannot read is\n`{\"redacted\": true}`, and a subject whose record they cannot read in full (the pipeline of an opportunity) is `hidden`: a protected\nrecord, without name. Every capability is read under the token's ceiling ({@see \\App\\Application\\Crm\\CeiledApiAccountAccess}).\n\n`list_workflow_executions` pages forward only by cursor (`cursor[gt]`): `cursor` is the opaque position API Platform copies into\n`hydra:next` (the same for every item of a page: the one after the last), and {@see ForwardOnlyCursor} drops the `hydra:previous` it\nwould also build. The last page with items still links to the empty page that ends the walk. It is never published.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the execution.",
            "example": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
            "readOnly": true
          },
          "workflow": {
            "type": "string",
            "format": "iri-reference",
            "description": "IRI of the workflow (`get_workflow`).",
            "example": "/workflows/3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61",
            "readOnly": true
          },
          "revision": {
            "default": 1,
            "example": 2,
            "type": "integer",
            "description": "The published version it runs on.",
            "minimum": 1,
            "readOnly": true
          },
          "trigger_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The trigger it entered by (`definition.triggers[].uuid` of that version).",
            "example": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10",
            "readOnly": true
          },
          "subject": {
            "type": "object",
            "properties": {
              "type": {
                "$ref": "#/components/schemas/WorkflowSubjectType",
                "description": "What the execution runs for.",
                "example": "contact"
              },
              "uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The record; `null` for a received webhook request.",
                "example": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Its readable name (contact: name or email; company: name; opportunity: title; task: title); `null` for a webhook request, a record that no longer exists or a protected record (see `state`).",
                "example": "Ana García"
              },
              "detail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Contact: email; company: primary domain; opportunity: its company; `null` otherwise.",
                "example": "ana@example.com"
              },
              "state": {
                "$ref": "#/components/schemas/WorkflowSubjectState",
                "description": "`visible`, `hidden` (a protected record: no name or detail) or `deleted`.",
                "example": "visible"
              }
            },
            "description": "For whom the execution runs.",
            "readOnly": true
          },
          "state": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowExecutionState",
            "description": "State of the execution. `waiting` is a timed wait; `active`, anything else still on its way.",
            "example": "waiting",
            "readOnly": true
          },
          "cause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it is blocked, stopped or canceled, as the engine records it (for example `blocked_unresolved` when a blocked execution expired, or `canceled_by_user`); `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "canceled_by_user"
            ],
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it started, ISO 8601.",
            "example": "2026-11-10T09:00:00+00:00",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed, ISO 8601.",
            "example": "2026-11-10T09:00:01+00:00",
            "readOnly": true
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it runs next (the end of a wait, a retry or the check of an effect), ISO 8601; `null` otherwise.",
            "example": "2026-11-12T09:00:00+00:00",
            "readOnly": true
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Only while blocked: when it is canceled (`blocked_unresolved`) unless someone resolves it, 30 days after it blocked plus the time its workflow was paused. While the workflow is paused the expiry is frozen: this is the instant it would have if the pause were lifted now. `null` otherwise.",
            "example": null,
            "examples": [
              null,
              "2026-12-10T09:00:00+00:00"
            ],
            "readOnly": true
          },
          "current_node_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The step it is at, or where it ended (`definition.nodes[].uuid` of the version it runs on).",
            "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
            "readOnly": true
          },
          "current_iteration": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "for_each_uuid": {
                "type": "string",
                "format": "uuid",
                "description": "The «For each» step.",
                "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
              },
              "index": {
                "type": "integer",
                "description": "The round, from 0.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "The round of a «For each» it is in; `null` outside any loop.",
            "readOnly": true
          },
          "detail_purged": {
            "type": "boolean",
            "description": "The route of the execution was purged (90 days after it ended): `steps` is empty and `summary` is what is left.",
            "example": false,
            "readOnly": true
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "description": "What is kept of the route after the purge, for 24 months: the number of steps per step state (`steps`), their `total`, how many were rounds of a «For each» (`iterations`) and the trigger it entered by (`trigger_uuid`). `null` while the route exists.",
            "example": null,
            "examples": [
              null,
              {
                "steps": {
                  "completed": 3
                },
                "total": 3,
                "iterations": 0,
                "trigger_uuid": "0f9a7c52-1d3e-4b6a-8c2f-7e5d4a3b2c10"
              }
            ],
            "readOnly": true
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "node_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The step (`definition.nodes[].uuid` of the version it runs on).",
                  "example": "5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
                },
                "catalog_id": {
                  "type": "string",
                  "description": "The piece (`list_workflow_pieces`).",
                  "example": "wait-duration"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The name of the step in that version.",
                  "example": null,
                  "examples": [
                    null,
                    "Wait 2 days"
                  ]
                },
                "iteration": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "for_each_uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The «For each» step.",
                      "example": "8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f"
                    },
                    "index": {
                      "type": "integer",
                      "description": "The round, from 0.",
                      "example": 0,
                      "minimum": 0
                    }
                  },
                  "description": "The round of a «For each» this row belongs to; `null` outside any loop."
                },
                "state": {
                  "$ref": "#/components/schemas/WorkflowExecutionStepState",
                  "description": "State of the step.",
                  "example": "waiting"
                },
                "branch_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The branch it took, in a step with branches (`definition.nodes[].branches[].key`).",
                  "example": null,
                  "examples": [
                    null,
                    "found"
                  ]
                },
                "outputs": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "What the step produced once completed, as the engine records it (keys in camelCase); a record the user cannot read is `{\"redacted\": true}`.",
                  "example": null,
                  "examples": [
                    null,
                    {
                      "id": "7d1f0c2e-4b3a-4e8d-9c6b-2a1f0e9d8c7b"
                    }
                  ]
                },
                "trace": {
                  "type": "object",
                  "description": "What the step evaluated and decided, as the engine records it (for a «For each», `items`, `taken` and `total`), and `resolutions` of who retried, skipped or canceled it; a record the user cannot read is `{\"redacted\": true}`. The instants the engine traces are ISO 8601 in UTC (`+00:00`), like every date of the API.",
                  "example": {
                    "taken": 2,
                    "total": 2
                  }
                },
                "attempts": {
                  "type": "integer",
                  "description": "Times it was tried.",
                  "example": 1,
                  "minimum": 0
                },
                "cause": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why it blocked, stopped or failed, as the engine records it; `null` otherwise.",
                  "example": null,
                  "examples": [
                    null,
                    "piece_unavailable"
                  ]
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the step started, ISO 8601.",
                  "example": "2026-11-10T09:00:00+00:00"
                },
                "finished_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When it finished, ISO 8601; `null` while it goes on.",
                  "example": null,
                  "examples": [
                    null,
                    "2026-11-10T09:00:01+00:00"
                  ]
                },
                "wait_ends_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "For a wait: when it ends, ISO 8601; `null` otherwise.",
                  "example": "2026-11-12T09:00:00+00:00"
                },
                "effect_key": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Idempotency key of the effect of the step (an email, a record change…); `null` for a step without effect.",
                  "example": null,
                  "examples": [
                    null,
                    "aut3:2b5e8c1d-6f4a-5b3c-9d2e-1f0a9b8c7d6e"
                  ]
                }
              }
            },
            "description": "Its exact route: a row per step (and per round of a «For each»), in the order they started. Empty once purged (`detail_purged`).",
            "readOnly": true
          },
          "resolutions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "action": {
                  "type": "string",
                  "description": "What was done: `cancel`.",
                  "example": "cancel"
                },
                "resolved_by": {
                  "type": "string",
                  "format": "uuid",
                  "description": "UUID of the account member who did it.",
                  "example": "b7d3a1e6-5c28-4f90-8e14-2a6c9d0b3f57"
                },
                "resolved_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When, ISO 8601.",
                  "example": "2026-11-10T10:00:00+00:00"
                }
              }
            },
            "description": "Who resolved it and when, when no step row could keep it (a cancel after its last step ended). Usually empty: the resolutions of a step are in its `trace`.",
            "example": [],
            "readOnly": true
          }
        }
      },
      "WorkflowPiece-workflow_piece.read": {
        "type": "object",
        "description": "`list_workflow_pieces` (F7, task B4): the pieces that publishing a workflow accepts, as the internal API lists them for the editor\n(`ListPublishableWorkflowPieces`): every registered trigger and every step the runtime runs, each with the CRM plan it needs. In this\nhost the steps that run come from the static list of CoreBundle (`RunnableWorkflowSteps`), which a contract test in symfony keeps\nequal to the real handlers.",
        "deprecated": false,
        "properties": {
          "catalog_id": {
            "type": "string",
            "description": "Identifier of the piece: the `catalogId` of a trigger or node in the `definition` of a workflow.",
            "example": "wait-duration",
            "pattern": "^[a-z][a-z0-9-]{0,63}$"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowPieceKind",
            "description": "What the piece is: a trigger, a step, a wait or a container («For each»).",
            "example": "wait"
          },
          "required_plan": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowRequiredPlan",
            "description": "The CRM plan the piece needs by itself. A workflow with a `crm_pro` piece is not published on CRM Essentials.",
            "example": "crm_essentials"
          }
        }
      },
      "WorkflowPiece.jsonld-workflow_piece.read": {
        "type": "object",
        "description": "`list_workflow_pieces` (F7, task B4): the pieces that publishing a workflow accepts, as the internal API lists them for the editor\n(`ListPublishableWorkflowPieces`): every registered trigger and every step the runtime runs, each with the CRM plan it needs. In this\nhost the steps that run come from the static list of CoreBundle (`RunnableWorkflowSteps`), which a contract test in symfony keeps\nequal to the real handlers.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "catalog_id": {
            "type": "string",
            "description": "Identifier of the piece: the `catalogId` of a trigger or node in the `definition` of a workflow.",
            "example": "wait-duration",
            "pattern": "^[a-z][a-z0-9-]{0,63}$"
          },
          "kind": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowPieceKind",
            "description": "What the piece is: a trigger, a step, a wait or a container («For each»).",
            "example": "wait"
          },
          "required_plan": {
            "type": "string",
            "$ref": "#/components/schemas/WorkflowRequiredPlan",
            "description": "The CRM plan the piece needs by itself. A workflow with a `crm_pro` piece is not published on CRM Essentials.",
            "example": "crm_essentials"
          }
        }
      },
      "WorkflowRecordFilterField-workflow_record_filter_field.read": {
        "type": "object",
        "description": "`list_workflow_record_filter_fields` (condiciones de flujos R4): the fields a workflow filters a task, a note or a message of a\nconnected mailbox by, as the internal API gives them to the editor (`WorkflowRecordFilterFields` of CoreBundle), the same list the\nengine validates and searches with.",
        "deprecated": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition: `title`, `status`, `dueAt`… for a task, `content`, `author`, `createdAt` for a note, `message.subject`, `contact.owner`… for a mailbox message.",
            "example": "status",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Status",
            "readOnly": true
          },
          "value_kind": {
            "default": "text",
            "example": "option",
            "type": "string",
            "description": "Form of the value, one of four: `text` (a non-empty text), `option` (one of `options`), `date` (`YYYY-MM-DD`) or `user` (the `uuid` of a user of `list_account_members`).",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out) or `scalar` (one value of the form of `value_kind`). Text: `is`, `isNot`, `contains`, `startsWith`, `isEmpty`, `isNotEmpty`; option: `is`, `isNot`; date: `is`, `before`, `after` (and `isEmpty`, `isNotEmpty` when it can be missing); user: `is`, `isNot`, `isEmpty`, `isNotEmpty`.",
            "example": [
              {
                "id": "is",
                "value_shape": "scalar"
              },
              {
                "id": "isNot",
                "value_shape": "scalar"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "The values of an `option` field, to copy into `value` as they are; empty for the other kinds.",
            "example": [
              "open",
              "completed"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WorkflowRecordFilterField.jsonld-workflow_record_filter_field.read": {
        "type": "object",
        "description": "`list_workflow_record_filter_fields` (condiciones de flujos R4): the fields a workflow filters a task, a note or a message of a\nconnected mailbox by, as the internal API gives them to the editor (`WorkflowRecordFilterFields` of CoreBundle), the same list the\nengine validates and searches with.",
        "deprecated": false,
        "properties": {
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "type": "string",
            "description": "Identifier to put in `field` of a condition: `title`, `status`, `dueAt`… for a task, `content`, `author`, `createdAt` for a note, `message.subject`, `contact.owner`… for a mailbox message.",
            "example": "status",
            "readOnly": true
          },
          "label": {
            "type": "string",
            "description": "Name of the field in English, as Customer App shows it.",
            "example": "Status",
            "readOnly": true
          },
          "value_kind": {
            "default": "text",
            "example": "option",
            "type": "string",
            "description": "Form of the value, one of four: `text` (a non-empty text), `option` (one of `options`), `date` (`YYYY-MM-DD`) or `user` (the `uuid` of a user of `list_account_members`).",
            "readOnly": true
          },
          "operators": {
            "type": "array",
            "description": "Operators you can use with the field. `value_shape` says what `value` must be: `none` (leave it out) or `scalar` (one value of the form of `value_kind`). Text: `is`, `isNot`, `contains`, `startsWith`, `isEmpty`, `isNotEmpty`; option: `is`, `isNot`; date: `is`, `before`, `after` (and `isEmpty`, `isNotEmpty` when it can be missing); user: `is`, `isNot`, `isEmpty`, `isNotEmpty`.",
            "example": [
              {
                "id": "is",
                "value_shape": "scalar"
              },
              {
                "id": "isNot",
                "value_shape": "scalar"
              }
            ],
            "readOnly": true,
            "items": {
              "type": "object"
            }
          },
          "options": {
            "type": "array",
            "description": "The values of an `option` field, to copy into `value` as they are; empty for the other kinds.",
            "example": [
              "open",
              "completed"
            ],
            "readOnly": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WorkflowValidation-workflow_validation.read": {
        "type": "object",
        "description": "`get_workflow_validation`: the review of the SAVED draft of a workflow with the same rules as publishing, over the CoreBundle use\ncase the internal API and Maia run (`ValidateAutomationWorkflow`). It changes nothing. The same shape is the `validation` member\nof `create_workflow` and `update_workflow` ({@see WorkflowResource}) and the `issues` of their 422 `validation_failed`\n({@see \\App\\Api\\Error\\WorkflowErrorTranslator}); `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "workflow_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          },
          "draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft that was reviewed. Send it as `expected_draft_version` when you save the corrected document with `update_workflow`.",
            "example": 2,
            "minimum": 1
          },
          "publishable": {
            "type": "boolean",
            "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
            "example": false
          },
          "counts": {
            "default": {
              "incomplete": 0,
              "error": 0,
              "warning": 0
            },
            "example": {
              "incomplete": 1,
              "error": 0,
              "warning": 0
            },
            "type": "object",
            "properties": {
              "incomplete": {
                "type": "integer",
                "description": "Issues that are something to fill in; they block publishing.",
                "example": 1,
                "minimum": 0
              },
              "error": {
                "type": "integer",
                "description": "Issues that are something wrong; they block publishing.",
                "example": 0,
                "minimum": 0
              },
              "warning": {
                "type": "integer",
                "description": "Issues worth checking; they do not block publishing.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "How many issues of each severity."
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "node_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                  "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                },
                "catalog_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                  "example": "wait-duration"
                },
                "field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                  "example": "durationValue"
                },
                "code": {
                  "$ref": "#/components/schemas/WorkflowIssueCode",
                  "description": "What the issue is about.",
                  "example": "missing_configuration"
                },
                "severity": {
                  "$ref": "#/components/schemas/WorkflowIssueSeverity",
                  "description": "`incomplete` and `error` block publishing; `warning` does not.",
                  "example": "incomplete"
                },
                "hint": {
                  "type": "string",
                  "description": "What the code means and how to fix it, in English.",
                  "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              }
            },
            "description": "The issues, in the order of the document; empty when there is nothing to fix.",
            "example": [
              {
                "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                "catalog_id": "wait-duration",
                "field": "durationValue",
                "code": "missing_configuration",
                "severity": "incomplete",
                "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
              }
            ]
          }
        }
      },
      "WorkflowValidation.jsonld-workflow_validation.read": {
        "type": "object",
        "description": "`get_workflow_validation`: the review of the SAVED draft of a workflow with the same rules as publishing, over the CoreBundle use\ncase the internal API and Maia run (`ValidateAutomationWorkflow`). It changes nothing. The same shape is the `validation` member\nof `create_workflow` and `update_workflow` ({@see WorkflowResource}) and the `issues` of their 422 `validation_failed`\n({@see \\App\\Api\\Error\\WorkflowErrorTranslator}); `uuid` is only the path.",
        "deprecated": false,
        "properties": {
          "@context": {
            "readOnly": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "@vocab": {
                    "type": "string"
                  },
                  "hydra": {
                    "type": "string",
                    "enum": [
                      "http://www.w3.org/ns/hydra/core#"
                    ]
                  }
                },
                "required": [
                  "@vocab",
                  "hydra"
                ],
                "additionalProperties": true
              }
            ]
          },
          "@id": {
            "readOnly": true,
            "type": "string"
          },
          "@type": {
            "readOnly": true,
            "type": "string"
          },
          "workflow_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the workflow.",
            "example": "3f6c2a1e-8b4d-4c7a-9e10-5d2b7a9c4e61"
          },
          "draft_version": {
            "type": "integer",
            "description": "`draft_version` of the draft that was reviewed. Send it as `expected_draft_version` when you save the corrected document with `update_workflow`.",
            "example": 2,
            "minimum": 1
          },
          "publishable": {
            "type": "boolean",
            "description": "The draft can be published as it is: no issue is `incomplete` or `error`.",
            "example": false
          },
          "counts": {
            "default": {
              "incomplete": 0,
              "error": 0,
              "warning": 0
            },
            "example": {
              "incomplete": 1,
              "error": 0,
              "warning": 0
            },
            "type": "object",
            "properties": {
              "incomplete": {
                "type": "integer",
                "description": "Issues that are something to fill in; they block publishing.",
                "example": 1,
                "minimum": 0
              },
              "error": {
                "type": "integer",
                "description": "Issues that are something wrong; they block publishing.",
                "example": 0,
                "minimum": 0
              },
              "warning": {
                "type": "integer",
                "description": "Issues worth checking; they do not block publishing.",
                "example": 0,
                "minimum": 0
              }
            },
            "description": "How many issues of each severity."
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "node_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "`uuid` of the trigger or node of `definition` the issue is about; `null` for the whole workflow.",
                  "example": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72"
                },
                "catalog_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "`catalogId` of that trigger or node; `null` for the whole workflow.",
                  "example": "wait-duration"
                },
                "field": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Path of what to change. For an issue of a node, the path inside its `configuration` (`durationValue` is `configuration.durationValue`) or `next` / `branches.N.next`; for an issue of the document, its path (`settings.audienceUuid`, `formatVersion`, `nodes.0.branches`). `null` when it is the node or the workflow as a whole.",
                  "example": "durationValue"
                },
                "code": {
                  "$ref": "#/components/schemas/WorkflowIssueCode",
                  "description": "What the issue is about.",
                  "example": "missing_configuration"
                },
                "severity": {
                  "$ref": "#/components/schemas/WorkflowIssueSeverity",
                  "description": "`incomplete` and `error` block publishing; `warning` does not.",
                  "example": "incomplete"
                },
                "hint": {
                  "type": "string",
                  "description": "What the code means and how to fix it, in English.",
                  "example": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
                }
              }
            },
            "description": "The issues, in the order of the document; empty when there is nothing to fix.",
            "example": [
              {
                "node_uuid": "c2a7e5d1-8f3b-4a6c-9e0d-1b4f6a8c3e72",
                "catalog_id": "wait-duration",
                "field": "durationValue",
                "code": "missing_configuration",
                "severity": "incomplete",
                "hint": "Fill `configuration.<field>` of this node, using the exact field named in `field`."
              }
            ]
          }
        }
      },
      "SuscriberStatus": {
        "type": "string",
        "enum": [
          "suscriber.status.confirmed",
          "suscriber.status.unconfirmed",
          "suscriber.status.unsuscribed",
          "suscriber.status.unsuscribed.admin"
        ],
        "description": "Suscriber status:\n* `suscriber.status.confirmed` - Confirmed and active\n* `suscriber.status.unconfirmed` - Pending confirmation\n* `suscriber.status.unsuscribed` - Unsubscribed by contact\n* `suscriber.status.unsuscribed.admin` - Cleaned"
      },
      "SuscriberSource": {
        "type": "string",
        "enum": [
          "suscriber.source.manual",
          "suscriber.source.api",
          "suscriber.source.webform",
          "suscriber.source.imported"
        ],
        "description": "Suscriber source:\n* `suscriber.source.manual` - Manually added by an admin\n* `suscriber.source.api` - Added through the API\n* `suscriber.source.webform` - Added from a webform\n* `suscriber.source.imported` - Added from an excel or csv importation"
      },
      "ListSegmentOperatorMatch": {
        "type": "string",
        "enum": [
          "any",
          "all"
        ],
        "description": "Operator match:\n* `any` - Match any conditions\n* `all` - Match all conditions"
      },
      "CampaignReportMetricStatus": {
        "type": "string",
        "enum": [
          "good",
          "attention",
          "critical"
        ],
        "description": "How a metric of a campaign report compares with its reference:\n* `good` - As good as or better than the reference\n* `attention` - Somewhat worse than the reference\n* `critical` - Clearly worse than the reference"
      },
      "CampaignSendTo": {
        "type": "string",
        "enum": [
          "send_to_all",
          "send_to_segment",
          "send_to_groups"
        ],
        "description": "Campaign sendTo:\n* `send_to_all` - Send to all\n* `send_to_segment` - Send to a saved segment\n* `send_to_groups` - Send to one or more groups"
      },
      "CampaignDeferredStrategy": {
        "type": "string",
        "enum": [
          "incremental",
          "fixed_batches_by_count",
          "fixed_batches_by_size"
        ],
        "description": "Campaign deferredStrategy:\n* `incremental` - Sends the campaign in a predefined number of batches at regular intervals. Each batch increases in size automatically.\n* `fixed_batches_by_size` - Sends a fixed number of recipients in each batch (e.g., 5,000 recipients every 30 minutes).\n* `fixed_batches_by_count` - Sends the campaign in a predefined number of batches, automatically calculating the size of each batch (e.g., 5 batches every 30 minutes)."
      },
      "CampaignDeferredInterval": {
        "type": "string",
        "enum": [
          "15 minutes",
          "30 minutes",
          "1 hour",
          "2 hours",
          "3 hours",
          "6 hours",
          "12 hours",
          "24 hours"
        ],
        "description": "Campaign deferredInterval:\nDefines the interval between each batch (e.g., 30 minutes, 1 hour)."
      },
      "SuscriptionFormType": {
        "type": "string",
        "enum": [
          "popup",
          "embedded"
        ],
        "description": "Form types:\n* `popup` - Popup\n* `embedded` - Embedded"
      },
      "AsyncTaskType": {
        "type": "string",
        "enum": [
          "segment.add_to_group",
          "segment.remove_from_group",
          "segment.export",
          "segment.unsubscribe",
          "segment.delete_contacts",
          "group.export",
          "group.clear",
          "group.add_from_segment",
          "group.remove_from_segment",
          "group.add_from_conditions",
          "group.remove_from_conditions"
        ],
        "description": "AsyncTask type:\n**Segment operations:**\n* `segment.add_to_group` - Add segment members to a group\n* `segment.remove_from_group` - Remove segment members from a group\n* `segment.export` - Export segment members to file\n* `segment.unsubscribe` - Unsubscribe segment members\n* `segment.delete_contacts` - Delete segment members\n\n**Group operations:**\n* `group.export` - Export group members to file\n* `group.clear` - Remove all members from group\n* `group.add_from_segment` - Add members from segment to group\n* `group.remove_from_segment` - Remove members from segment from group\n* `group.add_from_conditions` - Add members matching conditions to group\n* `group.remove_from_conditions` - Remove members matching conditions from group"
      },
      "BatchOperationStatus": {
        "type": "string",
        "enum": [
          "pending",
          "started",
          "finished"
        ],
        "description": "Suscriber status:\n* `pending` - Pending\n* `started` - Started\n* `finished` - Finished"
      },
      "AsyncTaskStatus": {
        "type": "string",
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "description": "AsyncTask status:\n* `pending` - Task is queued and waiting to be processed\n* `processing` - Task is currently being processed\n* `completed` - Task completed successfully\n* `failed` - Task failed with an error"
      },
      "SuscriptionFormStatus": {
        "type": "string",
        "enum": [
          "form.status.draft",
          "form.status.unpublished",
          "form.status.published",
          "form.status.paused"
        ],
        "description": "Subscription form status:\n* `form.status.draft` - Draft (no design)\n* `form.status.unpublished` - Unpublished (has design, not active)\n* `form.status.published` - Published (active)\n* `form.status.paused` - Paused (active but paused)"
      },
      "WebhookScope": {
        "type": "string",
        "enum": [
          "marketing",
          "crm"
        ],
        "description": "Webhook scope:\n* `marketing` - events of one audience (members, campaigns, automations, SMS); `audience` is required\n* `crm` - events of contacts, companies and opportunities of the whole account; no `audience`"
      },
      "WebhookEventType": {
        "type": "string",
        "enum": [
          "member_subscribed",
          "member_unsubscribed",
          "member_added_to_group",
          "member_removed_from_group",
          "member_campaign_opened",
          "member_campaign_clicked",
          "member_campaign_delivered",
          "member_campaign_bounced",
          "member_campaign_complained",
          "member_automation_started",
          "member_automation_completed",
          "member_automation_cancelled",
          "custom_automation_step",
          "member_sms_subscribed",
          "member_sms_unsubscribed",
          "member_sms_delivered",
          "member_sms_bounced",
          "member_sms_clicked",
          "member_sms_replied",
          "crm_contact_created",
          "crm_contact_updated",
          "crm_contact_deleted",
          "crm_company_created",
          "crm_company_updated",
          "crm_company_deleted",
          "crm_opportunity_created",
          "crm_opportunity_updated",
          "crm_opportunity_deleted",
          "crm_opportunity_stage_changed"
        ],
        "description": "Webhook event types:\nEvents of `marketing` webhooks (one audience):\n* `member_subscribed` - triggered when a member subscribes to an audience\n* `member_unsubscribed` - triggered when a member unsubscribes from an audience\n* `member_added_to_group` - triggered when a member is added to a group\n* `member_removed_from_group` - triggered when a member is removed from a group\n* `member_campaign_opened` - triggered when a member opens a campaign\n* `member_campaign_clicked` - triggered when a member clicks a link in a campaign\n* `member_campaign_delivered` - triggered when a campaign email is delivered\n* `member_campaign_bounced` - triggered when a member's email address bounces\n* `member_campaign_complained` - triggered when a member reports a campaign as spam\n* `member_automation_started` - triggered when a member starts an automation\n* `member_automation_completed` - triggered when a member completes an automation\n* `member_automation_cancelled` - triggered when a member cancels an automation\n* `custom_automation_step` - triggered by a Send Webhook automation step\n* `member_sms_subscribed` - triggered when a contact opts in to SMS\n* `member_sms_unsubscribed` - triggered when a contact opts out of SMS\n* `member_sms_delivered` - triggered when an SMS is delivered\n* `member_sms_bounced` - triggered when an SMS hard-bounces (failed delivery)\n* `member_sms_clicked` - triggered when a member clicks a link in an SMS campaign\n* `member_sms_replied` - triggered when a contact replies to an SMS campaign\n\nEvents of `crm` webhooks (account-wide, without audience):\n* `crm_contact_created` - triggered when a contact is created\n* `crm_contact_updated` - triggered when a contact is updated\n* `crm_contact_deleted` - triggered when a contact is deleted\n* `crm_company_created` - triggered when a company is created\n* `crm_company_updated` - triggered when a company is updated\n* `crm_company_deleted` - triggered when a company is deleted\n* `crm_opportunity_created` - triggered when an opportunity is created\n* `crm_opportunity_updated` - triggered when an opportunity is updated\n* `crm_opportunity_deleted` - triggered when an opportunity is deleted\n* `crm_opportunity_stage_changed` - triggered when an opportunity moves to another stage"
      },
      "SocialLink": {
        "type": "string",
        "enum": [
          "facebook",
          "instagram",
          "x",
          "linkedin",
          "youtube",
          "tiktok",
          "pinterest",
          "whatsapp",
          "telegram",
          "snapchat",
          "spotify",
          "soundcloud",
          "medium",
          "blogger",
          "vimeo",
          "tripadvisor",
          "tumblr"
        ],
        "description": "Available social network keys:\n* `facebook` - Facebook\n* `instagram` - Instagram\n* `x` - X (formerly Twitter)\n* `linkedin` - LinkedIn\n* `youtube` - YouTube\n* `tiktok` - TikTok\n* `pinterest` - Pinterest\n* `whatsapp` - WhatsApp\n* `telegram` - Telegram\n* `snapchat` - Snapchat\n* `spotify` - Spotify\n* `soundcloud` - SoundCloud\n* `medium` - Medium\n* `blogger` - Blogger\n* `vimeo` - Vimeo\n* `tripadvisor` - TripAdvisor\n* `tumblr` - Tumblr"
      },
      "StepType": {
        "type": "string",
        "enum": [
          "step.send.campaign",
          "step.send.sms",
          "step.condition",
          "step.delay",
          "step.custom.field",
          "step.add.to.group",
          "step.remove.from.group",
          "step.unsuscribe",
          "step.update.score",
          "step.send.notification",
          "step.trigger.automation",
          "step.move.to.step",
          "step.send.webhook"
        ],
        "description": "Suscriber status:\n* `step.send.campaign` - Send an email\n* `step.send.sms` - Send an SMS\n* `step.condition` - Condition\n* `step.delay` - Delay\n* `step.custom.field` - Update custom field\n* `step.add.to.group` - Add to group\n* `step.remove.from.group` - Remove from group\n* `step.unsuscribe` - Unsubscribe\n* `step.update.score` - Update score\n* `step.send.notification` - Send email notification\n* `step.trigger.automation` - Trigger an automation\n* `step.move.to.step` - Jump to another step\n* `step.send.webhook` - Send a webhook"
      },
      "AutomationQueueStatus": {
        "type": "string",
        "enum": [
          "automation.queue.status.queued",
          "automation.queue.status.canceled",
          "automation.queue.status.completed"
        ],
        "description": "Suscriber status:\n* `automation.queue.status.queued` - Queued\n* `automation.queue.status.canceled` - Cancelled\n* `automation.queue.status.completed` - Completed"
      },
      "AutomationStatus": {
        "type": "string",
        "enum": [
          "automation.status.draft",
          "automation.status.active",
          "automation.status.paused"
        ],
        "description": "Suscriber status:\n* `automation.status.draft` - Draft\n* `automation.status.active` - Active\n* `automation.status.paused` - Paused"
      },
      "TriggerType": {
        "type": "string",
        "enum": [
          "trigger.admin.manual",
          "trigger.form.completed",
          "trigger.contact.suscribed",
          "trigger.contact.added.to.group",
          "trigger.contact.removed.from.group",
          "trigger.send.a.campaign",
          "trigger.click.on.campaign",
          "trigger.click.on.campaign.link",
          "trigger.not.click.on.campaign",
          "trigger.open.on.campaign",
          "trigger.not.open.on.campaign",
          "trigger.specific.date",
          "trigger.aniversary.date",
          "trigger.suscription.date",
          "trigger.custom.api",
          "trigger.buy.a.product",
          "trigger.time.since.last.purchase",
          "trigger.abandoned.cart",
          "trigger.payment.reminder",
          "trigger.order.processed",
          "trigger.order.paid",
          "trigger.order.shipped",
          "trigger.order.cancelled",
          "trigger.order.refunded",
          "trigger.suscriber.revalidation",
          "trigger.poll.answered"
        ],
        "description": "Suscriber status:\n* `trigger.admin.manual` - Manual by an admin\n* `trigger.form.completed` - Form completed\n* `trigger.contact.suscribed` - Contact suscribed\n* `trigger.contact.added.to.group` - Contact added to group\n* `trigger.contact.removed.from.group` - Contact removed to group\n* `trigger.send.a.campaign` - Send a campaign\n* `trigger.click.on.campaign` - Click on campaign\n* `trigger.click.on.campaign.link` - Click on campaign link\n* `trigger.not.click.on.campaign` - Not click on campaign\n* `trigger.open.on.campaign` - Open on campaign\n* `trigger.not.open.on.campaign` - Not open on campaign\n* `trigger.specific.date` - Specific date\n* `trigger.aniversary.date` - Aniversary date\n* `trigger.suscription.date` - Suscription date\n* `trigger.buy.a.product` - Buy a product\n* `trigger.time.since.last.purchase` - Time since last purchase\n* `trigger.abandoned.cart` - Abandoned cart\n* `trigger.payment.reminder` - Payment reminder\n* `trigger.order.processed` - Order processed\n* `trigger.order.paid` - Order paid\n* `trigger.order.shipped` - Order shipped\n* `trigger.order.cancelled` - Order canceled\n* `trigger.order.refunded` - Order refunded\n* `trigger.suscriber.revalidation` - Subscriber revalidation\n* `trigger.poll.answered` - Survey poll answered"
      },
      "OrderStatus": {
        "type": "string",
        "enum": [
          "cart",
          "new",
          "paid",
          "shipped",
          "refunded",
          "cancelled"
        ],
        "description": "Suscriber status:\n* `cart` - Cart\n* `new` - New\n* `paid` - Paid\n* `shipped` - Shipped\n* `refunded` - Refunded\n* `cancelled` - Cancelled"
      },
      "CampaignDeferredBatchSize": {
        "type": "integer",
        "enum": [
          250,
          500,
          1000,
          2000,
          5000,
          7500,
          10000,
          15000,
          20000,
          30000
        ],
        "description": "Campaign deferredBatchSize:\nDefines the number of recipients to send in each batch (used with fixed_batches_by_size strategy)."
      },
      "ListFieldType": {
        "type": "string",
        "enum": [
          "list.field.type.text",
          "list.field.type.select",
          "list.field.type.multiselect",
          "list.field.type.date",
          "list.field.type.datetime",
          "list.field.type.birthday",
          "list.field.type.textarea",
          "list.field.type.url",
          "list.field.type.integer",
          "list.field.type.decimal",
          "list.field.type.money",
          "list.field.type.language",
          "list.field.type.boolean"
        ],
        "description": "Operator match:\n* `icon-field-text` - Text\n* `icon-field-select` - Select\n* `list.field.type.multiselect` - Multiselect\n* `list.field.type.date` - Date\n* `list.field.type.datetime` - Datetime\n* `list.field.type.birthday` - Birthday\n* `list.field.type.textarea` - Textarea\n* `list.field.type.url` - Url\n* `list.field.type.integer` - Integer\n* `list.field.type.decimal` - Decimal\n* `list.field.type.money` - Money\n* `list.field.type.language` - Language\n* `list.field.type.boolean` - Boolean"
      },
      "CampaignReportOrdersState": {
        "type": "string",
        "enum": [
          "no_store",
          "tracking_disabled",
          "ready"
        ],
        "description": "Whether the orders of the online store attributed to a campaign can be reported:\n* `no_store` - The audience of the campaign has no store connected\n* `tracking_disabled` - The campaign does not track store orders\n* `ready` - The figures are available"
      },
      "CampaignType": {
        "type": "string",
        "enum": [
          "campaign.regular",
          "campaign.test.ab",
          "campaign.automation",
          "campaign.revalidation",
          "campaign.survey"
        ],
        "description": "Campaign status:\n* `campaign.regular` - Regular campaign\n* `campaign.test.ab` - A/B Test campaign\n* `campaign.automation` - Automation campaign\n* `campaign.revalidation` - Revalidation campaign\n* `campaign.survey` - Survey campaign"
      },
      "CampaignStatus": {
        "type": "string",
        "enum": [
          "campaign.status.draft",
          "campaign.status.ready",
          "campaign.status.scheduled",
          "campaign.status.sending",
          "campaign.status.sent",
          "campaign.status.error",
          "campaign.status.pausing",
          "campaign.status.paused"
        ],
        "description": "Campaign status:\n* `campaign.status.draft` - Draft\n* `campaign.status.ready` - Ready to send\n* `campaign.status.scheduled` - Scheduled to send\n* `campaign.status.sending` - Sending\n* `campaign.status.sent` - Sent\n* `campaign.status.error` - An error ocurred sending the campaign"
      },
      "CampaignDeliveryWarningCode": {
        "type": "string",
        "enum": [
          "campaign.delivery_warning.no_active_subscribers",
          "campaign.delivery_warning.insufficient_credits",
          "campaign.delivery_warning.daily_limit_exceeded",
          "campaign.delivery_warning.send_disabled",
          "campaign.delivery_warning.approval_required",
          "campaign.delivery_warning.approval_pending",
          "campaign.delivery_warning.cannot_send_without_authenticate",
          "campaign.delivery_warning.sender_domain_not_authenticated",
          "campaign.delivery_warning.custom_tracking_links_error",
          "campaign.delivery_warning.free_email_provider",
          "campaign.delivery_warning.domain_authentication_not_created"
        ],
        "description": "Campaign delivery warning codes:\n* `campaign.delivery_warning.no_active_subscribers` - No active subscribers (danger, blocks sending)\n* `campaign.delivery_warning.insufficient_credits` - Insufficient credits (danger, blocks sending)\n* `campaign.delivery_warning.daily_limit_exceeded` - Daily limit exceeded (warning, blocks sending)\n* `campaign.delivery_warning.send_disabled` - Sending disabled (danger, blocks sending)\n* `campaign.delivery_warning.approval_required` - Approval required (danger, blocks sending)\n* `campaign.delivery_warning.approval_pending` - Approval pending (danger, blocks sending)\n* `campaign.delivery_warning.cannot_send_without_authenticate` - Cannot send >1000 without auth (danger, blocks sending)\n* `campaign.delivery_warning.sender_domain_not_authenticated` - Domain not authenticated (warning)\n* `campaign.delivery_warning.custom_tracking_links_error` - Tracking links SSL/DNS error (warning)\n* `campaign.delivery_warning.free_email_provider` - Free email provider (warning)\n* `campaign.delivery_warning.domain_authentication_not_created` - Domain auth not created (warning)"
      },
      "CampaignDeferredBatchCount": {
        "type": "integer",
        "enum": [
          2,
          3,
          4,
          5,
          6,
          8,
          10,
          12,
          15,
          20
        ],
        "description": "Campaign deferredBatchCount:\nDefines the number of batches the campaign will be split into.\nUsed with `incremental` and `fixed_batches_by_count` strategies.\nThe system will calculate the size of each batch automatically based on the total number of recipients.\nExample: 5 → campaign will be sent in 5 equal or progressively sized batches."
      },
      "CrmInitiatedVia": {
        "type": "string",
        "enum": [
          "ui",
          "maia",
          "api",
          "import",
          "sync",
          "automation",
          "system"
        ],
        "description": "How a CRM record or change was made:\n* `ui` - From the Easymailing app\n* `maia` - By Maia, the assistant, on behalf of a person\n* `api` - Through the API\n* `import` - By a file import\n* `sync` - By a synchronization with a connected service\n* `automation` - By an automation\n* `system` - By Easymailing itself"
      },
      "CrmActorKind": {
        "type": "string",
        "enum": [
          "user",
          "contact",
          "automation",
          "integration",
          "system",
          "external"
        ],
        "description": "Kind of actor behind a CRM change:\n* `user` - A person of the account\n* `contact` - A contact\n* `automation` - An automation\n* `integration` - An integration\n* `system` - Easymailing itself\n* `external` - Someone outside the account"
      },
      "CrmTaskType": {
        "type": "string",
        "enum": [
          "general",
          "call",
          "email"
        ],
        "description": "Task type. It only classifies the task:\n* `general` - Any work\n* `call` - A call to make\n* `email` - An email to write"
      },
      "MembershipStatus": {
        "type": "string",
        "enum": [
          "active",
          "inactive"
        ],
        "description": "Status of a user in the account:\n* `active` - Can sign in and be picked wherever a person is chosen\n* `inactive` - Deactivated: kept to name what they did or what still points to them, never picked again"
      },
      "CrmTaskStatus": {
        "type": "string",
        "enum": [
          "open",
          "completed"
        ],
        "description": "Task status:\n* `open` - Pending\n* `completed` - Done"
      },
      "CrmRecordSource": {
        "type": "string",
        "enum": [
          "manual",
          "api",
          "automation",
          "connected_mailbox",
          "connected_calendar",
          "integration",
          "import",
          "public_form",
          "meeting_booking"
        ],
        "description": "Where a CRM record came from:\n* `manual` - Created by a person in the panel\n* `api` - Created through the API\n* `automation` - Created by an automation\n* `connected_mailbox` - Created from a connected mailbox\n* `connected_calendar` - Created from a connected calendar\n* `integration` - Created by an integration\n* `import` - Created by a file import\n* `public_form` - Created from a public form\n* `meeting_booking` - Created from a meeting booking"
      },
      "CrmTaskPriority": {
        "type": "string",
        "enum": [
          "none",
          "low",
          "normal",
          "high"
        ],
        "description": "Task priority:\n* `none` - No priority set\n* `low` - Low urgency\n* `normal` - Normal urgency\n* `high` - High urgency"
      },
      "WorkflowExecutionStepState": {
        "type": "string",
        "enum": [
          "running",
          "waiting",
          "awaiting_effect",
          "retryable",
          "completed",
          "skipped",
          "stopped",
          "blocked",
          "canceled"
        ],
        "description": "State of the step:\n* `running` - Being run now\n* `waiting` - A wait that has not ended\n* `awaiting_effect` - Its effect (an email, a record change…) was sent and its result is being confirmed\n* `retryable` - Failed and will be tried again\n* `completed` - Done\n* `skipped` - Skipped by someone after it blocked\n* `stopped` - The execution left the workflow at this step\n* `blocked` - Blocked: the execution waits for someone to resolve it\n* `canceled` - The execution was canceled at this step"
      },
      "UsableBookingPageState": {
        "type": "string",
        "enum": [
          "published"
        ],
        "description": "State of a usable booking page:\n* `published` - The public link works"
      },
      "EmailSendRecordType": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "opportunity"
        ],
        "description": "Kind of record an email is written from:\n* `contact` - A contact\n* `company` - A company\n* `opportunity` - An opportunity"
      },
      "AttributeStatus": {
        "type": "string",
        "enum": [
          "active",
          "archived"
        ],
        "description": "Attribute status:\n* `active` - Accepts new values\n* `archived` - Keeps its stored values but no longer accepts new ones"
      },
      "EmailSendFailureReason": {
        "type": "string",
        "enum": [
          "rejected",
          "too_large",
          "sending_limit",
          "access_lost",
          "permission_lost",
          "capability_inactive",
          "attachment_unavailable",
          "message_too_large",
          "provider_unavailable",
          "personalization_failed"
        ],
        "description": "Why the send did not leave:\n* `rejected` - Gmail refused it\n* `too_large` - The email is too large for Gmail\n* `sending_limit` - Gmail's sending limit was reached\n* `access_lost` - The mailbox connection was lost\n* `permission_lost` - The user can no longer send from that sender or record\n* `capability_inactive` - The CRM module is off\n* `attachment_unavailable` - A forwarded attachment is gone from Gmail\n* `message_too_large` - The composed message is larger than 25 MB\n* `provider_unavailable` - Gmail kept failing\n* `personalization_failed` - A personalization tag could not be filled"
      },
      "CrmFileStatus": {
        "type": "string",
        "enum": [
          "uploading",
          "analyzing",
          "available"
        ],
        "description": "State of a CRM file:\n* `uploading` - Declared, waiting for its content\n* `analyzing` - Content received, being checked\n* `available` - Stored and visible on its record"
      },
      "CompanyAttributeType": {
        "type": "string",
        "enum": [
          "text",
          "long_text",
          "integer",
          "decimal",
          "percentage",
          "money",
          "boolean",
          "date",
          "datetime",
          "enum",
          "multi_enum",
          "email",
          "phone",
          "url",
          "country",
          "language",
          "timezone"
        ],
        "description": "Company attributes attribute type:\n* `text` - Short text\n* `long_text` - Long text, several lines\n* `integer` - Whole number\n* `decimal` - Decimal number\n* `percentage` - Percentage\n* `money` - Amount of money in the currency of the attribute\n* `boolean` - Yes or no\n* `date` - Calendar date\n* `datetime` - Date and time\n* `enum` - One option from a list\n* `multi_enum` - Several options from a list\n* `email` - Email address\n* `phone` - Phone number\n* `url` - Web address\n* `country` - Country (ISO 3166-1 alpha-2 code)\n* `language` - Language (ISO 639-1 code)\n* `timezone` - IANA time zone name"
      },
      "ContactFilterOptionsMode": {
        "type": "string",
        "enum": [
          "closed",
          "suggestions"
        ],
        "description": "Where the values of a filter field come from:\n* `closed` - `options` is the whole list\n* `suggestions` - Values come from the data (`list_contact_filter_field_suggestions`)"
      },
      "EmailSenderKind": {
        "type": "string",
        "enum": [
          "personal",
          "shared"
        ],
        "description": "Kind of mailbox:\n* `personal` - A mailbox of one person\n* `shared` - A shared mailbox of the account"
      },
      "ContactQueryCountState": {
        "type": "string",
        "enum": [
          "ready",
          "stale",
          "pending"
        ],
        "description": "State of a contact count:\n* `ready` - `total` is current\n* `stale` - `total` is a recent result being refreshed\n* `pending` - Not counted yet: call again after `retry_after_ms`"
      },
      "EmailSenderLimitReason": {
        "type": "string",
        "enum": [
          "hour",
          "day"
        ],
        "description": "Limit the mailbox has reached:\n* `hour` - 12 emails in the last hour\n* `day` - 200 emails in the last 24 hours"
      },
      "PipelineLossReasonStatus": {
        "type": "string",
        "enum": [
          "active",
          "archived"
        ],
        "description": "Loss reason status:\n* `active` - Can be chosen\n* `archived` - Can no longer be chosen; past deals keep it"
      },
      "EmailSequenceEnrollmentReason": {
        "type": "string",
        "enum": [
          "reentered",
          "no_email",
          "opted_out",
          "enrollment_conflict",
          "recipient_not_contact_email",
          "contact_not_found",
          "sequence_not_publishable_entry",
          "sender_not_allowed",
          "sequence_sender_missing",
          "sequence_sender_revoked",
          "mailbox_unavailable",
          "signature_foreign"
        ],
        "description": "Why the contact was skipped or failed:\n* `reentered` - Enrolled again after finishing this sequence before\n* `no_email` - No valid primary email\n* `opted_out` - The address unsubscribed from CRM emails\n* `enrollment_conflict` - The address is already in a live sequence\n* `recipient_not_contact_email` - The address is no longer an address of the contact\n* `contact_not_found` - The contact does not exist in the account\n* `sequence_not_publishable_entry` - The sequence no longer takes enrollments\n* `sender_not_allowed` - The user cannot send from the mailbox of the sequence\n* `sequence_sender_missing` - The published version has no sender\n* `sequence_sender_revoked` - The publisher lost the send permission\n* `mailbox_unavailable` - The mailbox is disconnected or cannot send\n* `signature_foreign` - The signature is not of that mailbox"
      },
      "AiAgentRunResponseFormat": {
        "type": "string",
        "enum": [
          "text",
          "fields"
        ],
        "description": "Shape of the answer:\n* `text` - Free text in `answer_text`\n* `fields` - One validated value per field in `answer_fields`"
      },
      "UsableBookingPageRelation": {
        "type": "string",
        "enum": [
          "own",
          "shared"
        ],
        "description": "Whose page it is:\n* `own` - The user's own page\n* `shared` - A page another user shared with the user"
      },
      "MeetingRelationScope": {
        "type": "string",
        "enum": [
          "occurrence",
          "series"
        ],
        "description": "Scope of the relations:\n* `occurrence` - This meeting only\n* `series` - The whole recurring series"
      },
      "BookingRecordPolicy": {
        "type": "string",
        "enum": [
          "fill_empty",
          "preserve",
          "update"
        ],
        "description": "What a booking does to an existing record:\n* `fill_empty` - Only fills empty fields\n* `preserve` - Never changes it\n* `update` - Overwrites the fields answered"
      },
      "BookingFieldLabelKind": {
        "type": "string",
        "enum": [
          "i18n",
          "tenant_text"
        ],
        "description": "Kind of name:\n* `i18n` - A built-in field: `key` is its stable code\n* `tenant_text` - The account's own `text`"
      },
      "BookingSenderAuthenticationNotice": {
        "type": "string",
        "enum": [
          "authenticated",
          "free-provider",
          "not-authenticated",
          "not-created"
        ],
        "description": "Authentication of the sender domain:\n* `authenticated` - The domain is authenticated\n* `free-provider` - A free mailbox provider (Gmail, Outlook…)\n* `not-authenticated` - The domain is not authenticated yet\n* `not-created` - The domain was never added"
      },
      "SubscriptionFormCrmDataMode": {
        "type": "string",
        "enum": [
          "fill_empty",
          "preserve",
          "update"
        ],
        "description": "How a form treats data of an existing CRM record:\n* `fill_empty` - Write an answer only where the record has no value\n* `preserve` - Never write an existing record\n* `update` - Write every non-empty answer"
      },
      "SubscriptionFormPopupScrollPercentage": {
        "type": "integer",
        "enum": [
          25,
          50,
          75,
          100
        ],
        "description": "Scroll depth that fires a popup, in percent:\n* `25`\n* `50`\n* `75`\n* `100`"
      },
      "EmailPersonalizationTagAvailability": {
        "type": "string",
        "enum": [
          "ready",
          "pending"
        ],
        "description": "Availability of the tag:\n* `ready` - Filled in when the email leaves\n* `pending` - Listed but never resolved: do not use it"
      },
      "WorkflowIssueCode": {
        "type": "string",
        "enum": [
          "missing_trigger",
          "missing_steps",
          "missing_end",
          "trigger_position",
          "trigger_entry_mismatch",
          "forward_target_required",
          "branching_node_next",
          "branch_target_required",
          "branch_convergence_required",
          "unreachable_node",
          "for_each_boundary",
          "for_each_forbidden_step",
          "ai_agent_approval_in_for_each",
          "invalid_branches",
          "percentage_total",
          "missing_condition",
          "unexpected_body",
          "invalid_shape",
          "condition_structure_locked",
          "root_subject_mismatch",
          "unknown_piece",
          "piece_unavailable",
          "missing_configuration",
          "invalid_configuration",
          "invalid_value",
          "incompatible_value",
          "too_long",
          "invalid_reference",
          "invalid_text_token",
          "data_unavailable",
          "data_type_mismatch",
          "transform_incompatible",
          "transform_unsupported",
          "reserved_field",
          "duplicate_field",
          "field_unsupported",
          "field_not_writable",
          "operation_unsupported",
          "record_type_unsupported",
          "condition_unsupported",
          "record_field_needs_matches",
          "unknown_filter_field",
          "invalid_filter_operator",
          "invalid_filter_value",
          "invalid_filter_reference",
          "invalid_contact_filter",
          "filter_unsupported",
          "wait_date_unsupported",
          "wait_change_unsupported",
          "for_each_unsupported",
          "trigger_unsupported",
          "exit_when_unavailable",
          "exit_event_unsupported",
          "exit_filter_unsupported",
          "webhook_without_duplicate_key",
          "writes_listened_field",
          "instructions_too_long",
          "task_too_long",
          "text_too_long",
          "title_too_long",
          "agent_not_found",
          "agent_not_published",
          "agent_archived",
          "agent_access_denied",
          "mcp_connection_unavailable",
          "resource_unavailable",
          "mailbox_burst_in_loop",
          "attachment_missing",
          "sequence_unavailable",
          "sequence_not_allowed",
          "reminder_requires_due_and_assignee",
          "task_reminder_requirements",
          "header_reserved",
          "secret_value_required",
          "secret_header_dynamic_url",
          "secret_too_long",
          "audience_mismatch",
          "capability_missing",
          "ecommerce_resource_missing",
          "marketing_resource_missing",
          "ecommerce_store_missing",
          "store_audience_missing",
          "calendar_unavailable",
          "booking_page_unavailable",
          "mailbox_unavailable",
          "connection_required",
          "capability_required",
          "work_permission_required",
          "plan_required",
          "list_over_field_limit"
        ],
        "description": "What the issue is about; `hint` says how to fix it:\n* `missing_trigger` - Add at least one trigger to `triggers`; a workflow cannot start without one.\n* `missing_steps` - Add at least one step to `nodes` after the trigger.\n* `missing_end` - Make at least one path of the workflow reach an ending: finish a branch or the main path without a `next`.\n* `trigger_position` - Move the trigger so it is the first element of the workflow: triggers go in `triggers`, never in `nodes`.\n* `trigger_entry_mismatch` - Set the `next` of the trigger to the uuid of the first step in `nodes`.\n* `forward_target_required` - Point this `next` to a step that comes later in `nodes`, never to itself or to an earlier step.\n* `branching_node_next` - Remove `next` from this step: a step with branches continues through each branch's own `next`.\n* `branch_target_required` - Give every branch a `next` that points to a later step.\n* `branch_convergence_required` - Make all branches of this step continue into the same later step.\n* `unreachable_node` - Connect this step: point the `next` of an earlier step (or a branch) to it, or delete it.\n* `for_each_boundary` - Do not jump into or out of a \"For each\" from outside; keep its steps inside its `body` and leave it through its own `next`.\n* `for_each_forbidden_step` - Remove the wait or the nested \"For each\" from inside this \"For each\"; move it outside the loop.\n* `ai_agent_approval_in_for_each` - Move this step out of the \"For each\" or choose an agent without tools that ask for approval: there are no waits inside loops.\n* `invalid_branches` - Fix `branches` of this step: the piece needs the number of branches and the shape its guide describes.\n* `percentage_total` - Make `branches` of this split have 2 to 5 entries, each with a `percentage`, and make the percentages add up to exactly 100.\n* `missing_condition` - Give every branch of this condition at least one filter in its `filter.conditions`.\n* `unexpected_body` - Remove `body` from this step: only \"For each\" has steps inside it.\n* `invalid_shape` - The document is not a valid workflow document: check the JSON at the reported `field` (for example `formatVersion` must be 3) and the keys the document format allows.\n* `condition_structure_locked` - Do not move or delete this condition: other steps still depend on its branches. Fix those references first.\n* `root_subject_mismatch` - Make all triggers work with the same type of record, or set `settings.rootSubjectType` to the type the triggers provide.\n* `unknown_piece` - Use a `catalogId` that exists in the piece catalog (see the `automation_workflows_guide` guide of the MCP (get_guide) or `list_workflow_pieces` for the ids), and put triggers in `triggers` and steps in `nodes`: a trigger piece cannot go in `nodes` nor a step piece in `triggers`.\n* `piece_unavailable` - This piece cannot be published yet in this account; replace it with an available piece.\n* `missing_configuration` - Fill `configuration.<field>` of this node, using the exact field named in `field`.\n* `invalid_configuration` - Review `configuration.<field>` of this node: the value in `field` is not valid for this piece; check the `automation_workflows_guide` guide of the MCP (get_guide) or `list_workflow_pieces` for the accepted shape.\n* `invalid_value` - Use a valid value in the reported `field`: web addresses must start with https:// and the domain must be written out, not taken from data.\n* `incompatible_value` - Replace the value or the data inserted in the reported `field` with one of the type that field accepts.\n* `too_long` - Shorten the fixed text of the reported `field`; data inserted with references does not count, but your own text has a maximum.\n* `invalid_reference` - Fix the data reference in the reported `field`: it must point to the trigger or to an earlier step that exists and provides that field.\n* `invalid_text_token` - Fix the data token written inside the text of the reported `field`: it has an invalid format.\n* `data_unavailable` - The data used in the reported `field` is not available here: it must come from the trigger or from a step that runs before this one on every path that reaches this step (data produced in only one branch is not available after the branches converge), and archived attributes cannot be used.\n* `data_type_mismatch` - Choose data of the type the reported `field` needs, or change the field to accept the data you chose.\n* `transform_incompatible` - Remove or change the transformation of this reference: it does not fit the type of the data.\n* `transform_unsupported` - Remove the transformation from this reference: the reported `field` does not support transformations.\n* `reserved_field` - Rename the field of this step: that name is used for what the step always returns.\n* `duplicate_field` - Remove the repeated row: each field can have only one row in `fields`.\n* `field_unsupported` - Use a field that this record type or filter supports: fixed ids per type and the operations that list the custom attributes are in the \"Field ids of companies, contacts and opportunities\" section of the `automation_workflows_guide` guide of the MCP (get_guide). Fields that cannot be written by a workflow (read-only ones, or ones only written when creating or only when updating) also give this code. In the `answersFilter` of a «Form submitted» trigger, `field` is a `field` of `list_workflow_answer_fields` with the `audience` and `form` of the trigger (only the `audience` for «any form»); of a «Survey answered» trigger, the `answer_field` of a question of `get_survey`.\n* `field_not_writable` - The field exists, but the user who saves or publishes the workflow cannot edit it. A valid field id also gets this code when the cause is not the field: the account's CRM module is off, or that user has no active CRM seat, or their role cannot read and write that record type (without a seat they lose the CRM-only fields; without read access to the type, every field of it). Check that first in the account and do not remove the field yet; if only this one field is out of reach, remove the row or choose another field.\n* `operation_unsupported` - Use an `operation` that the chosen field supports; check the `automation_workflows_guide` guide of the MCP (get_guide) or `list_workflow_pieces` for the operations of each field type.\n* `record_type_unsupported` - Use a `recordType` that this piece supports; types without a search engine cannot be used here yet.\n* `condition_unsupported` - This condition cannot be published yet: remove the unsupported filter condition or use a supported field and operator. The data of an object that is not a Contact, a Company or an Opportunity (a task, a note…) goes as its dotted path (`trigger.task.title`), never as `<ref>|<field>` nor with `matches`.\n* `record_field_needs_matches` - A field of a Contact, a Company or an Opportunity goes inside the filter document of its list: write the condition as `{\"field\": \"<reference of the object, for example trigger.contact>\", \"operator\": \"matches\", \"value\": {\"value\": <filter document>}}`, one condition per field, never as a dotted path to a field inside the object (`trigger.contact.email`), as `<reference>|<field>` nor as the object with another operator. An object inside another one (`trigger.opportunity.company`) is written the same way, with `matches`. Contacts and companies take the public conditions tree (`{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\"}]}`, with the field ids, operators and values of `list_contact_filter_fields` with `usable_in=automation` for contacts, plus `audience` on the fields that require it, and of `list_company_filter_fields` for companies), which the server saves as their filter document; opportunities use `{match, conditions}` with the field ids, operators and values of `list_opportunity_filter_fields`. See the Condition example of the `automation_workflows_guide` guide of the MCP (get_guide).\n* `unknown_filter_field` - A filter uses a field that is not in the catalog of the publishing user for that list (it does not exist, was archived, cannot be used in workflows, or the user cannot filter on it). For Contacts, look the field id up again with `list_contact_filter_fields` and `usable_in=automation` (or `get_contact_filter_field` with `usable_in=automation`). For Companies, with `list_company_filter_fields` and `get_company_filter_field`. For Opportunities, with `list_opportunity_filter_fields` and `get_opportunity_filter_field` (`status` only exists in searches: `usable_in` `automation_search`). For Tasks, Notes and the «Only if» of a connected mailbox, with `list_workflow_record_filter_fields` and `type` `task`, `note` or `mailbox`. The `field` of this issue says which condition fails.\n* `invalid_filter_operator` - A filter uses an operator that its field does not have. For Contacts, use one of the `operators` that `get_contact_filter_field` with `usable_in=automation` lists for that field; for Companies, one of those of `get_company_filter_field`; for Opportunities, one of those of `get_opportunity_filter_field`; for Tasks, Notes and mailboxes, one of the `operators` of the field in `list_workflow_record_filter_fields` with its `type`. The `field` of this issue says which condition fails.\n* `invalid_filter_value` - A filter has a value that does not fit its field and operator: wrong form (text, number, date `YYYY-MM-DD`, list, no value at all for `isEmpty`-like operators), out of range, or an option the field does not have. For Contacts, read the field again with `get_contact_filter_field` and `usable_in=automation` (`value_shape` and `constraints`); for Companies, with `get_company_filter_field`; for Opportunities, with `get_opportunity_filter_field` (every value is a string, also numbers and dates, and `between` takes a list of two); for Tasks, Notes and mailboxes, with `list_workflow_record_filter_fields` and its `type` (`value_kind` and `options`). The `field` of this issue says which condition fails.\n* `invalid_filter_reference` - A filter points to a record (audience, group, tag, campaign, option of an attribute, user, segment) that does not exist in this account or cannot be used here, or the reference is badly written (uuid or binding). For Contacts, look its UUID up again in the `options` of the field or with `list_contact_filter_field_suggestions`; for Companies, in the `options` of `get_company_filter_field` or with `list_company_filter_field_suggestions`; for Opportunities, `get_opportunity_filter_field` says in `reference_type` which record a field points to and which operation lists its UUIDs (stages and loss reasons with `get_pipeline`, users with `list_account_members`, options of an attribute in its `options`); for Tasks, Notes and mailboxes, a user is the `uuid` of `list_account_members`. The `field` of this issue says which condition fails.\n* `invalid_contact_filter` - A contacts or companies filter written as the public conditions tree (`{\"match\": \"all\"|\"any\", \"conditions\": [{\"field\", \"operator\", \"value\", \"audience\"}]}`, the one of `search_contacts` and segments) does not have its documented shape, and nothing was saved: no `match` or `conditions`, an empty `conditions`, a group inside a group, more than 10 groups or 50 conditions, `audience` missing on a field that requires it (or sent on one that does not: companies never take it), or a field of another audience than the `audience` sent. A companies filter cannot have a group `any` of several conditions inside `all`: write it as `any` with `all` groups. Inside a `matches` rule of `condition-field` the tree takes no groups, and inside a group of the branch its `match` must be the one of that group: write each condition as its own `matches` rule and group them with the groups of the branch filter. On a company, the conditions on its contacts (`company.contacts.*`) in one `all` are met by the same contact: a tree `all` keeps them together in one `matches` rule (its other conditions are split as usual), and with `any` each one is its own rule. Fields, operators and whether a field needs `audience` come from `list_contact_filter_fields` and `get_contact_filter_field` with `usable_in=automation`, and from `list_company_filter_fields` and `get_company_filter_field`. The `field` of this issue points to the part to fix.\n* `filter_unsupported` - This filter cannot be published yet: use a field and an operator that the filter supports.\n* `wait_date_unsupported` - This wait until a date cannot be published yet: use a date field that the wait supports.\n* `wait_change_unsupported` - This wait cannot be published with that `object` or change yet: choose a supported object and change.\n* `for_each_unsupported` - This \"For each\" cannot be published with that `list` yet: choose a list the piece can iterate.\n* `trigger_unsupported` - This trigger cannot be published with that record type yet: choose a supported record type.\n* `exit_when_unavailable` - Remove `settings.exitWhen` or use triggers that provide a Contact, a Company or an Opportunity.\n* `exit_event_unsupported` - Use a supported event in the \"Exit when\" setting, or remove it.\n* `exit_filter_unsupported` - Remove the \"Or matches\" filter of \"Exit when\" or use a supported one.\n* `webhook_without_duplicate_key` - Set the \"Prevent duplicates by\" key of this webhook trigger; without it a repeated request can create extra records or send twice.\n* `writes_listened_field` - This step writes the same field the trigger listens to; check that this is intended, or write another field to avoid loops. It does not block publishing.\n* `instructions_too_long` - Shorten `configuration.instructions`: inserted data does not count, but your own text has a maximum.\n* `task_too_long` - Shorten `configuration.task`: inserted data does not count, but your own text has a maximum.\n* `text_too_long` - Shorten `configuration.text`: inserted data does not count, but your own text has a maximum.\n* `title_too_long` - Shorten `configuration.title`: inserted data does not count, but your own text has a maximum.\n* `agent_not_found` - Set `configuration.agentUuid` to an agent that exists in this account.\n* `agent_not_published` - Publish this agent in the account settings or choose another published agent in `configuration.agentUuid`.\n* `agent_archived` - Choose another agent in `configuration.agentUuid`: this one is archived.\n* `agent_access_denied` - Choose an agent the publishing user may use: only people who manage automations can use this one.\n* `mcp_connection_unavailable` - Choose another agent: this one uses a connection to another app that the publishing user cannot use or that no longer exists.\n* `resource_unavailable` - The user, team, mailbox or resource set in the reported `field` is no longer available; choose another one that exists and is usable. A user must be `active` in `list_account_members` (or `get_account_member`) and a team one of `list_account_teams`.\n* `mailbox_burst_in_loop` - This email is sent from a connected mailbox inside a loop and could send many messages at once; reduce the loop size or move the send outside. It does not block publishing.\n* `attachment_missing` - Remove the attachment or use the uuid of an existing file asset of this workflow in `configuration.attachments`.\n* `sequence_unavailable` - Set `configuration.sequence` to the uuid of an active or paused email sequence with a published version.\n* `sequence_not_allowed` - Choose a sequence the publishing user may enroll contacts in: they need Automations work permission, Contacts read access and, if it sends from their mailbox, permission to send from it.\n* `reminder_requires_due_and_assignee` - Add a due date and an assignee to the task `fields` when a reminder is set, or remove the reminder.\n* `task_reminder_requirements` - Add a due date and an assignee to the task `fields` when a reminder is set, or remove the reminder.\n* `header_reserved` - Rename this webhook header: Easymailing sets that name itself.\n* `secret_value_required` - Write the value of the secret header again in the reported `field`; secrets are never returned by the API.\n* `secret_header_dynamic_url` - Write the domain of the webhook `url` out in full: a secret header needs a fixed domain, not one that starts with a data reference.\n* `secret_too_long` - Shorten the value of this secret header.\n* `audience_mismatch` - Make the audience used by this filter or step the same one as the audience of the workflow (`settings.audienceUuid`).\n* `capability_missing` - The publishing user needs Marketing permissions on this audience; use another audience or ask for the permission.\n* `ecommerce_resource_missing` - Use an existing product or resource of the store in the reported `field`; the one referenced no longer exists.\n* `marketing_resource_missing` - Use an existing resource (audience, form, campaign, link) in the reported `field`; the one referenced does not exist.\n* `ecommerce_store_missing` - Set `configuration.storeId` to the `resource_id` of a store of this account, as `list_stores` lists it.\n* `store_audience_missing` - Connect the store to an audience, or choose a store that has one.\n* `calendar_unavailable` - Set `configuration.calendar` to a calendar the publishing user can use.\n* `booking_page_unavailable` - Set `configuration.bookingSource` to an existing booking page the publishing user can use.\n* `mailbox_unavailable` - Set `configuration.mailbox` to a connected mailbox the publishing user can use.\n* `connection_required` - Reconnect the mailbox used by this step before publishing.\n* `capability_required` - The publishing user lacks a capability this step needs; use a user with the right permissions.\n* `work_permission_required` - The publishing user needs the Automations work permission to edit this workflow.\n* `plan_required` - This piece or setting needs a plan the account does not have; use another piece or upgrade the plan.\n* `list_over_field_limit` - The list can bring more items than the field takes, so only the first ones will be used. It does not block publishing."
      },
      "PipelineAccessLevel": {
        "type": "string",
        "enum": [
          "read",
          "work",
          "admin"
        ],
        "description": "Access level of a user to a pipeline, from lowest to highest:\n* `read` - See the pipeline and its opportunities\n* `work` - Create and work opportunities\n* `admin` - Manage the pipeline and delete its opportunities"
      },
      "BookingEmailType": {
        "type": "string",
        "enum": [
          "confirmation",
          "data_check"
        ],
        "description": "Email of a booking page:\n* `confirmation` - Sent to confirm the booking\n* `data_check` - Sent to check the data of the booking"
      },
      "OpportunityAttributeType": {
        "type": "string",
        "enum": [
          "text",
          "long_text",
          "integer",
          "decimal",
          "percentage",
          "money",
          "boolean",
          "date",
          "datetime",
          "enum",
          "multi_enum",
          "email",
          "phone",
          "url",
          "country",
          "language",
          "timezone"
        ],
        "description": "Opportunity attribute type:\n* `text` - Short text\n* `long_text` - Long text, several lines\n* `integer` - Whole number\n* `decimal` - Decimal number\n* `percentage` - Percentage\n* `money` - Amount of money in the currency of the attribute\n* `boolean` - Yes or no\n* `date` - Calendar date\n* `datetime` - Date and time\n* `enum` - One option from a list\n* `multi_enum` - Several options from a list\n* `email` - Email address\n* `phone` - Phone number\n* `url` - Web address\n* `country` - Country (ISO 3166-1 alpha-2 code)\n* `language` - Language (ISO 639-1 code)\n* `timezone` - IANA time zone name"
      },
      "EmailSequenceEnrollmentStatus": {
        "type": "string",
        "enum": [
          "scheduled",
          "active",
          "technical-error",
          "completed",
          "excluded",
          "bounced",
          "replied",
          "meeting-booked",
          "automatic-reply",
          "paused"
        ],
        "description": "State of the enrollment:\n* `scheduled` - Waiting for its start\n* `active` - Receiving the emails\n* `technical-error` - An email could not be sent; retry or exclude it\n* `completed` - Received every email\n* `excluded` - Taken out by a person or by the system\n* `bounced` - An email bounced\n* `replied` - The contact replied\n* `meeting-booked` - The contact booked a meeting\n* `automatic-reply` - Paused by an automatic reply\n* `paused` - Paused by a person"
      },
      "BookingSharingMode": {
        "type": "string",
        "enum": [
          "owner_only",
          "account",
          "selected"
        ],
        "description": "Who can use the page:\n* `owner_only` - Only its owner\n* `account` - Every user of the account\n* `selected` - The users and teams listed"
      },
      "ActivityAvailability": {
        "type": "string",
        "enum": [
          "available",
          "unavailable",
          "deleted"
        ],
        "description": "What the user may see of an activity row:\n* `available` - The row is complete\n* `unavailable` - It exists but its content is outside the user's access\n* `deleted` - The email or meeting it pointed to was deleted for good"
      },
      "WorkflowStatus": {
        "type": "string",
        "enum": [
          "draft",
          "active",
          "paused",
          "commercial-paused"
        ],
        "description": "State of the workflow:\n* `draft` - Never published\n* `active` - Published, with its entries open and not paused\n* `paused` - Published, but its entries are closed or the whole workflow is paused\n* `commercial-paused` - Paused because the account lost the CRM plan its published version needs"
      },
      "EmailDirection": {
        "type": "string",
        "enum": [
          "incoming",
          "outgoing"
        ],
        "description": "Direction of an email:\n* `incoming` - Received in the mailbox\n* `outgoing` - Sent from the mailbox"
      },
      "BookingSendableSenderMode": {
        "type": "string",
        "enum": [
          "direct",
          "mailbyem"
        ],
        "description": "How the booking emails would leave:\n* `direct` - From the sender itself\n* `mailbyem` - Through Easymailing's domain on behalf of the sender"
      },
      "SubscriptionFormGeneration": {
        "type": "string",
        "enum": [
          "current",
          "classic"
        ],
        "description": "Subscription form generation:\n* `current` - Created and edited in the Customer App\n* `classic` - Belongs to the older engine, read-only until converted"
      },
      "BookingFormFieldSource": {
        "type": "string",
        "enum": [
          "question",
          "contact",
          "company"
        ],
        "description": "Where the answer is saved:\n* `question` - A free question, saved only with the booking\n* `contact` - A field of the contact\n* `company` - A field of the company"
      },
      "BookingFieldEntity": {
        "type": "string",
        "enum": [
          "contact",
          "company"
        ],
        "description": "Record of the field:\n* `contact` - Contact\n* `company` - Company"
      },
      "SmsOptInSource": {
        "type": "string",
        "enum": [
          "api",
          "manual",
          "form",
          "import"
        ],
        "description": "How the contact opted in to SMS:\n* `api` - Through the API\n* `manual` - Added by a person in the panel\n* `form` - Through a subscription form\n* `import` - Through a file import"
      },
      "BookingConfigurationSchemaVersion": {
        "type": "integer",
        "enum": [
          1
        ],
        "description": "Version of the configuration format:\n* `1` - The current format"
      },
      "CampaignContactTargetingKind": {
        "type": "string",
        "enum": [
          "segment",
          "filter"
        ],
        "description": "How the recipients of a campaign were chosen:\n* `segment` - A contact segment\n* `filter` - The campaign's own filter, optionally on top of a segment"
      },
      "BookingSharingSubjectType": {
        "type": "string",
        "enum": [
          "user",
          "team"
        ],
        "description": "Kind of subject:\n* `user` - A user of the account\n* `team` - A team of the account"
      },
      "BookingLocation": {
        "type": "string",
        "enum": [
          "google_meet",
          "phone",
          "in_person",
          "custom"
        ],
        "description": "Where the meeting happens:\n* `google_meet` - A Google Meet link is added to the event\n* `phone` - By phone, `location_value` is the number\n* `in_person` - In person, `location_value` is the address\n* `custom` - Anything else, described in `location_value`"
      },
      "MeetingTimeType": {
        "type": "string",
        "enum": [
          "timed",
          "all_day"
        ],
        "description": "Kind of time of a meeting:\n* `timed` - Start and end time\n* `all_day` - All-day event"
      },
      "BookingFieldReferenceKind": {
        "type": "string",
        "enum": [
          "structural",
          "attribute"
        ],
        "description": "Kind of field:\n* `structural` - A built-in field, named by `key`\n* `attribute` - A custom attribute, named by `id`"
      },
      "EmailSequenceExitReason": {
        "type": "string",
        "enum": [
          "completed",
          "reply",
          "meeting_booked",
          "unsubscribe",
          "bounce",
          "invalid_address",
          "suppressed",
          "commercial_block",
          "manual_exclusion",
          "subject_removed",
          "missing_required_data",
          "responsible_unavailable"
        ],
        "description": "Why the enrollment ended:\n* `completed` - Every email was sent\n* `reply` - The contact replied\n* `meeting_booked` - The contact booked a meeting\n* `unsubscribe` - The contact unsubscribed\n* `bounce` - An email bounced\n* `invalid_address` - The address is not valid\n* `suppressed` - The address is in the suppression list\n* `commercial_block` - The account lost the CRM Pro plan\n* `manual_exclusion` - A person excluded it\n* `subject_removed` - The contact was removed\n* `missing_required_data` - A required personalization tag had no value\n* `responsible_unavailable` - Its responsible, the owner of the sending mailbox, was removed from the account"
      },
      "ContactAttributeType": {
        "type": "string",
        "enum": [
          "text",
          "long_text",
          "integer",
          "decimal",
          "percentage",
          "money",
          "boolean",
          "date",
          "datetime",
          "birthday",
          "enum",
          "multi_enum",
          "email",
          "phone",
          "url",
          "country",
          "language",
          "timezone"
        ],
        "description": "Contact attributes attribute type:\n* `text` - Short text\n* `long_text` - Long text, several lines\n* `integer` - Whole number\n* `decimal` - Decimal number\n* `percentage` - Percentage\n* `money` - Amount of money in the currency of the attribute\n* `boolean` - Yes or no\n* `date` - Calendar date\n* `datetime` - Date and time\n* `birthday` - Birthday (day and month, year optional)\n* `enum` - One option from a list\n* `multi_enum` - Several options from a list\n* `email` - Email address\n* `phone` - Phone number\n* `url` - Web address\n* `country` - Country (ISO 3166-1 alpha-2 code)\n* `language` - Language (ISO 639-1 code)\n* `timezone` - IANA time zone name"
      },
      "MeetingConferenceInput": {
        "type": "string",
        "enum": [
          "none",
          "google_meet",
          "external"
        ],
        "description": "Video call of a meeting to write:\n* `none` - No video call\n* `google_meet` - Google creates a Meet link\n* `external` - Another provider, given in `conference_url`"
      },
      "EmailSendEstimateReason": {
        "type": "string",
        "enum": [
          "separate",
          "hour",
          "day"
        ],
        "description": "Why it is not immediate:\n* `separate` - Separate emails are spaced five minutes apart\n* `hour` - The hourly limit of the mailbox\n* `day` - The daily limit of the mailbox"
      },
      "EmailSequenceEnrollmentOutcome": {
        "type": "string",
        "enum": [
          "enrolled",
          "skipped",
          "failed"
        ],
        "description": "What happened to the contact:\n* `enrolled` - It was enrolled\n* `skipped` - It was not enrolled on purpose, see `reason`\n* `failed` - An error that applies to the whole request, see `reason`"
      },
      "EmailSequenceUnsubscribeTemplate": {
        "type": "string",
        "enum": [
          "irrelevant",
          "stop",
          "fewer"
        ],
        "description": "Wording of the unsubscribe footer:\n* `irrelevant` - The email is not relevant\n* `stop` - Stop the follow-ups\n* `fewer` - Receive fewer personal follow-ups"
      },
      "EmailSequenceIssueSeverity": {
        "type": "string",
        "enum": [
          "error"
        ],
        "description": "Severity of the problem:\n* `error` - It blocks publishing"
      },
      "PipelineLossReasonMode": {
        "type": "string",
        "enum": [
          "disabled",
          "optional",
          "required"
        ],
        "description": "Whether a loss reason is asked when a deal enters a lost stage:\n* `disabled` - No loss reason\n* `optional` - A loss reason can be given\n* `required` - A loss reason must be given"
      },
      "SubscriptionFormConsentMode": {
        "type": "string",
        "enum": [
          "all_required",
          "one_required"
        ],
        "description": "Consent mode of a subscription form:\n* `all_required` - The visitor must accept every purpose\n* `one_required` - The visitor must accept at least one purpose"
      },
      "EmailSequenceStatus": {
        "type": "string",
        "enum": [
          "draft",
          "active",
          "paused",
          "archived",
          "commercial-paused"
        ],
        "description": "State of the sequence:\n* `draft` - Never published\n* `active` - Published and open to new enrollments\n* `paused` - Published but closed to new enrollments and sending nothing\n* `archived` - Closed and hidden from the default list\n* `commercial-paused` - Paused because the account lost the CRM Pro plan"
      },
      "EmailSequencePrivacy": {
        "type": "string",
        "enum": [
          "full",
          "aggregate"
        ],
        "description": "What the row shows of the recipient:\n* `full` - Name and address\n* `aggregate` - Neither name nor address"
      },
      "EmailSequenceSenderProblem": {
        "type": "string",
        "enum": [
          "missing",
          "mailbox_unavailable",
          "not_allowed",
          "signature_missing"
        ],
        "description": "Problem of the sender of the published version:\n* `missing` - No sender\n* `mailbox_unavailable` - The mailbox is disconnected or cannot send\n* `not_allowed` - Whoever published it lost the send permission\n* `signature_missing` - The signature is gone"
      },
      "MeetingParticipantRole": {
        "type": "string",
        "enum": [
          "organizer",
          "attendee"
        ],
        "description": "Role of a person on a meeting:\n* `organizer` - The Google account that owns the event\n* `attendee` - Everyone else"
      },
      "MeetingWriteAction": {
        "type": "string",
        "enum": [
          "create_event",
          "update_event",
          "cancel_event"
        ],
        "description": "Kind of meeting write:\n* `create_event` - Create the event\n* `update_event` - Change the event\n* `cancel_event` - Cancel the event"
      },
      "EmailSequenceTagGroup": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "sender"
        ],
        "description": "Where the value of the tag comes from:\n* `contact` - The contact\n* `company` - The company of the contact\n* `sender` - The person who sends"
      },
      "EmailParticipantKind": {
        "type": "string",
        "enum": [
          "member",
          "shared_mailbox",
          "contact",
          "internal",
          "external"
        ],
        "description": "Who an email address is for the reader:\n* `member` - An active member of the account\n* `shared_mailbox` - A shared mailbox such as sales@\n* `contact` - A CRM contact\n* `internal` - Internal address without identity\n* `external` - Anyone else"
      },
      "CampaignContactTargetingRevisionStatus": {
        "type": "string",
        "enum": [
          "following_latest",
          "pinned_current",
          "pinned_outdated"
        ],
        "description": "Which revision of its segments a campaign uses:\n* `following_latest` - The current revision (drafts)\n* `pinned_current` - The revision it was scheduled or sent with, still the current one\n* `pinned_outdated` - The revision it was scheduled with; the segment changed afterwards"
      },
      "OpportunityStatus": {
        "type": "string",
        "enum": [
          "open",
          "won",
          "lost"
        ],
        "description": "Commercial situation of an opportunity, derived from the type of its stage:\n* `open` - Being worked; also an opportunity without stage\n* `won` - Closed as won\n* `lost` - Closed as lost"
      },
      "ContactFilterMatch": {
        "type": "string",
        "enum": [
          "all",
          "any"
        ],
        "description": "How the items of a level combine:\n* `all` - Every item must hold (AND)\n* `any` - At least one item must hold (OR)"
      },
      "BookingHourFormat": {
        "type": "string",
        "enum": [
          "12h",
          "24h"
        ],
        "description": "How times are shown:\n* `12h` - 12-hour clock\n* `24h` - 24-hour clock"
      },
      "BookingEffectiveSenderSource": {
        "type": "string",
        "enum": [
          "selected",
          "fallback"
        ],
        "description": "Which address is used:\n* `selected` - The chosen sender\n* `fallback` - Easymailing's address, on behalf of the sender"
      },
      "MeetingSendUpdates": {
        "type": "string",
        "enum": [
          "all",
          "external_only",
          "none"
        ],
        "description": "Who Google emails about the change:\n* `all` - Every guest\n* `external_only` - Only guests who do not use Google Calendar\n* `none` - Nobody"
      },
      "AiAgentRunSource": {
        "type": "string",
        "enum": [
          "published",
          "draft"
        ],
        "description": "What the run runs:\n* `published` - The current published version\n* `draft` - The draft (a test)"
      },
      "EmailAccessLevel": {
        "type": "string",
        "enum": [
          "metadata_only",
          "subject_and_metadata",
          "full_access"
        ],
        "description": "What the user may see of an email:\n* `metadata_only` - Participants and date\n* `subject_and_metadata` - Also the subject\n* `full_access` - Also the snippet, body, attachments and AI summary"
      },
      "BookingEmailSenderMode": {
        "type": "string",
        "enum": [
          "direct",
          "mailbyem",
          "needs_authentication",
          "unavailable"
        ],
        "description": "How the booking emails leave:\n* `direct` - From the sender itself\n* `mailbyem` - Through Easymailing's domain on behalf of the sender\n* `needs_authentication` - The domain of the sender must be authenticated first\n* `unavailable` - No sender, or it cannot send"
      },
      "EntityActivityCategory": {
        "type": "string",
        "enum": [
          "contact",
          "audience",
          "marketing",
          "automation",
          "crm",
          "ecommerce",
          "form",
          "survey"
        ],
        "description": "Area of the product an activity row belongs to:\n* `contact` - The contact itself\n* `audience` - Subscriptions to audiences\n* `marketing` - Email and SMS campaigns\n* `automation` - Automations\n* `crm` - Companies, opportunities, tasks, notes, files, emails and meetings\n* `ecommerce` - Orders and carts\n* `form` - Subscription forms\n* `survey` - Surveys"
      },
      "EmailSendState": {
        "type": "string",
        "enum": [
          "queued",
          "sending",
          "sent",
          "failed",
          "unconfirmed",
          "canceled"
        ],
        "description": "State of the send:\n* `queued` - Waiting for its time; it can be cancelled\n* `sending` - Leaving now\n* `sent` - Gmail accepted it\n* `failed` - It did not leave, see `failure_reason`\n* `unconfirmed` - Gmail's answer was unclear: it may or may not have left\n* `canceled` - Cancelled before leaving"
      },
      "EmailAttachmentDisposition": {
        "type": "string",
        "enum": [
          "attachment",
          "inline"
        ],
        "description": "How an attachment was attached:\n* `attachment` - As an attachment\n* `inline` - Inline in the body"
      },
      "PipelineStageType": {
        "type": "string",
        "enum": [
          "open",
          "won",
          "lost"
        ],
        "description": "Pipeline stage type:\n* `open` - The deal is being worked\n* `won` - The deal is closed as won\n* `lost` - The deal is closed as lost"
      },
      "MeetingResponseStatus": {
        "type": "string",
        "enum": [
          "accepted",
          "tentative",
          "declined",
          "pending"
        ],
        "description": "Answer of a guest:\n* `accepted` - Accepted\n* `tentative` - Maybe\n* `declined` - Declined\n* `pending` - Not answered yet"
      },
      "ActivityReferenceKind": {
        "type": "string",
        "enum": [
          "note",
          "task",
          "contact",
          "company",
          "opportunity",
          "automation",
          "automation_workflow",
          "form",
          "survey",
          "file",
          "import"
        ],
        "description": "Kind of object an activity row is about:\n* `note` - A note\n* `task` - A task\n* `contact` - A contact\n* `company` - A company\n* `opportunity` - An opportunity\n* `automation` - An automation\n* `automation_workflow` - A workflow, with the execution the row is about\n* `form` - A subscription form\n* `survey` - A survey\n* `file` - A file\n* `import` - An import"
      },
      "ActivityChannel": {
        "type": "string",
        "enum": [
          "email",
          "sms",
          "web",
          "phone",
          "meeting"
        ],
        "description": "Channel an activity happened on:\n* `email` - Email\n* `sms` - SMS\n* `web` - Web\n* `phone` - Phone\n* `meeting` - Meeting"
      },
      "MeetingConferenceType": {
        "type": "string",
        "enum": [
          "google_meet",
          "microsoft_teams",
          "zoom",
          "other"
        ],
        "description": "Provider of a video call:\n* `google_meet` - Google Meet\n* `microsoft_teams` - Microsoft Teams\n* `zoom` - Zoom\n* `other` - Another provider"
      },
      "EmailRecipientCandidateSource": {
        "type": "string",
        "enum": [
          "company",
          "opportunity"
        ],
        "description": "Where the contact comes from:\n* `company` - Works at the company\n* `opportunity` - Assigned to the opportunity"
      },
      "BookingPageState": {
        "type": "string",
        "enum": [
          "draft",
          "published",
          "paused",
          "archived"
        ],
        "description": "State of a booking page:\n* `draft` - Never published\n* `published` - The public link works\n* `paused` - The link is closed; it can be published again\n* `archived` - Retired for good"
      },
      "WorkflowPieceKind": {
        "type": "string",
        "enum": [
          "trigger",
          "step",
          "wait",
          "loop"
        ],
        "description": "Kind of piece:\n* `trigger` - Starts the workflow for a subject\n* `step` - Does something or decides a branch\n* `wait` - Waits for a time, a date or an event\n* `loop` - Runs its body once for each item of a list («For each»)"
      },
      "EmailReopenableSendState": {
        "type": "string",
        "enum": [
          "queued",
          "failed",
          "unconfirmed"
        ],
        "description": "State of the original send:\n* `queued` - Still waiting for its time\n* `failed` - It did not leave\n* `unconfirmed` - Gmail's answer was unclear"
      },
      "SubscriptionFormPopupFrequencyDays": {
        "type": "integer",
        "enum": [
          1,
          7,
          15,
          30,
          60,
          90,
          180,
          365
        ],
        "description": "Days before the same visitor sees a popup again:\n* `1`\n* `7`\n* `15`\n* `30`\n* `60`\n* `90`\n* `180`\n* `365`"
      },
      "EmailContentState": {
        "type": "string",
        "enum": [
          "index_only",
          "hydrating",
          "full",
          "unavailable"
        ],
        "description": "Whether the content of an email is stored:\n* `index_only` - Only participants and date; the content is requested when listed\n* `hydrating` - The content is being downloaded\n* `full` - The content is stored\n* `unavailable` - The content cannot be retrieved"
      },
      "EmailPersonalizationTagGroup": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "sender",
          "opportunity"
        ],
        "description": "Group of the tag:\n* `contact` - The contact and its custom fields\n* `company` - The company of the contact\n* `sender` - The user who sends\n* `opportunity` - Only when writing from an opportunity"
      },
      "EmailAiSummaryState": {
        "type": "string",
        "enum": [
          "none",
          "pending",
          "ready",
          "failed"
        ],
        "description": "State of the AI summary of an email:\n* `none` - Not requested\n* `pending` - Being generated\n* `ready` - Available in `ai_summary`\n* `failed` - Could not be generated"
      },
      "EmailGrantRecordType": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "opportunity"
        ],
        "description": "Kind of record of an email grant:\n* `contact` - A contact\n* `company` - A company\n* `opportunity` - An opportunity"
      },
      "BookingDuration": {
        "type": "integer",
        "enum": [
          15,
          30,
          45,
          60
        ],
        "description": "Duration of a booked meeting, in minutes:\n* `15` - 15 minutes\n* `30` - 30 minutes\n* `45` - 45 minutes\n* `60` - 60 minutes"
      },
      "CrmFileOwnerType": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "opportunity"
        ],
        "description": "Kind of record a file is attached to:\n* `contact` - A contact\n* `company` - A company\n* `opportunity` - An opportunity"
      },
      "EmailParticipantRole": {
        "type": "string",
        "enum": [
          "from",
          "to",
          "cc",
          "bcc"
        ],
        "description": "Role of a participant in an email:\n* `from` - Sender\n* `to` - Recipient\n* `cc` - Copy\n* `bcc` - Blind copy, only shown to the owner of the mailbox that revealed it"
      },
      "WorkflowRequiredPlan": {
        "type": "string",
        "enum": [
          "crm_essentials",
          "crm_pro"
        ],
        "description": "CRM plan the piece needs to be published:\n* `crm_essentials` - Any CRM plan\n* `crm_pro` - The CRM Pro plan"
      },
      "EmailSendMode": {
        "type": "string",
        "enum": [
          "compose",
          "reply",
          "reply_all",
          "forward"
        ],
        "description": "How the email is written:\n* `compose` - A new email\n* `reply` - A reply to the sender of `source_email`\n* `reply_all` - A reply to everyone in `source_email`\n* `forward` - A forward of `source_email`"
      },
      "EmailGrantScope": {
        "type": "string",
        "enum": [
          "message",
          "record"
        ],
        "description": "What an email grant applies to:\n* `message` - Only this email\n* `record` - All the emails of the mailbox tied to the record"
      },
      "MeetingWriteState": {
        "type": "string",
        "enum": [
          "pending",
          "uncertain",
          "confirmed",
          "conflict",
          "failed"
        ],
        "description": "State of a meeting write:\n* `pending` - Recorded, not resolved yet\n* `uncertain` - Google did not answer clearly; checked in the background\n* `confirmed` - Applied in Google and in the CRM\n* `conflict` - The event differs from what the change expected\n* `failed` - Not applied, or could not be confirmed"
      },
      "WorkflowDisplayStatus": {
        "type": "string",
        "enum": [
          "draft",
          "active",
          "paused",
          "error"
        ],
        "description": "State a list shows for the workflow:\n* `draft` - Never published\n* `active` - Running, with no blocked execution\n* `paused` - Paused in any way (entries closed, whole workflow paused or commercial pause), with no blocked execution\n* `error` - Published, with at least one blocked execution that someone has to resolve"
      },
      "EmailSequenceTemplate": {
        "type": "string",
        "enum": [
          "blank",
          "sales_follow_up"
        ],
        "description": "Template of a new sequence:\n* `blank` - One empty email\n* `sales_follow_up` - Three follow-up emails with waits"
      },
      "AiAgentAccess": {
        "type": "string",
        "enum": [
          "team",
          "managers"
        ],
        "description": "Who can use the agent:\n* `team` - Everyone who edits automations (`automations.work`)\n* `managers` - Only those who manage automations (`automations.manage`)"
      },
      "BookingPageCheckStatus": {
        "type": "string",
        "enum": [
          "ok",
          "missing"
        ],
        "description": "Whether it is in place:\n* `ok` - In place\n* `missing` - Missing or no longer usable"
      },
      "EmailSequenceEventType": {
        "type": "string",
        "enum": [
          "enrolled",
          "email_sent",
          "exited",
          "completed",
          "paused",
          "resumed",
          "failed",
          "retried",
          "commercial_paused",
          "reactivated",
          "archived",
          "restored"
        ],
        "description": "Type of event:\n* `enrolled` - A contact was enrolled\n* `email_sent` - An email was sent\n* `exited` - An enrollment ended before the last email\n* `completed` - An enrollment received every email\n* `paused` - The sequence or an enrollment was paused\n* `resumed` - The sequence or an enrollment was resumed\n* `failed` - An email could not be sent\n* `retried` - A failed email was retried\n* `commercial_paused` - The sequence was paused because the account lost the CRM Pro plan\n* `reactivated` - The sequence was reactivated after the commercial pause\n* `archived` - The sequence was archived\n* `restored` - The sequence was restored"
      },
      "WorkflowIssueSeverity": {
        "type": "string",
        "enum": [
          "incomplete",
          "error",
          "warning"
        ],
        "description": "Severity of the issue:\n* `incomplete` - Something is missing; it blocks publishing\n* `error` - Something is wrong; it blocks publishing\n* `warning` - Worth checking; it does not block publishing"
      },
      "AiAgentRunStopCause": {
        "type": "string",
        "enum": [
          "ai_credits_exhausted",
          "ai_overage_exhausted",
          "ai_agents_cap_reached",
          "ai_agent_cap_reached",
          "ai_credits_insufficient",
          "ai_overage_unlimited",
          "ai_payment_pending",
          "economic_entitlement_unavailable",
          "agent_unavailable",
          "ai_unavailable",
          "ai_output_invalid"
        ],
        "description": "Why the run stopped:\n* `ai_credits_exhausted` - The included AI balance is used up and extra spending is off\n* `ai_overage_exhausted` - The extra spending limit is reached\n* `ai_agents_cap_reached` - The cap for all agents in this period is reached\n* `ai_agent_cap_reached` - This agent reached its own cap\n* `ai_credits_insufficient` - What is left is less than the maximum cost of one task\n* `ai_overage_unlimited` - Extra spending without a limit, which agents do not use\n* `ai_payment_pending` - An unpaid charge blocks new AI use\n* `economic_entitlement_unavailable` - The account lost CRM Pro\n* `agent_unavailable` - The agent was archived or the person who asked can no longer use it\n* `ai_unavailable` - The AI provider failed\n* `ai_output_invalid` - The answer was empty, cut or did not fit the requested fields"
      },
      "OpportunityConversionStatus": {
        "type": "string",
        "enum": [
          "same_currency",
          "converted",
          "pending",
          "unavailable",
          "no_amount"
        ],
        "description": "State of the conversion of an amount to a reference currency:\n* `same_currency` - The amount is already in the reference currency\n* `converted` - Converted with the rate of `rate_date`\n* `pending` - There is no rate yet; the conversion is calculated later\n* `unavailable` - The currency has no rate\n* `no_amount` - The opportunity has no amount, so there is nothing to convert"
      },
      "WorkflowSubjectState": {
        "type": "string",
        "enum": [
          "visible",
          "hidden",
          "deleted"
        ],
        "description": "The record of the execution:\n* `visible` - It exists and the user can read it, so `label` is its name (also a received webhook request, whose `label` is null)\n* `hidden` - A protected record: the user cannot read it (its kind, or the pipeline of an opportunity), so there is no name or detail\n* `deleted` - It no longer exists"
      },
      "AiAgentRunLimit": {
        "type": "string",
        "enum": [
          "cost",
          "tool_calls",
          "time"
        ],
        "description": "Limit reached:\n* `cost` - It reached `limits.max_cost`\n* `tool_calls` - It reached `limits.max_tool_calls`\n* `time` - It reached `limits.max_seconds`"
      },
      "AiAgentStatus": {
        "type": "string",
        "enum": [
          "draft",
          "published",
          "archived"
        ],
        "description": "State of the agent:\n* `draft` - Never published\n* `published` - Has a published version that can be asked\n* `archived` - Retired; it cannot change or be asked"
      },
      "EmailSequenceStepKind": {
        "type": "string",
        "enum": [
          "email",
          "wait"
        ],
        "description": "Kind of step:\n* `email` - An email\n* `wait` - A wait of some days"
      },
      "CrmFileSource": {
        "type": "string",
        "enum": [
          "upload"
        ],
        "description": "Where a CRM file is stored:\n* `upload` - Stored in Easymailing"
      },
      "MeetingRecordType": {
        "type": "string",
        "enum": [
          "company",
          "opportunity",
          "contact"
        ],
        "description": "Kind of CRM record:\n* `company` - A company\n* `opportunity` - An opportunity\n* `contact` - A contact"
      },
      "OpportunityProbabilityMode": {
        "type": "string",
        "enum": [
          "stage",
          "custom"
        ],
        "description": "Where the probability of an opportunity comes from:\n* `stage` - The probability of the stage\n* `custom` - A probability set by hand, allowed only in open stages of pipelines that permit it"
      },
      "WorkflowTriggerEntryState": {
        "type": "string",
        "enum": [
          "open",
          "paused"
        ],
        "description": "Entries of one trigger of the published version:\n* `open` - The trigger admits new entries\n* `paused` - The trigger was paused on its own and admits none"
      },
      "BookingSharingSubjectStatus": {
        "type": "string",
        "enum": [
          "active",
          "suspended"
        ],
        "description": "Status of the subject:\n* `active` - It can use the page\n* `suspended` - The user no longer has CRM access"
      },
      "OpportunityReferenceBasis": {
        "type": "string",
        "enum": [
          "latest",
          "closure"
        ],
        "description": "Rate behind the reference value of an opportunity:\n* `latest` - The latest rate\n* `closure` - The rate of the closing date of a won or lost opportunity"
      },
      "EmailGranteeKind": {
        "type": "string",
        "enum": [
          "user",
          "team"
        ],
        "description": "Who can be given access to emails:\n* `user` - A member of the account\n* `team` - A team of the account"
      },
      "MeetingWriteError": {
        "type": "string",
        "enum": [
          "permission_missing",
          "provider_rejected",
          "event_id_taken",
          "not_confirmed",
          "provider_version_conflict",
          "calendar_unavailable",
          "calendar_not_writable"
        ],
        "description": "Why a meeting write did not apply:\n* `permission_missing` - Google rejected the stored permission\n* `provider_rejected` - Google refused the request definitively\n* `event_id_taken` - The event ID belongs to another event\n* `not_confirmed` - It could not be confirmed\n* `provider_version_conflict` - The event changed in Google meanwhile\n* `calendar_unavailable` - The calendar or its connection is not available\n* `calendar_not_writable` - Google does not let this account change it"
      },
      "AiAgentRunState": {
        "type": "string",
        "enum": [
          "queued",
          "running",
          "waiting_approval",
          "completed",
          "stopped"
        ],
        "description": "State of the run:\n* `queued` - Waiting for a turn\n* `running` - The agent is working\n* `waiting_approval` - Waits for a person to approve something that writes (not used by runs asked through the API)\n* `completed` - Finished with an answer\n* `stopped` - Ended without a valid complete answer; see `stop_cause`"
      },
      "WorkflowExecutionState": {
        "type": "string",
        "enum": [
          "active",
          "waiting",
          "blocked",
          "completed",
          "stopped",
          "canceled"
        ],
        "description": "State of the execution:\n* `active` - On its way: running a step, retrying it or checking its effect\n* `waiting` - In a timed wait\n* `blocked` - Stopped at a step until someone resolves it in the app; see `cause` and `expires_at`\n* `completed` - Went through to the end\n* `stopped` - Left the workflow early, for example by an exit rule; see `cause`\n* `canceled` - Canceled by someone or by the expiry of a blocked execution; see `cause`"
      },
      "MeetingParticipantKind": {
        "type": "string",
        "enum": [
          "user",
          "contact",
          "external"
        ],
        "description": "Who a person on a meeting is:\n* `user` - A user of this account\n* `contact` - A contact of the CRM\n* `external` - Anyone else"
      },
      "MeetingStatus": {
        "type": "string",
        "enum": [
          "confirmed",
          "cancelled"
        ],
        "description": "Status of a meeting:\n* `confirmed` - It takes place\n* `cancelled` - It was cancelled; it stays in the history"
      },
      "NoteRecordType": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "opportunity"
        ],
        "description": "Kind of record a note belongs to:\n* `contact` - A contact\n* `company` - A company\n* `opportunity` - An opportunity"
      },
      "WorkflowSubjectType": {
        "type": "string",
        "enum": [
          "contact",
          "company",
          "opportunity",
          "task",
          "meeting",
          "note",
          "call",
          "subscription",
          "order",
          "cart",
          "survey_response",
          "opportunity_contact",
          "meeting_contact",
          "webhook_request"
        ],
        "description": "What the execution runs for:\n* `contact`, `company`, `opportunity`, `task`, `note`, `call` - A CRM record\n* `meeting` - A meeting (the subject of the meeting triggers)\n* `subscription` - A contact's subscription to an audience\n* `order`, `cart` - An order or an abandoned cart of a store\n* `survey_response` - An answer to a survey\n* `opportunity_contact` - A contact of an opportunity (the pair)\n* `meeting_contact` - A contact of a meeting (the pair)\n* `webhook_request` - A request received by a webhook trigger; it is not a record"
      },
      "EmailGrantValueKind": {
        "type": "string",
        "enum": [
          "address",
          "domain"
        ],
        "description": "What identifies the emails of a record:\n* `address` - Email addresses (a contact or opportunity)\n* `domain` - Domains (a company)"
      },
      "AutomationStepChildrenNormal": {
        "type": "object",
        "description": "Children structure for normal steps (non-condition). Contains the next step in sequence.",
        "properties": {
          "next": {
            "description": "Next step in the workflow (AutomationStep object). Null if this is the last step. See AutomationStep schema for structure.",
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": true,
                "description": "AutomationStep object (recursive structure)"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "AutomationStepChildrenCondition": {
        "type": "object",
        "description": "Children structure for condition steps. Contains \"yes\" and \"no\" branches.",
        "properties": {
          "yes": {
            "description": "Step for contacts that MATCH the condition (AutomationStep object). Null if no step defined. See AutomationStep schema for structure.",
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": true,
                "description": "AutomationStep object (recursive structure)"
              },
              {
                "type": "null"
              }
            ]
          },
          "no": {
            "description": "Step for contacts that DO NOT match the condition (AutomationStep object). Null if no step defined. See AutomationStep schema for structure.",
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": true,
                "description": "AutomationStep object (recursive structure)"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Audience.jsonld-audience.write.create_audience": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the audience, shown in the panel.",
            "example": "Newsletter customers"
          },
          "description": {
            "type": "string",
            "description": "Short description of who is in the audience.",
            "example": "People who buy from our online shop and accepted the newsletter"
          },
          "currency": {
            "type": "string",
            "description": "Currency code (ISO 4217) used for the ecommerce figures of this audience.",
            "example": "EUR"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA) used for dates and sending times of this audience.",
            "example": "Europe/Madrid"
          },
          "preferences": {
            "description": "Default sender settings for campaigns sent to this audience. All three fields are required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "from_name": "Acme",
              "from_email": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77",
              "reply_to": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
            }
          },
          "company": {
            "description": "Company details printed in the footer of the emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto.jsonld-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_gdpr": {
            "description": "GDPR settings of the audience. Required, even when GDPR is disabled (send `{\"enabled\": false}`).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr.jsonld-audience.write.create_audience.list_gdpr"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "enabled": false
            }
          }
        }
      },
      "ListGdpr.jsonld-audience.write.create_audience.list_gdpr": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Turn GDPR on. When true, `privacy_url`, `data_manager` and at least one entry in `treatment_purposes` are required. Defaults to false when omitted.",
            "example": true
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL of your privacy policy. Required when GDPR is enabled.",
            "example": "https://www.acme.example/privacy"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes (`/treatment_purposes/{uuid}`) members can consent to. Required when GDPR is enabled.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          },
          "data_manager": {
            "description": "IRI of the data manager (`/data_managers/{uuid}`) responsible for the data. Required when GDPR is enabled.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
          }
        }
      },
      "Audience-audience.write.create_audience": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "description",
          "currency",
          "timezone",
          "preferences",
          "list_gdpr"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the audience, shown in the panel.",
            "example": "Newsletter customers"
          },
          "description": {
            "type": "string",
            "description": "Short description of who is in the audience.",
            "example": "People who buy from our online shop and accepted the newsletter"
          },
          "currency": {
            "type": "string",
            "description": "Currency code (ISO 4217) used for the ecommerce figures of this audience.",
            "example": "EUR"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone identifier (IANA) used for dates and sending times of this audience.",
            "example": "Europe/Madrid"
          },
          "preferences": {
            "description": "Default sender settings for campaigns sent to this audience. All three fields are required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudiencePreferencesDto-audience.write"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "from_name": "Acme",
              "from_email": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77",
              "reply_to": "/senders/3b9c1e55-7a42-4d08-9f6e-1c5d8a0b2e77"
            }
          },
          "company": {
            "description": "Company details printed in the footer of the emails sent to this audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceCompanyDto-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "description": "Opt-in mode, welcome email and notification settings of the audience.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceNotificationsDto-audience.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "list_gdpr": {
            "description": "GDPR settings of the audience. Required, even when GDPR is disabled (send `{\"enabled\": false}`).",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListGdpr-audience.write.create_audience.list_gdpr"
              },
              {
                "type": "null"
              }
            ],
            "example": {
              "enabled": false
            }
          }
        }
      },
      "ListGdpr-audience.write.create_audience.list_gdpr": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Turn GDPR on. When true, `privacy_url`, `data_manager` and at least one entry in `treatment_purposes` are required. Defaults to false when omitted.",
            "example": true
          },
          "privacy_url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "URL of your privacy policy. Required when GDPR is enabled.",
            "example": "https://www.acme.example/privacy"
          },
          "treatment_purposes": {
            "description": "IRIs of the data processing purposes (`/treatment_purposes/{uuid}`) members can consent to. Required when GDPR is enabled.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": [
              "/treatment_purposes/8d3f0a9e-1b6c-4c72-a5e4-0f2b7d9c1a38"
            ]
          },
          "data_manager": {
            "description": "IRI of the data manager (`/data_managers/{uuid}`) responsible for the data. Required when GDPR is enabled.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/data_managers/6a1d4c8f-9e20-43b7-8c15-d2f0e7a39b04"
          }
        }
      },
      "Group.jsonld-group.write.update_audience_group": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "New name of the group.",
            "example": "VIP customers"
          },
          "description": {
            "type": "string",
            "description": "New description.",
            "example": "Customers who bought more than three times"
          },
          "color": {
            "type": "string",
            "description": "New colour as a hex code.",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Whether the group is public, so it can be offered to subscribers in subscription forms.",
            "example": false
          }
        }
      },
      "Group-group.write.update_audience_group": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "color"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "New name of the group.",
            "example": "VIP customers"
          },
          "description": {
            "type": "string",
            "description": "New description.",
            "example": "Customers who bought more than three times"
          },
          "color": {
            "type": "string",
            "description": "New colour as a hex code.",
            "example": "#FF0000"
          },
          "public": {
            "type": "boolean",
            "description": "Whether the group is public, so it can be offered to subscribers in subscription forms.",
            "example": false
          }
        }
      },
      "ListField.CustomFieldSimple.jsonld-list_field.write.create_custom_field_simple": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "type",
          "tag",
          "translations"
        ],
        "properties": {
          "type": {
            "enum": [
              "list.field.type.text",
              "list.field.type.textarea",
              "list.field.type.url",
              "list.field.type.integer",
              "list.field.type.decimal",
              "list.field.type.money",
              "list.field.type.boolean",
              "list.field.type.language",
              "list.field.type.date",
              "list.field.type.datetime",
              "list.field.type.birthday"
            ],
            "type": "string",
            "description": "Data type of the field. It cannot be changed afterwards. For a field with options use `create_custom_field_select` or `create_custom_field_multiselect`.",
            "example": "list.field.type.text"
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COMPANY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Empresa",
                "default_value": "",
                "help_text": "Nombre de tu empresa"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput.jsonld-list_field.write.create_custom_field_simple.translations"
            }
          }
        }
      },
      "CustomFieldTranslationInput.jsonld-list_field.write.create_custom_field_simple.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Empresa"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Nombre de tu empresa"
          }
        }
      },
      "ListField.CustomFieldSimple-list_field.write.create_custom_field_simple": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "type",
          "tag",
          "translations"
        ],
        "properties": {
          "type": {
            "enum": [
              "list.field.type.text",
              "list.field.type.textarea",
              "list.field.type.url",
              "list.field.type.integer",
              "list.field.type.decimal",
              "list.field.type.money",
              "list.field.type.boolean",
              "list.field.type.language",
              "list.field.type.date",
              "list.field.type.datetime",
              "list.field.type.birthday"
            ],
            "type": "string",
            "description": "Data type of the field. It cannot be changed afterwards. For a field with options use `create_custom_field_select` or `create_custom_field_multiselect`.",
            "example": "list.field.type.text"
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COMPANY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Empresa",
                "default_value": "",
                "help_text": "Nombre de tu empresa"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput-list_field.write.create_custom_field_simple.translations"
            }
          }
        }
      },
      "CustomFieldTranslationInput-list_field.write.create_custom_field_simple.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Empresa"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Nombre de tu empresa"
          }
        }
      },
      "ListField.CustomFieldSelect.jsonld-list_field.write.create_custom_field_select": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as radio buttons (true) or as a dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "ES"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "España"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "España"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "ES",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "España"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COUNTRY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "País",
                "default_value": "",
                "help_text": "País de residencia"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput.jsonld-list_field.write.create_custom_field_select.translations"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "CustomFieldTranslationInput.jsonld-list_field.write.create_custom_field_select.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "País"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "País de residencia"
          }
        }
      },
      "ListField.CustomFieldSelect-list_field.write.create_custom_field_select": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as radio buttons (true) or as a dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "ES"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "España"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "España"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "ES",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "España"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COUNTRY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "País",
                "default_value": "",
                "help_text": "País de residencia"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput-list_field.write.create_custom_field_select.translations"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "CustomFieldTranslationInput-list_field.write.create_custom_field_select.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "País"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "País de residencia"
          }
        }
      },
      "ListField.CustomFieldSimple.jsonld-list_field.write.update_custom_field_simple": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "type",
          "tag",
          "translations"
        ],
        "properties": {
          "type": {
            "enum": [
              "list.field.type.text",
              "list.field.type.textarea",
              "list.field.type.url",
              "list.field.type.integer",
              "list.field.type.decimal",
              "list.field.type.money",
              "list.field.type.boolean",
              "list.field.type.language",
              "list.field.type.date",
              "list.field.type.datetime",
              "list.field.type.birthday"
            ],
            "type": "string",
            "description": "Required, but the type of an existing field cannot be changed: send one of the simple types that matches the field.",
            "example": "list.field.type.text"
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COMPANY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Empresa",
                "default_value": "",
                "help_text": "Nombre de tu empresa"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput.jsonld-list_field.write.update_custom_field_simple.translations"
            }
          }
        }
      },
      "CustomFieldTranslationInput.jsonld-list_field.write.update_custom_field_simple.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Empresa"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Nombre de tu empresa"
          }
        }
      },
      "ListField.CustomFieldSimple-list_field.write.update_custom_field_simple": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "type",
          "tag",
          "translations"
        ],
        "properties": {
          "type": {
            "enum": [
              "list.field.type.text",
              "list.field.type.textarea",
              "list.field.type.url",
              "list.field.type.integer",
              "list.field.type.decimal",
              "list.field.type.money",
              "list.field.type.boolean",
              "list.field.type.language",
              "list.field.type.date",
              "list.field.type.datetime",
              "list.field.type.birthday"
            ],
            "type": "string",
            "description": "Required, but the type of an existing field cannot be changed: send one of the simple types that matches the field.",
            "example": "list.field.type.text"
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COMPANY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "Empresa",
                "default_value": "",
                "help_text": "Nombre de tu empresa"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput-list_field.write.update_custom_field_simple.translations"
            }
          }
        }
      },
      "CustomFieldTranslationInput-list_field.write.update_custom_field_simple.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "Empresa"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "Nombre de tu empresa"
          }
        }
      },
      "ListField.CustomFieldSelect.jsonld-list_field.write.update_custom_field_select": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as radio buttons (true) or as a dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "ES"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "España"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "España"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "ES",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "España"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COUNTRY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "País",
                "default_value": "",
                "help_text": "País de residencia"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput.jsonld-list_field.write.update_custom_field_select.translations"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "CustomFieldTranslationInput.jsonld-list_field.write.update_custom_field_select.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "País"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "País de residencia"
          }
        }
      },
      "ListField.CustomFieldSelect-list_field.write.update_custom_field_select": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "expanded": {
            "type": "boolean",
            "description": "Show the options as radio buttons (true) or as a dropdown (false). Defaults to false.",
            "default": false,
            "example": false
          },
          "options": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "translations"
              ],
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Value stored on the member when this option is picked. Unique within the field.",
                  "example": "ES"
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether this option is selected by default. Defaults to false.",
                  "example": false,
                  "default": false
                },
                "translations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "locale",
                      "name"
                    ],
                    "properties": {
                      "locale": {
                        "type": "string",
                        "description": "Language of this translation, as a locale code.",
                        "example": "es_ES"
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the option shown to people.",
                        "example": "España"
                      }
                    }
                  },
                  "description": "Name of the option for each language. At least one is required.",
                  "example": [
                    {
                      "locale": "es_ES",
                      "name": "España"
                    }
                  ]
                }
              }
            },
            "description": "Choices the person can pick. At least one is required. When updating, the list replaces the current options.",
            "example": [
              {
                "value": "ES",
                "is_default": false,
                "translations": [
                  {
                    "locale": "es_ES",
                    "name": "España"
                  }
                ]
              }
            ]
          },
          "tag": {
            "pattern": "^[A-Z_]+$",
            "type": [
              "string",
              "null"
            ],
            "description": "Unique name of the field in this audience: uppercase letters and underscores only. The email placeholder is built from it (`suscriber_custom.<TAG>`).",
            "example": "COUNTRY"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is marked as required. Defaults to false.",
            "example": false
          },
          "public": {
            "type": "boolean",
            "description": "Whether the field is shown in subscription forms. Defaults to false.",
            "example": true
          },
          "translations": {
            "minItems": 1,
            "description": "Label and texts of the field for each language. At least one is required, and only languages configured in the account are accepted.",
            "example": [
              {
                "locale": "es_ES",
                "label": "País",
                "default_value": "",
                "help_text": "País de residencia"
              }
            ],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldTranslationInput-list_field.write.update_custom_field_select.translations"
            }
          }
        },
        "required": [
          "options",
          "tag",
          "translations"
        ]
      },
      "CustomFieldTranslationInput-list_field.write.update_custom_field_select.translations": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "locale",
          "label"
        ],
        "properties": {
          "locale": {
            "type": "string",
            "description": "Language of this translation, as a locale code.",
            "example": "es_ES"
          },
          "label": {
            "type": "string",
            "description": "Name of the field shown to people.",
            "example": "País"
          },
          "default_value": {
            "type": "string",
            "description": "Value pre-filled when nothing is entered.",
            "example": ""
          },
          "help_text": {
            "type": "string",
            "description": "Help text shown below the field.",
            "example": "País de residencia"
          }
        }
      },
      "ListSegment.jsonld-list_segment.write.update_audience_segment": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "operator_match"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment.",
            "example": "Subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "What the segment selects.",
            "example": "Members located in Spain"
          },
          "operator_match": {
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "How the conditions combine: `all` means every condition must match, `any` means at least one.",
            "example": "all"
          },
          "custom": {
            "type": "boolean",
            "description": "Set true for a temporary segment that is not meant to be listed; its member count is not calculated. Leave false for a normal saved segment.",
            "example": false
          },
          "conditions": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Between 1 and 5 conditions. When sent, they replace all the current conditions, so send the complete list. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition.jsonld-list_segment.write"
            },
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                "operator": "in",
                "value": [
                  "ES"
                ]
              }
            ]
          }
        }
      },
      "ListSegment-list_segment.write.update_audience_segment": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "operator_match"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the segment.",
            "example": "Subscribers from Spain"
          },
          "description": {
            "type": "string",
            "description": "What the segment selects.",
            "example": "Members located in Spain"
          },
          "operator_match": {
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "How the conditions combine: `all` means every condition must match, `any` means at least one.",
            "example": "all"
          },
          "custom": {
            "type": "boolean",
            "description": "Set true for a temporary segment that is not meant to be listed; its member count is not calculated. Leave false for a normal saved segment.",
            "example": false
          },
          "conditions": {
            "minItems": 1,
            "maxItems": 5,
            "description": "Between 1 and 5 conditions. When sent, they replace all the current conditions, so send the complete list. Each condition has a `field` (IRI of a condition field from `list_audience_condition_fields`), an `operator` (one of the `operators` that field lists) and a `value` whose type depends on the field: text, integer, decimal, boolean, date string (`2026-01-15`) or an array for multi-select fields.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListSegmentCondition-list_segment.write"
            },
            "example": [
              {
                "field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/condition_fields/c4a9e1b7-3d52-4e08-b6f1-7a2d9c5e0b34",
                "operator": "in",
                "value": [
                  "ES"
                ]
              }
            ]
          }
        }
      },
      "Member.jsonld-member.write.update_audience_member": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "New email address. Left unchanged if omitted. It must not belong to another contact in the account. WARNING: a different email resets the email subscription of the person in every audience (see the operation description).",
            "example": null
          },
          "phone": {
            "type": "string",
            "description": "New phone number in E.164 format. Left unchanged if omitted. It must not belong to another contact. WARNING: a different number resets the SMS subscription of the person in every audience (see the operation description).",
            "example": null
          },
          "first_name": {
            "description": "First name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "Ana"
          },
          "last_name": {
            "description": "Last name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "García"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IPv4 address the person signed up from. Used to infer their location and stored as consent evidence.",
            "example": "203.0.113.7"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "description": "Where the person lives. All fields are optional.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location.jsonld-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "groups": {
            "description": "IRIs of the groups the member should be in (`/audiences/{audienceUuid}/groups/{uuid}`). When sent, the list replaces the current groups: groups not listed are removed. Omit it to keep the groups.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": null
          },
          "member_consent": {
            "description": "GDPR consent given by the person. Only stored when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent.jsonld-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values for the audience custom fields. Only the fields you list change.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField.jsonld-member.write.update_audience_member.custom_fields"
            },
            "example": [
              {
                "list_field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15",
                "value": "Acme Corp"
              }
            ]
          }
        }
      },
      "CustomField.jsonld-member.write.update_audience_member.custom_fields": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field (`/audiences/{audienceUuid}/list_fields/{uuid}`). Get it from `list_audience_custom_fields`.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          },
          "value": {
            "type": "string",
            "description": "New value. Its type depends on the custom field (text, number, boolean, date, option value).",
            "example": "Acme Corp"
          }
        }
      },
      "Member-member.write.update_audience_member": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "email": {
            "format": "email",
            "externalDocs": {
              "url": "https://schema.org/email"
            },
            "type": "string",
            "description": "New email address. Left unchanged if omitted. It must not belong to another contact in the account. WARNING: a different email resets the email subscription of the person in every audience (see the operation description).",
            "example": null
          },
          "phone": {
            "type": "string",
            "description": "New phone number in E.164 format. Left unchanged if omitted. It must not belong to another contact. WARNING: a different number resets the SMS subscription of the person in every audience (see the operation description).",
            "example": null
          },
          "first_name": {
            "description": "First name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "Ana"
          },
          "last_name": {
            "description": "Last name. Left unchanged if omitted.",
            "type": [
              "string",
              "null"
            ],
            "example": "García"
          },
          "client_ip": {
            "type": "string",
            "format": "ipv4",
            "description": "IPv4 address the person signed up from. Used to infer their location and stored as consent evidence.",
            "example": "203.0.113.7"
          },
          "locale": {
            "type": "string",
            "description": "Language and region of the person, as a locale code such as `es_ES` or `en_US`.",
            "example": "es_ES"
          },
          "location": {
            "description": "Where the person lives. All fields are optional.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "groups": {
            "description": "IRIs of the groups the member should be in (`/audiences/{audienceUuid}/groups/{uuid}`). When sent, the list replaces the current groups: groups not listed are removed. Omit it to keep the groups.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "https://example.com/"
            },
            "example": null
          },
          "member_consent": {
            "description": "GDPR consent given by the person. Only stored when the audience has GDPR enabled.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MemberConsent-member.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "description": "Values for the audience custom fields. Only the fields you list change.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomField-member.write.update_audience_member.custom_fields"
            },
            "example": [
              {
                "list_field": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15",
                "value": "Acme Corp"
              }
            ]
          }
        }
      },
      "CustomField-member.write.update_audience_member.custom_fields": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "list_field"
        ],
        "properties": {
          "list_field": {
            "description": "IRI of the custom field (`/audiences/{audienceUuid}/list_fields/{uuid}`). Get it from `list_audience_custom_fields`.",
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_fields/5e8a1c30-2b94-4f6d-a7c1-9d0e4b3f8a15"
          },
          "value": {
            "type": "string",
            "description": "New value. Its type depends on the custom field (text, number, boolean, date, option value).",
            "example": "Acme Corp"
          }
        }
      },
      "Member.jsonld-member.action.member_subscribe": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Channels to subscribe: `email`, `sms` or both. Defaults to both when omitted. A channel is only handled if the person has the matching email or phone.",
            "example": [
              "email"
            ]
          }
        }
      },
      "Member-member.action.member_subscribe": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Channels to subscribe: `email`, `sms` or both. Defaults to both when omitted. A channel is only handled if the person has the matching email or phone.",
            "example": [
              "email"
            ]
          }
        }
      },
      "Survey.CreateSurveyInput.jsonld-survey.write.create_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Survey name (internal)",
            "example": "Newsletter feedback"
          },
          "type": {
            "enum": [
              "poll",
              "page"
            ],
            "type": "string",
            "description": "Survey type: `poll` (exactly one question voted inline from the email: single_choice, yes_no, rating or nps) or `page` (public multi-question page linked from the email)",
            "example": "poll"
          },
          "locale": {
            "maxLength": 10,
            "type": "string",
            "description": "Locale of the public pages of the survey (defaults to the app locale when the app has a single language)",
            "example": "es_ES"
          },
          "questions": {
            "description": "Questions in display order. A poll takes exactly one question votable with one click from the email (single_choice, yes_no, rating or nps); a page survey takes any number of questions of any type.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyQuestionInput.jsonld-survey.write.create_survey.questions"
            }
          }
        }
      },
      "SurveyQuestionInput.jsonld-survey.write.create_survey.questions": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Question text",
            "example": "How satisfied are you with our newsletter?"
          },
          "type": {
            "enum": [
              "single_choice",
              "multiple_choice",
              "yes_no",
              "rating",
              "nps",
              "text"
            ],
            "type": "string",
            "description": "Question type. `single_choice` and `multiple_choice` require `options` (2-10); `yes_no` requires EXACTLY two options — the first renders as 👍 and the second as 👎, with customizable texts; `rating` (1-5 scale), `nps` (Net Promoter Score, 0-10 scale) and `text` (open answer) must not have options.",
            "example": "rating"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the respondent must answer this question (defaults to true)",
            "default": true
          },
          "display": {
            "type": "string",
            "enum": [
              "default",
              "smileys",
              "icons"
            ],
            "default": "smileys",
            "description": "Visual presentation, purely cosmetic (answers and stats are those of the base type). `rating` and `yes_no` always render as faces/thumbs: `smileys` uses emojis (the default) and `icons` uses app icons. `default` is accepted as a legacy value and resolves to `smileys`. Emails always fall back to emojis (email clients strip SVG) — for that reason `icons` is NOT accepted on poll questions (they are voted inside the email; 400 otherwise)."
          },
          "options": {
            "description": "Answer options in display order (only for single_choice / multiple_choice / yes_no questions; scale types like rating/nps build their own scale). A yes_no question takes exactly two: first = 👍, second = 👎.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyOptionInput.jsonld-survey.write"
            }
          }
        }
      },
      "Survey.CreateSurveyInput-survey.write.create_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Survey name (internal)",
            "example": "Newsletter feedback"
          },
          "type": {
            "enum": [
              "poll",
              "page"
            ],
            "type": "string",
            "description": "Survey type: `poll` (exactly one question voted inline from the email: single_choice, yes_no, rating or nps) or `page` (public multi-question page linked from the email)",
            "example": "poll"
          },
          "locale": {
            "maxLength": 10,
            "type": "string",
            "description": "Locale of the public pages of the survey (defaults to the app locale when the app has a single language)",
            "example": "es_ES"
          },
          "questions": {
            "description": "Questions in display order. A poll takes exactly one question votable with one click from the email (single_choice, yes_no, rating or nps); a page survey takes any number of questions of any type.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyQuestionInput-survey.write.create_survey.questions"
            }
          }
        }
      },
      "SurveyQuestionInput-survey.write.create_survey.questions": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Question text",
            "example": "How satisfied are you with our newsletter?"
          },
          "type": {
            "enum": [
              "single_choice",
              "multiple_choice",
              "yes_no",
              "rating",
              "nps",
              "text"
            ],
            "type": "string",
            "description": "Question type. `single_choice` and `multiple_choice` require `options` (2-10); `yes_no` requires EXACTLY two options — the first renders as 👍 and the second as 👎, with customizable texts; `rating` (1-5 scale), `nps` (Net Promoter Score, 0-10 scale) and `text` (open answer) must not have options.",
            "example": "rating"
          },
          "required": {
            "type": "boolean",
            "description": "Whether the respondent must answer this question (defaults to true)",
            "default": true
          },
          "display": {
            "type": "string",
            "enum": [
              "default",
              "smileys",
              "icons"
            ],
            "default": "smileys",
            "description": "Visual presentation, purely cosmetic (answers and stats are those of the base type). `rating` and `yes_no` always render as faces/thumbs: `smileys` uses emojis (the default) and `icons` uses app icons. `default` is accepted as a legacy value and resolves to `smileys`. Emails always fall back to emojis (email clients strip SVG) — for that reason `icons` is NOT accepted on poll questions (they are voted inside the email; 400 otherwise)."
          },
          "options": {
            "description": "Answer options in display order (only for single_choice / multiple_choice / yes_no questions; scale types like rating/nps build their own scale). A yes_no question takes exactly two: first = 👍, second = 👎.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyOptionInput-survey.write"
            }
          }
        }
      },
      "Survey.UpdateSurveyInput.jsonld-survey.write.update_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Survey name (internal)",
            "example": "Newsletter feedback 2026"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering",
            "example": true
          },
          "redirect_url": {
            "maxLength": 255,
            "type": "string",
            "format": "uri",
            "description": "URL the respondent is redirected to after answering. Send an empty string to remove it."
          },
          "questions": {
            "description": "Full replacement of the question set, in display order (only while the survey is in draft). Omit to keep the current questions.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/SurveyQuestionInput.jsonld-survey.write.update_survey.questions"
            }
          }
        }
      },
      "SurveyQuestionInput.jsonld-survey.write.update_survey.questions": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Question text",
            "example": null
          },
          "type": {
            "enum": [
              "single_choice",
              "multiple_choice",
              "yes_no",
              "rating",
              "nps",
              "text"
            ],
            "type": "string",
            "description": "Question type. `single_choice` and `multiple_choice` require `options` (2-10); `yes_no` requires EXACTLY two options — the first renders as 👍 and the second as 👎, with customizable texts; `rating` (1-5 scale), `nps` (Net Promoter Score, 0-10 scale) and `text` (open answer) must not have options."
          },
          "required": {
            "type": "boolean",
            "description": "Whether the respondent must answer this question (defaults to true)",
            "default": true
          },
          "display": {
            "type": "string",
            "enum": [
              "default",
              "smileys",
              "icons"
            ],
            "default": "smileys",
            "description": "Visual presentation, purely cosmetic (answers and stats are those of the base type). `rating` and `yes_no` always render as faces/thumbs: `smileys` uses emojis (the default) and `icons` uses app icons. `default` is accepted as a legacy value and resolves to `smileys`. Emails always fall back to emojis (email clients strip SVG) — for that reason `icons` is NOT accepted on poll questions (they are voted inside the email; 400 otherwise)."
          },
          "options": {
            "description": "Answer options in display order (only for single_choice / multiple_choice / yes_no questions; scale types like rating/nps build their own scale). A yes_no question takes exactly two: first = 👍, second = 👎.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyOptionInput.jsonld-survey.write"
            }
          }
        }
      },
      "Survey.UpdateSurveyInput-survey.write.update_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "name": {
            "maxLength": 255,
            "type": "string",
            "description": "Survey name (internal)",
            "example": "Newsletter feedback 2026"
          },
          "show_results": {
            "type": "boolean",
            "description": "Whether respondents can see the aggregated results page after answering",
            "example": true
          },
          "redirect_url": {
            "maxLength": 255,
            "type": "string",
            "format": "uri",
            "description": "URL the respondent is redirected to after answering. Send an empty string to remove it."
          },
          "questions": {
            "description": "Full replacement of the question set, in display order (only while the survey is in draft). Omit to keep the current questions.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/SurveyQuestionInput-survey.write.update_survey.questions"
            }
          }
        }
      },
      "SurveyQuestionInput-survey.write.update_survey.questions": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "text",
          "type"
        ],
        "properties": {
          "text": {
            "maxLength": 255,
            "type": "string",
            "description": "Question text",
            "example": null
          },
          "type": {
            "enum": [
              "single_choice",
              "multiple_choice",
              "yes_no",
              "rating",
              "nps",
              "text"
            ],
            "type": "string",
            "description": "Question type. `single_choice` and `multiple_choice` require `options` (2-10); `yes_no` requires EXACTLY two options — the first renders as 👍 and the second as 👎, with customizable texts; `rating` (1-5 scale), `nps` (Net Promoter Score, 0-10 scale) and `text` (open answer) must not have options."
          },
          "required": {
            "type": "boolean",
            "description": "Whether the respondent must answer this question (defaults to true)",
            "default": true
          },
          "display": {
            "type": "string",
            "enum": [
              "default",
              "smileys",
              "icons"
            ],
            "default": "smileys",
            "description": "Visual presentation, purely cosmetic (answers and stats are those of the base type). `rating` and `yes_no` always render as faces/thumbs: `smileys` uses emojis (the default) and `icons` uses app icons. `default` is accepted as a legacy value and resolves to `smileys`. Emails always fall back to emojis (email clients strip SVG) — for that reason `icons` is NOT accepted on poll questions (they are voted inside the email; 400 otherwise)."
          },
          "options": {
            "description": "Answer options in display order (only for single_choice / multiple_choice / yes_no questions; scale types like rating/nps build their own scale). A yes_no question takes exactly two: first = 👍, second = 👎.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SurveyOptionInput-survey.write"
            }
          }
        }
      },
      "DesignSetting.jsonld-design_setting.write.update_design_setting": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "color_palette": {
            "type": "array",
            "description": "Brand colors, each with a `title` and a hex `color`. If omitted, the current value is kept.",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent",
                  "description": "Name of the color, for example `accent`."
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6",
                  "description": "Color in hex format."
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of buttons: background and text color, font, size, border radius and padding. If omitted, the current value is kept."
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto.jsonld-design_setting.write"
            },
            "description": "Social network links, one per network. Each has the network `key`, a display `title` and the profile `url`. If omitted, the current value is kept."
          },
          "custom_fonts": {
            "description": "Complete list of custom fonts of the style; each needs `name`, `font_family`, `url` and `font_weight`. When sent it replaces the current list; omit it to keep the current fonts.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto.jsonld-design_setting.write"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of the headings `h1`, `h2` and `h3`: color, font, size, weight and link color. If omitted, the current value is kept."
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto.jsonld-design_setting.write.update_design_setting.texts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of paragraph and list text: color, font, size, weight, line height and link color. If omitted, the current value is kept."
          },
          "default": {
            "type": "boolean",
            "description": "Marks this style as the default one of the account.",
            "example": true
          }
        }
      },
      "TextsDto.jsonld-design_setting.write.update_design_setting.texts": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of lists."
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.write.update_design_setting.texts.paragraph"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of paragraphs."
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "TextElementDto.jsonld-design_setting.write.update_design_setting.texts.paragraph": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto.jsonld-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of paragraphs."
          }
        }
      },
      "DesignSetting-design_setting.write.update_design_setting": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "color_palette": {
            "type": "array",
            "description": "Brand colors, each with a `title` and a hex `color`. If omitted, the current value is kept.",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent",
                  "description": "Name of the color, for example `accent`."
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6",
                  "description": "Color in hex format."
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of buttons: background and text color, font, size, border radius and padding. If omitted, the current value is kept."
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto-design_setting.write"
            },
            "description": "Social network links, one per network. Each has the network `key`, a display `title` and the profile `url`. If omitted, the current value is kept."
          },
          "custom_fonts": {
            "description": "Complete list of custom fonts of the style; each needs `name`, `font_family`, `url` and `font_weight`. When sent it replaces the current list; omit it to keep the current fonts.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto-design_setting.write"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of the headings `h1`, `h2` and `h3`: color, font, size, weight and link color. If omitted, the current value is kept."
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto-design_setting.write.update_design_setting.texts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of paragraph and list text: color, font, size, weight, line height and link color. If omitted, the current value is kept."
          },
          "default": {
            "type": "boolean",
            "description": "Marks this style as the default one of the account.",
            "example": true
          }
        }
      },
      "TextsDto-design_setting.write.update_design_setting.texts": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of lists."
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.write.update_design_setting.texts.paragraph"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of paragraphs."
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "TextElementDto-design_setting.write.update_design_setting.texts.paragraph": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto-design_setting.write"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of paragraphs."
          }
        }
      },
      "DesignSetting.jsonld-design_setting.create.create_design_setting": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "color_palette": {
            "type": "array",
            "description": "Brand colors, each with a `title` and a hex `color`. If omitted, the default is used.",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent",
                  "description": "Name of the color, for example `accent`."
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6",
                  "description": "Color in hex format."
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of buttons: background and text color, font, size, border radius and padding. If omitted, the default is used."
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto.jsonld-design_setting.create"
            },
            "description": "Social network links, one per network. Each has the network `key`, a display `title` and the profile `url`. If omitted, the default is used."
          },
          "custom_fonts": {
            "description": "Custom fonts added by the user; each needs `name`, `font_family`, `url` and `font_weight`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto.jsonld-design_setting.create"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of the headings `h1`, `h2` and `h3`: color, font, size, weight and link color. If omitted, the default is used."
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto.jsonld-design_setting.create.create_design_setting.texts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of paragraph and list text: color, font, size, weight, line height and link color. If omitted, the default is used."
          },
          "default": {
            "type": "boolean",
            "description": "Marks this style as the default one of the account. If omitted it is set to false.",
            "example": false
          }
        }
      },
      "TextsDto.jsonld-design_setting.create.create_design_setting.texts": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of lists."
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto.jsonld-design_setting.create.create_design_setting.texts.paragraph"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of paragraphs."
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "TextElementDto.jsonld-design_setting.create.create_design_setting.texts.paragraph": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto.jsonld-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of paragraphs."
          }
        }
      },
      "DesignSetting-design_setting.create.create_design_setting": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "maxLength": 255,
            "type": "string",
            "description": "Name of the brand style.",
            "example": "Acme brand"
          },
          "color_palette": {
            "type": "array",
            "description": "Brand colors, each with a `title` and a hex `color`. If omitted, the default is used.",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "example": "accent",
                  "description": "Name of the color, for example `accent`."
                },
                "color": {
                  "type": "string",
                  "example": "#3B82F6",
                  "description": "Color in hex format."
                }
              }
            }
          },
          "button": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ButtonDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of buttons: background and text color, font, size, border radius and padding. If omitted, the default is used."
          },
          "email_width": {
            "minimum": 400,
            "maximum": 800,
            "type": "integer",
            "description": "Email width in pixels",
            "example": 600
          },
          "page_width": {
            "minimum": 800,
            "maximum": 1920,
            "type": "integer",
            "description": "Page width in pixels",
            "example": 1140
          },
          "social_links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkDto-design_setting.create"
            },
            "description": "Social network links, one per network. Each has the network `key`, a display `title` and the profile `url`. If omitted, the default is used."
          },
          "custom_fonts": {
            "description": "Custom fonts added by the user; each needs `name`, `font_family`, `url` and `font_weight`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFontDto-design_setting.create"
            }
          },
          "titles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TitlesDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of the headings `h1`, `h2` and `h3`: color, font, size, weight and link color. If omitted, the default is used."
          },
          "texts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextsDto-design_setting.create.create_design_setting.texts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Styles of paragraph and list text: color, font, size, weight, line height and link color. If omitted, the default is used."
          },
          "default": {
            "type": "boolean",
            "description": "Marks this style as the default one of the account. If omitted it is set to false.",
            "example": false
          }
        }
      },
      "TextsDto-design_setting.create.create_design_setting.texts": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "list": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of lists."
          },
          "paragraph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextElementDto-design_setting.create.create_design_setting.texts.paragraph"
              },
              {
                "type": "null"
              }
            ],
            "description": "Style of paragraphs."
          }
        },
        "required": [
          "paragraph"
        ]
      },
      "TextElementDto-design_setting.create.create_design_setting.texts.paragraph": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "styles"
        ],
        "properties": {
          "styles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyleDto-design_setting.create"
              },
              {
                "type": "null"
              }
            ],
            "description": "Color, font, size, weight, line height and link color of paragraphs."
          }
        }
      },
      "Webhook.jsonld-webhook.write.create_webhook": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "scope": {
            "default": "marketing",
            "example": "crm",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Kind of webhook: `marketing` (events of one audience, `audience` required) or `crm` (events of contacts, companies and opportunities of the whole account, without `audience`). If omitted it is `marketing`. It cannot change later."
          },
          "title": {
            "type": "string",
            "description": "Name of the webhook, for you to recognize it.",
            "example": "Sync subscribers to CRM"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events that trigger a delivery to the URL. All of them must belong to the scope: `member_*` and `custom_automation_step` for `marketing`, `crm_*` for `crm`.",
            "example": [
              "member_subscribed",
              "member_unsubscribed"
            ]
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of your server that receives the events. It must be reachable from the internet; addresses on private networks are blocked.",
            "example": "https://hooks.acme.example.com/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign each delivery. Easymailing sends the header `Easymailing-Webhook-Signature` with `sha256=` followed by the HMAC-SHA256 of the body using this secret; check it to be sure the call comes from Easymailing.",
            "example": "s3cr3t-key-123"
          },
          "active": {
            "type": "boolean",
            "description": "If true, the webhook sends events. It is turned off automatically if your server answers 404 or 410. If omitted it is set to false.",
            "example": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "IRI of the audience whose events are sent. Required for `marketing` webhooks; must be omitted or null for `crm` webhooks."
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "Webhook-webhook.write.create_webhook": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "scope": {
            "default": "marketing",
            "example": "crm",
            "type": "string",
            "$ref": "#/components/schemas/WebhookScope",
            "description": "Kind of webhook: `marketing` (events of one audience, `audience` required) or `crm` (events of contacts, companies and opportunities of the whole account, without `audience`). If omitted it is `marketing`. It cannot change later."
          },
          "title": {
            "type": "string",
            "description": "Name of the webhook, for you to recognize it.",
            "example": "Sync subscribers to CRM"
          },
          "event_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "description": "Events that trigger a delivery to the URL. All of them must belong to the scope: `member_*` and `custom_automation_step` for `marketing`, `crm_*` for `crm`.",
            "example": [
              "member_subscribed",
              "member_unsubscribed"
            ]
          },
          "url": {
            "format": "uri",
            "externalDocs": {
              "url": "https://schema.org/url"
            },
            "type": "string",
            "description": "Address of your server that receives the events. It must be reachable from the internet; addresses on private networks are blocked.",
            "example": "https://hooks.acme.example.com/easymailing"
          },
          "secret": {
            "type": "string",
            "description": "Secret used to sign each delivery. Easymailing sends the header `Easymailing-Webhook-Signature` with `sha256=` followed by the HMAC-SHA256 of the body using this secret; check it to be sure the call comes from Easymailing.",
            "example": "s3cr3t-key-123"
          },
          "active": {
            "type": "boolean",
            "description": "If true, the webhook sends events. It is turned off automatically if your server answers 404 or 410. If omitted it is set to false.",
            "example": true
          },
          "audience": {
            "type": [
              "string",
              "null"
            ],
            "format": "iri-reference",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "description": "IRI of the audience whose events are sent. Required for `marketing` webhooks; must be omitted or null for `crm` webhooks."
          }
        },
        "required": [
          "title",
          "event_types",
          "url",
          "secret"
        ]
      },
      "ContactAudienceMembership.ContactMembershipChannelsInput.jsonld.unsubscribe_contact_from_audience": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "description": "Channels to unsubscribe: `email`, `sms` or both. Defaults to both when omitted. Only channels that are currently confirmed are changed.",
            "example": [
              "email"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ContactAudienceMembership.ContactMembershipChannelsInput.unsubscribe_contact_from_audience": {
        "type": "object",
        "description": "Audience memberships of one contact (plan fase 3, Task 16): the same membership the audience shows as a member,\nseen from the person. Not paginated. Generated from the approved proposal by fase-3/tools/gen_contact_read.py.",
        "deprecated": false,
        "properties": {
          "channels": {
            "type": [
              "array",
              "null"
            ],
            "description": "Channels to unsubscribe: `email`, `sms` or both. Defaults to both when omitted. Only channels that are currently confirmed are changed.",
            "example": [
              "email"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Template.jsonld-template.write.update_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the template.",
            "example": "Welcome email v2"
          },
          "content": {
            "type": "string",
            "description": "New HTML of the email. Only for custom-HTML templates (`code_own`); a visual-editor template (`be_editor`) is changed with `simple_json_code` instead. Ignored if `simple_json_code` is sent.",
            "example": "<html><body><p>Hello {{ text.list.suscriber.email }}</p><p><a href=\"{{ link.campaign.unsuscribe }}\">Unsubscribe</a></p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "New design as simple JSON. Only for visual-editor templates (`be_editor`); a custom-HTML template (`code_own`) cannot take it. Replaces the whole design; the HTML is regenerated. If sent, `content` is ignored."
          }
        }
      },
      "Template-template.write.update_template": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the template.",
            "example": "Welcome email v2"
          },
          "content": {
            "type": "string",
            "description": "New HTML of the email. Only for custom-HTML templates (`code_own`); a visual-editor template (`be_editor`) is changed with `simple_json_code` instead. Ignored if `simple_json_code` is sent.",
            "example": "<html><body><p>Hello {{ text.list.suscriber.email }}</p><p><a href=\"{{ link.campaign.unsuscribe }}\">Unsubscribe</a></p></body></html>"
          },
          "simple_json_code": {
            "type": "object",
            "description": "New design as simple JSON. Only for visual-editor templates (`be_editor`); a custom-HTML template (`code_own`) cannot take it. Replaces the whole design; the HTML is regenerated. If sent, `content` is ignored."
          }
        }
      },
      "Automation.jsonld-automation.write.create_automation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "audience"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "Automation-automation.write.create_automation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "title",
          "audience"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Name of the automation, shown in the app.",
            "example": "Welcome series"
          },
          "description": {
            "type": "string",
            "description": "Optional notes about what the automation does.",
            "example": "Three emails over the first week for new subscribers."
          },
          "audience": {
            "type": "string",
            "format": "iri-template",
            "description": "IRI of the audience whose contacts run through this automation. Get it from `list_audiences`. It cannot be changed later.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f"
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroup.jsonld-automation_step.write.update_step_add_to_group": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepAddToGroup-automation_step.write.update_step_add_to_group": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddToGroupAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepCondition.jsonld-automation_step.write.update_step_condition": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepCondition-automation_step.write.update_step_condition": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepDelay.jsonld-automation_step.write.update_step_delay": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepDelay-automation_step.write.update_step_delay": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/DelayAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroup.jsonld-automation_step.write.update_step_remove_from_group": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepRemoveFromGroup-automation_step.write.update_step_remove_from_group": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemoveFromGroupAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaign.jsonld-automation_step.write.update_step_send_campaign": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendCampaign-automation_step.write.update_step_send_campaign": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendCampaignAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomField.jsonld-automation_step.write.update_step_update_custom_field": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateCustomField-automation_step.write.update_step_update_custom_field": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateCustomFieldAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScore.jsonld-automation_step.write.update_step_update_score": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUpdateScore-automation_step.write.update_step_update_score": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateScoreAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendNotification.jsonld-automation_step.write.update_step_send_notification": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendNotification-automation_step.write.update_step_send_notification": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendNotificationAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomation.jsonld-automation_step.write.update_step_trigger_automation": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepTriggerAutomation-automation_step.write.update_step_trigger_automation": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TriggerAutomationAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhook.jsonld-automation_step.write.update_step_send_webhook": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepSendWebhook-automation_step.write.update_step_send_webhook": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendWebhookAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStep.jsonld-automation_step.write.update_step_move_to_step": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepMoveToStep-automation_step.write.update_step_move_to_step": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/MoveToStepAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribe.jsonld-automation_step.write.update_step_unsubscribe": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step. This step has none: omit it or send an empty object.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction.jsonld-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "AutomationStep.AutomationStepUnsubscribe-automation_step.write.update_step_unsubscribe": {
        "type": "object",
        "description": "API Resource for automation steps.\n\nThis class defines the API endpoints and serves as the base class for all\nautomation step types. Uses DiscriminatorMap for polymorphic serialization.",
        "deprecated": false,
        "properties": {
          "action": {
            "description": "Settings of the step. This step has none: omit it or send an empty object.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/UnsubscribeAction-automation_step.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_yes": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          },
          "parent_no": {
            "description": "Ignored on update: a step keeps its place. Use `move_step_position` to move it.",
            "type": "string",
            "format": "iri-reference",
            "example": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90"
          }
        }
      },
      "Campaign.CampaignRevalidationInput.jsonld-campaign.write.create_campaign_revalidation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write.create_campaign_revalidation.email_config"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). It must include the confirmation link tag `{{ link.list.revalidation_confirm_subscription }}`. Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email, which must include the confirmation link tag `{{ link.list.revalidation_confirm_subscription }}`. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Do you want to keep receiving our emails?</p><p><a href=\"{{ link.list.revalidation_confirm_subscription }}\">Yes, keep me subscribed</a></p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "EmailConfig.jsonld-campaign.write.create_campaign_revalidation.email_config": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). If omitted, a default text asking the subscriber to confirm is used.",
            "example": "Do you want to keep receiving our emails?",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). If omitted, a default text is used.",
            "example": "Confirm that you still want to hear from us.",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignRevalidationInput-campaign.write.create_campaign_revalidation": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ],
        "properties": {
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write.create_campaign_revalidation.email_config"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). It must include the confirmation link tag `{{ link.list.revalidation_confirm_subscription }}`. Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email, which must include the confirmation link tag `{{ link.list.revalidation_confirm_subscription }}`. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Do you want to keep receiving our emails?</p><p><a href=\"{{ link.list.revalidation_confirm_subscription }}\">Yes, keep me subscribed</a></p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        }
      },
      "EmailConfig-campaign.write.create_campaign_revalidation.email_config": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email (max 150 characters). If omitted, a default text asking the subscriber to confirm is used.",
            "example": "Do you want to keep receiving our emails?",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). If omitted, a default text is used.",
            "example": "Confirm that you still want to hear from us.",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignSurveyInput.jsonld-campaign.write.create_campaign_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "survey": {
            "format": "uuid",
            "description": "UUID of the survey to link, from `list_surveys`. It must be active and belong to the same audience. Optional: you can link it later with `campaign_select_survey`.",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": [
              "string",
              "null"
            ]
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig.jsonld-campaign.write.create_campaign_survey.email_config"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig.jsonld-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        },
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ]
      },
      "EmailConfig.jsonld-campaign.write.create_campaign_survey.email_config": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "Campaign.CampaignSurveyInput-campaign.write.create_campaign_survey": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "survey": {
            "format": "uuid",
            "description": "UUID of the survey to link, from `list_surveys`. It must be active and belong to the same audience. Optional: you can link it later with `campaign_select_survey`.",
            "externalDocs": {
              "url": "https://schema.org/identifier"
            },
            "example": "6a1f3d8c-2b47-4e90-a5c1-7d3b9e0f4a82",
            "type": [
              "string",
              "null"
            ]
          },
          "email_config": {
            "description": "Sender, reply-to, recipient name, subject and preview text of the email. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailConfig-campaign.write.create_campaign_survey.email_config"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_config": {
            "description": "Tracking and publishing options of the campaign. Required.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignConfig-campaign.write"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {
            "description": "IRI of an existing template to use as the email content: `/templates/{uuid}` (see `list_templates`). Alternative to `template_html` and `template_simple_json_code`; one of the three is required.",
            "example": "/templates/3f8a2c6d-7b14-4e59-a0d2-9c5e1b7f3a68",
            "type": "string",
            "format": "iri-reference"
          },
          "template_html": {
            "description": "Complete HTML of the email. A new template is created in your account from it and linked to the campaign. Alternative to `template` and `template_simple_json_code`; ignored if `template_simple_json_code` is also sent.",
            "example": "<html><body><p>Our Black Friday offers start now.</p></body></html>",
            "type": "string"
          },
          "template_simple_json_code": {
            "description": "Email design as simple JSON for the visual editor; the full design and its HTML are generated and saved as a new template. The structure is described by `get_template_schema`. Alternative to `template` and `template_html`, and takes precedence over `template_html`.",
            "type": "object"
          },
          "title": {
            "description": "Name of the campaign in your account, for your own reference. Recipients do not see it.",
            "example": "Black Friday offer",
            "type": "string"
          },
          "audience": {
            "description": "IRI of the audience the campaign is sent from: `/audiences/{uuid}` (see `list_audiences`).",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f",
            "type": "string",
            "format": "iri-reference"
          },
          "send_to": {
            "enum": [
              "send_to_all",
              "send_to_groups",
              "send_to_segment"
            ],
            "description": "Who receives the campaign: the whole audience, some of its groups (also send `groups`) or one of its segments (also send `list_segment`).",
            "example": "send_to_all",
            "type": "string"
          },
          "groups": {
            "description": "IRIs of the groups that receive the campaign: `/audiences/{audienceUuid}/groups/{uuid}` (see `list_audience_groups`). They must belong to the same audience. Required when `send_to` is set to groups.",
            "example": [
              "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/groups/c2f4a8d1-6b3e-4a75-9f10-8e2d5b7c3a64"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "iri-reference",
              "example": "/audiences/{uuid}/groups/{uuid}"
            }
          },
          "list_segment": {
            "description": "IRI of the segment that receives the campaign: `/audiences/{audienceUuid}/list_segments/{uuid}` (see `list_audience_segments`). It must belong to the same audience. Required when `send_to` is set to a segment.",
            "example": "/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/e7b1d3a9-4c62-4f08-b5a3-1d9e6c2f8a47",
            "type": "string",
            "format": "iri-reference"
          }
        },
        "required": [
          "email_config",
          "campaign_config",
          "title",
          "audience",
          "send_to"
        ]
      },
      "EmailConfig-campaign.write.create_campaign_survey.email_config": {
        "type": "object",
        "description": "",
        "deprecated": false,
        "properties": {
          "from_name": {
            "description": "Sender name shown to recipients in their inbox.",
            "example": "Acme",
            "type": "string"
          },
          "from_email": {
            "description": "IRI of the sender address the email goes out from: `/senders/{uuid}` (see `list_senders`). If omitted, the default sender of the audience is used; if the audience has none, the request fails with a validation error.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "reply_to": {
            "description": "IRI of the sender address that receives replies: `/senders/{uuid}` (see `list_senders`). If omitted, the default reply-to of the audience is used. It is optional when `campaign_config.use_conversations` is true; otherwise the request fails if neither is available.",
            "example": "/senders/5b7d1c9e-3a42-4f6e-9d1a-2c8e7f0a4b61",
            "type": "string",
            "format": "iri-reference"
          },
          "enable_to_name": {
            "description": "Set to true to address each recipient by name in the To field (the name comes from `to_name`). Defaults to false.",
            "type": "boolean",
            "example": false
          },
          "to_name": {
            "description": "Personalization tag that gives each recipient's name in the To field. Required when `enable_to_name` is true.",
            "example": "{{ text.list.suscriber.firstname }}",
            "type": "string"
          },
          "subject": {
            "description": "Subject line of the email.",
            "example": "Our Black Friday offers start now",
            "type": "string"
          },
          "preview_text": {
            "description": "Short text shown next to the subject in the inbox list (max 150 characters). Optional.",
            "example": "Up to 40% off until Sunday",
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Error answer (`application/problem+json`). With `Accept: application/ld+json` it also carries `@id`, `@type` and `description` (a copy of `detail`). The errors an operation lists with a code carry it in `code`; the others have no `code`: tell them apart by `status` and `detail`.",
        "required": [
          "title",
          "detail",
          "status",
          "type"
        ],
        "properties": {
          "title": {
            "type": "string",
            "example": "An error occurred"
          },
          "detail": {
            "type": "string",
            "example": "Access Denied."
          },
          "status": {
            "type": "integer",
            "example": 403
          },
          "type": {
            "type": "string",
            "example": "/errors/403"
          },
          "code": {
            "type": "string",
            "description": "Stable identifier of the error, the one the operation lists for it. Absent on errors listed without a code.",
            "example": "crm_seat_required"
          }
        }
      },
      "ValidationError": {
        "description": "Validation failure (422): an `Error` plus the list of violations.",
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "required": [
              "violations"
            ],
            "properties": {
              "violations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "propertyPath": {
                      "type": "string",
                      "description": "Name of the property that failed.",
                      "example": "title"
                    },
                    "message": {
                      "type": "string",
                      "description": "Reason, translated.",
                      "example": "This value should not be blank."
                    },
                    "code": {
                      "type": "string",
                      "description": "Identifier of the failed rule: the UUID of a validation constraint (the same for every violation of that kind) or, on errors listed with a code, a stable snake_case code.",
                      "example": "c1051bb4-d103-4f74-8988-acbcafc7fdc3"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "AuthenticationError": {
        "type": "object",
        "description": "Answer to an unknown API key or token (`application/json`, 401).",
        "properties": {
          "message": {
            "type": "string",
            "example": "Invalid API Auth Token"
          }
        }
      }
    },
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "Value for the X-Auth-Token header parameter.",
        "name": "X-Auth-Token",
        "in": "header"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth2 access token. Use the Authorization header with Bearer prefix: `Authorization: Bearer <token>`"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Contacts",
      "description": "A contact is a person in the account: one record per person, identified by their email or phone, with or without audiences, company or opportunities. Contact data (name, company, tags, attributes) is kept once; the person's subscription to each audience is a membership of that contact, which the Audiences category also shows as a member."
    },
    {
      "name": "Contact segments",
      "description": "A contact segment is a saved filter over all the contacts of the account, whatever their audiences: «confirmed email subscribers of the newsletter who opened one of the last 5 campaigns», «contacts in Spain with the VIP tag». Who is inside updates by itself as data changes. Segments are shared by the whole account, are versioned (every change publishes a new revision; scheduled campaigns keep the revision they were scheduled with) and are the segments Customer App shows in Contacts and offers as campaign recipients. Their conditions use the fields of `list_contact_filter_fields`. The older segments that live inside one audience are `list_audience_segments`, kept only for the classic panel."
    },
    {
      "name": "Contact filters",
      "description": "The catalog of fields you can filter contacts on and the shape of a filter. The same catalog feeds the Contacts filter of Customer App, contact segments, the recipients of email and SMS campaigns and the contacts filters of workflows (`usable_in=automation`), so a filter written here selects exactly what the app shows. Each field lists its operators and the value each operator expects; subscription fields also need the audience. It replaces condition fields for everything that works on contacts; condition fields stay for old audience segments and the conditions of classic automations."
    },
    {
      "name": "Companies",
      "description": "A company is an organization your contacts work for, with its own domains, owner, location and attributes. It is shared by the whole account and is not tied to any audience. A contact belongs to at most one company; a company can have many contacts. A domain belongs to only one company."
    },
    {
      "name": "Company filters",
      "description": "The catalog of fields you can filter companies on in the filters of a workflow, for example the «Only if» of a company trigger, a Condition with `matches` on a company or a company search. It is the catalog of the person behind the credential, the same one the workflow engine validates with, so a field listed here is accepted. Each field lists its operators and the value each operator expects. A workflow takes these filters as the public conditions tree, `{match, conditions: [{field, operator, value}]}`, and saves them as the filter document of companies."
    },
    {
      "name": "Opportunities",
      "description": "An opportunity is a potential sale: a deal with an amount, an expected close date, a company, contacts and an owner that moves through the stages of a pipeline until it is won or lost. Opportunities live in pipelines and inherit their access: a user sees, works or deletes an opportunity only with the matching access to its pipeline, besides the account capability. Opportunities are independent of audiences."
    },
    {
      "name": "Opportunity filters",
      "description": "The catalog of fields you can filter opportunities on in the filters of a workflow, for example the «Only if» of an opportunity trigger, a Condition with `matches` on an opportunity, a wait until an opportunity matches filters or an opportunity search. It is the catalog of the person behind the credential, the same one the workflow engine validates with, so a field listed here is accepted. Each field lists its operators and the value each operator expects. A workflow takes these filters as `{match, conditions: [{field, operator, value}]}`, the document of the opportunity table."
    },
    {
      "name": "Pipelines",
      "description": "A pipeline is a sales process: an ordered list of stages (open, won and lost) that opportunities go through, with a reference currency, entry requirements per stage and the loss reasons offered when a deal is lost. Stages and loss reasons belong to one pipeline and are managed under it. Who can see or work a pipeline is set in the app; each user sees only the pipelines they have been granted."
    },
    {
      "name": "Tasks",
      "description": "A task is a to-do of the team: a title, an optional due date and an optional person responsible, which can be linked to any number of contacts, companies and opportunities. A task is open or completed; creating, completing and reopening it is recorded in the activity of every record it is linked to. A task with no links is visible to the whole account; a task linked to records is visible only to users who can see all of them. Tasks are not notes: a note is text kept on one record, with no deadline or person responsible."
    },
    {
      "name": "Notes",
      "description": "A note is free text kept on one contact, company or opportunity: what was said in a call, an agreement, context for the next conversation. It has an optional title, an author and a history of edits, and it appears in the activity of its record. A note belongs to exactly one record and is visible only to users who can see that record; only an account admin or its author can edit or delete it. A note has no due date or person responsible: for something to do, use a task."
    },
    {
      "name": "Files",
      "description": "A file is a document or image (PDF, Office, OpenDocument, images, CSV, ZIP… up to 20 MiB) kept on one contact, company or opportunity: contracts, proposals, signed copies. It has a name, an optional description and the person who uploaded it, and it appears in the activity of its record when it is added or removed. A file belongs to exactly one record and is visible only to users who can see that record. Uploading takes two calls: `create_file` declares the file and reserves its space, `set_file_content` sends the bytes. The storage of the whole account is limited by its CRM plan (`get_file_storage_usage`). For text written about a record use notes; for things to do use tasks."
    },
    {
      "name": "Emails",
      "description": "Emails synchronized from the Gmail mailboxes that users connected to Easymailing, shown on the contact, company or opportunity they belong to. An email appears on a contact when one of its addresses took part, on a company when someone from one of its domains did, and on an opportunity when one of its contacts did while it was open. Each user sees only emails of mailboxes they own or whose owner shared them with the account, and only as much of each as the sharing level allows: participants and date, plus subject, or everything. Bodies and attachments are read from the stored copy and from Google on demand. Sending, replying and drafts are other operations."
    },
    {
      "name": "Email drafts",
      "description": "An email draft is an email that is being written and has not been sent. Drafts belong to the person who started them: nobody else can see or use them. Creating or editing a draft never sends anything, so it is the safe way to prepare an email for someone to review; to send it use `send_email` or `schedule_email` with the draft. Drafts can be incomplete (no recipients, no subject, no sender). A person can keep up to 200 drafts, and each save raises a `revision` so two devices cannot overwrite each other."
    },
    {
      "name": "Email sends",
      "description": "A send is one email written from a contact, company or opportunity and sent from a connected Gmail mailbox. Sending is asynchronous: `send_email` or `schedule_email` queue the email and answer 202; it leaves about 20 seconds later (ten seconds to undo plus ten of grace), at the scheduled time, or later if the mailbox has reached its limit of 12 emails per hour and 200 per day. While `state` is `queued` it can be cancelled; once it is `sending` or `sent` it cannot be recalled. Sends are private to the person who made them. Writing an email without sending it is `create_email_draft`. These emails reach other people: confirm the final text, recipients and time with the user before sending or scheduling."
    },
    {
      "name": "Email batches",
      "description": "A batch sends the same message as a separate, individual email to each of 2 to 50 people from the user's Gmail mailbox: nobody sees the other recipients. The emails leave five minutes apart within the mailbox limit of 12 per hour and 200 per day, so a large batch takes hours. The whole batch has one undo window and can be cancelled at once or one email at a time while queued. A batch is not an email campaign: for mass mailings to an audience use the campaign operations. Batches reach many people: confirm text and list with the user before sending."
    },
    {
      "name": "Email composing",
      "description": "Everything needed to prepare an email from the CRM before it is saved as a draft or sent: the mailboxes the user can send from and their signatures, the sending limits and when an email would leave, the contacts of a company or opportunity to write to, the personalization tags and their preview, a check of the recipients (people who opted out) and the upload of attachments. Nothing in this group sends an email. To save it use `create_email_draft`; to send it, `send_email`, `schedule_email` or `send_email_batch`."
    },
    {
      "name": "Email opt-outs",
      "description": "A contact opts out of CRM email when they click the unsubscribe link of a 1-to-1 email sent from the CRM. From then on, sending to their address answers `recipient_opted_out` until the sender confirms that they still want to write to them (or the opt-out is removed). It is stored per address and covers only emails sent from the CRM: it does not change the contact's subscriptions to audiences or email campaigns."
    },
    {
      "name": "Email sequences",
      "description": "An email sequence is a series of personal emails with waits in between that Easymailing sends one contact at a time from a connected Gmail mailbox (the mailbox of a person, with their signature), to follow up with contacts, customers and warm leads. The sequence stops by itself for a contact who replies, books a meeting, bounces or unsubscribes. It is not a newsletter or a campaign to an audience (see email campaigns) and not an event-driven flow (see automations). How it works: you write a DRAFT (steps, schedule, sender, exit rules), publish it as an immutable VERSION and then ENROLL contacts. Each enrollment stays on the version it entered with, so editing and publishing again only affects contacts enrolled afterwards. Nothing is sent by creating, editing or publishing a sequence: emails leave only for enrolled contacts, from the sender's mailbox, within the schedule window, and always with an unsubscribe footer. Typical flow: `create_email_sequence`, `upload_email_sequence_asset` (only for attachments), `update_email_sequence_draft`, `get_email_sequence_validation`, `publish_email_sequence`, `enroll_contacts_in_email_sequence`, then follow it with `list_email_sequence_enrollments`, `list_email_sequence_activity` and `get_email_sequence_statistics`. To stop emails to people already enrolled, pause the sequence or exclude the enrollment. Creating and editing sequences needs the CRM Pro plan; reading them does not."
    },
    {
      "name": "Meetings",
      "description": "A meeting is an event of a connected Google calendar that Easymailing links to the CRM: a demo, a call, a visit. It has a time, guests with their answers, an optional video call, and the contacts, companies and opportunities it is related to, which show it in their activity. Google Calendar is the source of truth: meetings are read from the last synchronization, and creating, changing or cancelling one writes the event in the user's own Google calendar, where Google emails the invitations. A meeting is only visible to people who can see its calendar: the owner, or colleagues the owner shared it with. A meeting is not a booking page slot and not a task: it has no due date or responsible person."
    },
    {
      "name": "Booking pages",
      "description": "A booking page is a public scheduling link of one user: the host sets opening hours, duration, calendars and a form, publishes it, and anyone with the link picks a free time and books a meeting that is created in the host's Google Calendar. Each page belongs to the user who creates it; that user can share it with colleagues so they can insert its link in emails or propose exact times from the host's availability. A page goes from draft to published, can be paused and finally archived, and sends two emails to the people who book (a confirmation and a data check) from the sender chosen for the page. These operations manage the pages and propose times; the visitor's own booking happens on the public page and is not part of the API. Meetings that result from a booking are meetings, not booking pages."
    },
    {
      "name": "Activity",
      "description": "The activity of a record is its timeline: everything that happened to a contact, company or opportunity, newest first. It is written by the product itself when something happens (a field changes, an opportunity moves stage, a note or task is created, an email arrives, a meeting is scheduled, a campaign is sent or opened) and cannot be edited or created through the API. Each row has a type, who did it, how (`initiated_via`, with `maia` for what Maia did) and data that depends on the type. What the user may not see of a record (an email of a mailbox they cannot read, a task of a pipeline they cannot access) is returned as an unavailable row, without its content."
    },
    {
      "name": "Contact attributes",
      "description": "Contact attributes are the custom fields you define for people in the CRM (customer tier, birthday, interests...). They belong to the contact itself, not to an audience: every audience sees the same value. Each attribute has a type and a stable `public_code`, which is the key used in the `attributes` object of a contact. Contact attributes are different from the custom fields of an audience, which store data on each member of that audience."
    },
    {
      "name": "Company attributes",
      "description": "Company attributes are the custom fields you define for organizations in the CRM (industry segment, contract renewal, annual budget...). Each attribute has a type and a stable `public_code`, which is the key used in the `attributes` object of a company."
    },
    {
      "name": "Opportunity attributes",
      "description": "Opportunity attributes are the custom fields you define for deals in the CRM (lead source, contract type, estimated budget...). They are defined once for the whole account, not per pipeline: every opportunity of every pipeline can use them, and a pipeline stage can require one before an opportunity may enter it. Each attribute has a type and a stable `public_code`, which is the key used in the `attributes` object of an opportunity."
    },
    {
      "name": "Audiences",
      "description": "Audiences are the lists that hold your subscribers. Each audience has its own members, groups, segments and custom fields, plus sending defaults: sender, double opt-in and GDPR."
    },
    {
      "name": "Members",
      "description": "A member is one person's subscription to one audience. The same person (same email or phone) is a single contact in the account and a separate member in each audience they belong to, each with its own status, groups and custom field values. Each member exposes the contact it belongs to in its `contact` property: the contact is the person (data shared by all their audiences, see the `Contacts` operations) and the member is their subscription to this audience."
    },
    {
      "name": "Groups",
      "description": "Groups are labels you assign to the members of one audience by hand or by rule, to target campaigns and automations. Bulk group actions run in the background and return an async task you follow with `get_async_task`."
    },
    {
      "name": "Audience segments",
      "description": "Old segments that live inside one audience and select its members with up to five conditions. They are kept for the classic panel and for existing campaigns and automations, but Customer App does not show them: for new segments use contact segments (`list_contact_segments`), which work over all the contacts of the account. Bulk actions on an old segment run in the background and return an async task you follow with `get_async_task`."
    },
    {
      "name": "Custom fields",
      "description": "Custom fields store extra data on each member of an audience (company, birthday, interests). Their `template_tag` personalizes emails, and their values are set when you create or update a member."
    },
    {
      "name": "Condition fields",
      "description": "Condition fields are the member properties you can filter on in old audience segments, in bulk group actions by conditions and in the condition steps of classic automations. Each one lists the operators it accepts. For contact segments, campaign filters and the filters of workflows, use the contact filter catalog (`list_contact_filter_fields`)."
    },
    {
      "name": "Merge tags",
      "description": "Merge tags are the placeholders you can use in the emails of an audience to insert member data, custom field values and required links such as the unsubscribe link."
    },
    {
      "name": "Subscription forms",
      "description": "Embedded and popup sign-up forms of an audience: they add the people who fill them to the audience. Forms made in the new Easymailing panel can be read here but not changed."
    },
    {
      "name": "Surveys",
      "description": "Quick polls and multi-question surveys that you link to email campaigns to collect answers from your subscribers, and their aggregated results."
    },
    {
      "name": "Email campaigns",
      "description": "One-off email campaigns sent to an audience, some of its groups, a contact segment or a filter of their own: regular newsletters, A/B tests, revalidation and survey campaigns. Create and edit them, send test emails, and send or schedule them."
    },
    {
      "name": "SMS campaigns",
      "description": "Text message (SMS) campaigns sent to contacts with a confirmed SMS subscription in an audience, some of its groups, a contact segment or a filter of their own. Create and edit them, send test messages, and send or schedule them."
    },
    {
      "name": "Automations",
      "description": "Automated workflows that run a series of steps for the contacts of one audience. You create the automation, give it triggers (what starts it for a contact) and steps (what happens to the contact), then activate it. It starts as a draft and sends nothing until it is active."
    },
    {
      "name": "Automation triggers",
      "description": "The events and dates that start an automation for a contact: a form completed, a campaign clicked, an order paid, a date reached, a call from your own system. An automation can have several triggers, and every new automation already gets one manual trigger."
    },
    {
      "name": "Automation steps",
      "description": "The actions an automation performs on each contact once a trigger has started it, arranged as a flow: send an email or an SMS, wait, check a condition and branch, change groups, fields or score, call a webhook, start another automation, jump to another step or unsubscribe the contact."
    },
    {
      "name": "Workflows",
      "description": "Workflows of the new automation engine (Customer App): a trigger (a record created, a form sent, an order, a webhook, a manual entry…) starts an execution for one subject, which goes through steps, waits, conditions and branches that can work on contacts, companies, opportunities, tasks, notes, subscriptions and stores, and send emails and SMS. A workflow has a DRAFT, the declarative document being edited, and immutable published VERSIONS; executions run on the version they started with. Through the API a workflow is listed and read with its draft, created and its draft saved as a whole document (format 3, see the `automation_workflows_guide` guide of the MCP), its draft reviewed with the rules of publishing, and published, paused and resumed, its entries opened or paused and the workflow deleted; `list_workflow_pieces` gives the pieces that publishing accepts with the CRM plan each one needs. Creating and saving never publish nor start anything; publishing starts it at once, without a confirmation step. They are not the classic automations of an audience (see Automations)."
    },
    {
      "name": "AI agents",
      "description": "AI agents of the account (Customer App): helpers that are set up once, with instructions, tools and limits, and then used wherever they are needed. They search the internet, read public pages and read the CRM with the permissions of whoever asks, and always give their sources. An agent has a DRAFT, the definition being edited, and immutable published VERSIONS: what runs is always a published version (except when the draft is tried on purpose). Through the API an agent can be listed, read, created and improved as a draft, published, archived, proposed from a description (nothing is saved) and asked to do a task, which is asynchronous. Everything that uses AI spends the shared AI balance of the account, within the limits of the agent and the caps of the account. Tools that write (notes, tasks, opportunities, email drafts, connected apps) only write inside automations; in a run asked through the API they never write. Agents never delete, send emails or pay. Connecting external apps (MCP), uploading files and the account switch that lets agents search the internet are done in Easymailing, not through the API. Automations that use an agent are workflows (see Workflows)."
    },
    {
      "name": "Templates",
      "description": "Email designs you can assign to campaigns and automations: either your own HTML or a design built with the visual editor."
    },
    {
      "name": "Master templates",
      "description": "Base designs of your own account that you marked as master in the panel, to start new templates from."
    },
    {
      "name": "Themes",
      "description": "Ready-made email designs offered by Easymailing, with the types and industries to browse them, that you copy into your own templates."
    },
    {
      "name": "Brand settings",
      "description": "Brand styles of the account: colors, fonts, button style, logos and social links that give emails and landing pages their visual identity."
    },
    {
      "name": "Stores",
      "description": "Online stores (WooCommerce, Shopify, your own shop) connected to an audience, so their customers, products and orders can be tracked and used in automations."
    },
    {
      "name": "Product categories",
      "description": "Groupings of the products of a store (for example \"Shoes\"), used to organize the catalog."
    },
    {
      "name": "Products",
      "description": "The products of a store catalog. Orders refer to them through their variants."
    },
    {
      "name": "Product variants",
      "description": "The purchasable options of a product (size, color), each with its own price and stock. Orders list variants."
    },
    {
      "name": "Store customers",
      "description": "The buyers of a store. Each customer is tied to a member of the store's audience, so purchases can be used in segments and automations."
    },
    {
      "name": "Orders",
      "description": "Orders and carts of a store, with the steps of their life (cart, processed, paid, shipped, cancelled, refunded). Each step feeds revenue statistics and can start automations."
    },
    {
      "name": "Email senders",
      "description": "Email addresses that can appear as the sender (From) of campaigns. Each one must be confirmed by following a link sent to that address."
    },
    {
      "name": "SMS senders",
      "description": "Names that appear as the sender of SMS messages. Each one is validated before it can be used in SMS campaigns."
    },
    {
      "name": "Sending domains",
      "description": "Your own domains authenticated for sending (SPF/DKIM/DMARC records), so campaigns go out with your domain and better deliverability."
    },
    {
      "name": "Webhooks",
      "description": "Notifications Easymailing sends to your own server when something happens in an audience (a member subscribes, opens an email, joins a group...), with the log of what was sent."
    },
    {
      "name": "Privacy",
      "description": "Data protection (GDPR) settings shared by the audiences: who is responsible for the data (data managers) and why it is collected (treatment purposes)."
    },
    {
      "name": "Plan & usage",
      "description": "The plan of the account and how much of it is used: subscribers, credits, limits, AI cost and SMS credits."
    },
    {
      "name": "Invoices",
      "description": "Invoices Easymailing has issued to the account for its subscription."
    },
    {
      "name": "Support tickets",
      "description": "Requests for help sent to the Easymailing support team, and their replies, for the user making the call."
    },
    {
      "name": "Users and teams",
      "description": "The people who sign in to the account (users, also called members of the account; not the members of an audience) and the teams they are grouped in. Their `uuid` is the one every other operation uses for a person or a team: the owner of contacts, companies and opportunities, the assignee of tasks, and in workflows the approver, the recipients, the owner, the assignee and the `user` values of filters (also the `author` of a note filter). They are read here; inviting, deactivating and grouping people is done in Customer App."
    },
    {
      "name": "Batch operations",
      "description": "Many API calls sent at once and run in the background. Each call in the batch is checked against the permissions of the credential that created the batch. A batch belongs to the user who created it: only that user and an account administrator can read, delete or download it; for anyone else it does not exist (404). Batches created before this rule was introduced have no creator and stay visible to every credential of the account until they expire, 15 days after creation."
    },
    {
      "name": "Async tasks",
      "description": "Where to follow long operations that run in the background. The operations that return a task are in Groups and Segments; here you check how they went and download their file."
    }
  ],
  "webhooks": {
    "member_subscribed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member subscribed",
        "description": "Sent when a contact subscribes to the audience. `event_data.source` tells where the subscription came from and `subscription_form` the form used, if any.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_subscribed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "subscription_form": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source",
                        "subscription_form",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_unsubscribed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member unsubscribed",
        "description": "Sent when a member unsubscribes from the audience.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_unsubscribed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_added_to_group": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member added to group",
        "description": "Sent when a member is added to a group of the audience.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_added_to_group",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "group": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "suscriber_count": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "color": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "public": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "description",
                                "suscriber_count",
                                "color",
                                "public"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "member",
                        "group"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_removed_from_group": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member removed from group",
        "description": "Sent when a member is removed from a group of the audience.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_removed_from_group",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "group": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "suscriber_count": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "color": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "public": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "description",
                                "suscriber_count",
                                "color",
                                "public"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "member",
                        "group"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_campaign_opened": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member opened campaign",
        "description": "Sent when a member opens an email campaign. `first_time` is true on the first open of that member.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_campaign_opened",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "locale": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "opens": {
                          "type": "integer"
                        },
                        "first_time": {
                          "default": true,
                          "example": true,
                          "type": "boolean"
                        },
                        "user_agent": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "browser_version": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "os_version": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "device_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "browser_family": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "device_model": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "device_brand": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "device_family": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "os_family": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "code",
                                "browser_version",
                                "os_version",
                                "device_type",
                                "browser_family",
                                "device_model",
                                "device_brand",
                                "device_family",
                                "os_family"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "location": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "timezone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "lat": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "lng": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "city",
                                "postal_code",
                                "timezone",
                                "country_code",
                                "country",
                                "lat",
                                "lng"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "email",
                                  "example": "email",
                                  "type": "string"
                                },
                                "email_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "from_email": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "reply_to": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "enable_to_name": {
                                          "type": "boolean"
                                        },
                                        "to_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "subject": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "preview_text": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "from_name",
                                        "from_email",
                                        "reply_to",
                                        "enable_to_name",
                                        "to_name",
                                        "subject",
                                        "preview_text"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "clicks": {
                                          "type": "integer"
                                        },
                                        "unique_clicks": {
                                          "type": "integer"
                                        },
                                        "opens": {
                                          "type": "integer"
                                        },
                                        "unique_opens": {
                                          "type": "integer"
                                        },
                                        "complaints": {
                                          "type": "integer"
                                        },
                                        "soft_bounces": {
                                          "type": "integer"
                                        },
                                        "hard_bounces": {
                                          "type": "integer"
                                        },
                                        "unsubscriptions": {
                                          "type": "integer"
                                        },
                                        "delivered_rate": {
                                          "type": "number"
                                        },
                                        "open_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "bounce_rate": {
                                          "type": "number"
                                        },
                                        "complaint_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "clicks",
                                        "unique_clicks",
                                        "opens",
                                        "unique_opens",
                                        "complaints",
                                        "soft_bounces",
                                        "hard_bounces",
                                        "unsubscriptions",
                                        "delivered_rate",
                                        "open_rate",
                                        "click_rate",
                                        "bounce_rate",
                                        "complaint_rate"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "template_html": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "template": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "email_config",
                                "campaign_stats",
                                "template_html",
                                "send_to",
                                "template",
                                "list_segment",
                                "groups",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "ip",
                        "email",
                        "locale",
                        "opens",
                        "first_time",
                        "user_agent",
                        "location",
                        "created_at",
                        "member",
                        "campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_campaign_clicked": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member clicked campaign link",
        "description": "Sent when a member clicks a link of an email campaign.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_campaign_clicked",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "email",
                                  "example": "email",
                                  "type": "string"
                                },
                                "email_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "from_email": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "reply_to": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "enable_to_name": {
                                          "type": "boolean"
                                        },
                                        "to_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "subject": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "preview_text": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "from_name",
                                        "from_email",
                                        "reply_to",
                                        "enable_to_name",
                                        "to_name",
                                        "subject",
                                        "preview_text"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "clicks": {
                                          "type": "integer"
                                        },
                                        "unique_clicks": {
                                          "type": "integer"
                                        },
                                        "opens": {
                                          "type": "integer"
                                        },
                                        "unique_opens": {
                                          "type": "integer"
                                        },
                                        "complaints": {
                                          "type": "integer"
                                        },
                                        "soft_bounces": {
                                          "type": "integer"
                                        },
                                        "hard_bounces": {
                                          "type": "integer"
                                        },
                                        "unsubscriptions": {
                                          "type": "integer"
                                        },
                                        "delivered_rate": {
                                          "type": "number"
                                        },
                                        "open_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "bounce_rate": {
                                          "type": "number"
                                        },
                                        "complaint_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "clicks",
                                        "unique_clicks",
                                        "opens",
                                        "unique_opens",
                                        "complaints",
                                        "soft_bounces",
                                        "hard_bounces",
                                        "unsubscriptions",
                                        "delivered_rate",
                                        "open_rate",
                                        "click_rate",
                                        "bounce_rate",
                                        "complaint_rate"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "template_html": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "template": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "email_config",
                                "campaign_stats",
                                "template_html",
                                "send_to",
                                "template",
                                "list_segment",
                                "groups",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "url",
                        "ip",
                        "email",
                        "created_at",
                        "member",
                        "campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_campaign_delivered": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Campaign email delivered",
        "description": "Sent when the email of a campaign is delivered to a member.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_campaign_delivered",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "delivered_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "email",
                                  "example": "email",
                                  "type": "string"
                                },
                                "email_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "from_email": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "reply_to": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "enable_to_name": {
                                          "type": "boolean"
                                        },
                                        "to_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "subject": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "preview_text": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "from_name",
                                        "from_email",
                                        "reply_to",
                                        "enable_to_name",
                                        "to_name",
                                        "subject",
                                        "preview_text"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "clicks": {
                                          "type": "integer"
                                        },
                                        "unique_clicks": {
                                          "type": "integer"
                                        },
                                        "opens": {
                                          "type": "integer"
                                        },
                                        "unique_opens": {
                                          "type": "integer"
                                        },
                                        "complaints": {
                                          "type": "integer"
                                        },
                                        "soft_bounces": {
                                          "type": "integer"
                                        },
                                        "hard_bounces": {
                                          "type": "integer"
                                        },
                                        "unsubscriptions": {
                                          "type": "integer"
                                        },
                                        "delivered_rate": {
                                          "type": "number"
                                        },
                                        "open_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "bounce_rate": {
                                          "type": "number"
                                        },
                                        "complaint_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "clicks",
                                        "unique_clicks",
                                        "opens",
                                        "unique_opens",
                                        "complaints",
                                        "soft_bounces",
                                        "hard_bounces",
                                        "unsubscriptions",
                                        "delivered_rate",
                                        "open_rate",
                                        "click_rate",
                                        "bounce_rate",
                                        "complaint_rate"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "template_html": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "template": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "email_config",
                                "campaign_stats",
                                "template_html",
                                "send_to",
                                "template",
                                "list_segment",
                                "groups",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "message_id",
                        "email",
                        "delivered_at",
                        "member",
                        "campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_campaign_bounced": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Campaign email bounced",
        "description": "Sent when the email of a campaign bounces, as a hard or a soft bounce.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_campaign_bounced",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "category": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "email",
                                  "example": "email",
                                  "type": "string"
                                },
                                "email_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "from_email": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "reply_to": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "enable_to_name": {
                                          "type": "boolean"
                                        },
                                        "to_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "subject": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "preview_text": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "from_name",
                                        "from_email",
                                        "reply_to",
                                        "enable_to_name",
                                        "to_name",
                                        "subject",
                                        "preview_text"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "clicks": {
                                          "type": "integer"
                                        },
                                        "unique_clicks": {
                                          "type": "integer"
                                        },
                                        "opens": {
                                          "type": "integer"
                                        },
                                        "unique_opens": {
                                          "type": "integer"
                                        },
                                        "complaints": {
                                          "type": "integer"
                                        },
                                        "soft_bounces": {
                                          "type": "integer"
                                        },
                                        "hard_bounces": {
                                          "type": "integer"
                                        },
                                        "unsubscriptions": {
                                          "type": "integer"
                                        },
                                        "delivered_rate": {
                                          "type": "number"
                                        },
                                        "open_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "bounce_rate": {
                                          "type": "number"
                                        },
                                        "complaint_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "clicks",
                                        "unique_clicks",
                                        "opens",
                                        "unique_opens",
                                        "complaints",
                                        "soft_bounces",
                                        "hard_bounces",
                                        "unsubscriptions",
                                        "delivered_rate",
                                        "open_rate",
                                        "click_rate",
                                        "bounce_rate",
                                        "complaint_rate"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "template_html": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "template": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "email_config",
                                "campaign_stats",
                                "template_html",
                                "send_to",
                                "template",
                                "list_segment",
                                "groups",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "code",
                        "sub_code",
                        "type",
                        "category",
                        "description",
                        "member",
                        "campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_campaign_complained": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member reported campaign as spam",
        "description": "Sent when a member reports an email campaign as spam.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_campaign_complained",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "email",
                                  "example": "email",
                                  "type": "string"
                                },
                                "email_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "from_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "from_email": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "reply_to": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "enable_to_name": {
                                          "type": "boolean"
                                        },
                                        "to_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "subject": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "preview_text": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "from_name",
                                        "from_email",
                                        "reply_to",
                                        "enable_to_name",
                                        "to_name",
                                        "subject",
                                        "preview_text"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "clicks": {
                                          "type": "integer"
                                        },
                                        "unique_clicks": {
                                          "type": "integer"
                                        },
                                        "opens": {
                                          "type": "integer"
                                        },
                                        "unique_opens": {
                                          "type": "integer"
                                        },
                                        "complaints": {
                                          "type": "integer"
                                        },
                                        "soft_bounces": {
                                          "type": "integer"
                                        },
                                        "hard_bounces": {
                                          "type": "integer"
                                        },
                                        "unsubscriptions": {
                                          "type": "integer"
                                        },
                                        "delivered_rate": {
                                          "type": "number"
                                        },
                                        "open_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "bounce_rate": {
                                          "type": "number"
                                        },
                                        "complaint_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "clicks",
                                        "unique_clicks",
                                        "opens",
                                        "unique_opens",
                                        "complaints",
                                        "soft_bounces",
                                        "hard_bounces",
                                        "unsubscriptions",
                                        "delivered_rate",
                                        "open_rate",
                                        "click_rate",
                                        "bounce_rate",
                                        "complaint_rate"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "template_html": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "template": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "email_config",
                                "campaign_stats",
                                "template_html",
                                "send_to",
                                "template",
                                "list_segment",
                                "groups",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "email",
                        "provider",
                        "member",
                        "campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_automation_started": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member started automation",
        "description": "Sent when a member enters an automation.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_automation_started",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "started_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "automation_trigger": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "trigger_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "active": {
                                  "default": true,
                                  "example": true,
                                  "type": "boolean"
                                },
                                "workflow_repeat": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "trigger_type",
                                "active",
                                "workflow_repeat"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "automation": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "completed": {
                                          "type": "integer"
                                        },
                                        "in_queue": {
                                          "type": "integer"
                                        },
                                        "canceled": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "completed",
                                        "in_queue",
                                        "canceled"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "status",
                                "stats",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "started_at",
                        "automation_trigger",
                        "automation",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_automation_completed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member completed automation",
        "description": "Sent when a member reaches the end of an automation.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_automation_completed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "started_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "completed_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "automation_trigger": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "trigger_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "active": {
                                  "default": true,
                                  "example": true,
                                  "type": "boolean"
                                },
                                "workflow_repeat": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "trigger_type",
                                "active",
                                "workflow_repeat"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "automation": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "completed": {
                                          "type": "integer"
                                        },
                                        "in_queue": {
                                          "type": "integer"
                                        },
                                        "canceled": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "completed",
                                        "in_queue",
                                        "canceled"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "status",
                                "stats",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "started_at",
                        "completed_at",
                        "automation_trigger",
                        "automation",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_automation_cancelled": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member automation cancelled",
        "description": "Sent when the automation of a member is cancelled before it ends.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_automation_cancelled",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "started_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "cancelled_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "automation_trigger": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "trigger_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "active": {
                                  "default": true,
                                  "example": true,
                                  "type": "boolean"
                                },
                                "workflow_repeat": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "trigger_type",
                                "active",
                                "workflow_repeat"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "automation": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "completed": {
                                          "type": "integer"
                                        },
                                        "in_queue": {
                                          "type": "integer"
                                        },
                                        "canceled": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "completed",
                                        "in_queue",
                                        "canceled"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "status",
                                "stats",
                                "created_at",
                                "updated_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "started_at",
                        "cancelled_at",
                        "automation_trigger",
                        "automation",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_subscribed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member opted in to SMS",
        "description": "Sent when a contact opts in to SMS messages.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_subscribed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "subscription_form": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source",
                        "subscription_form",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_unsubscribed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member opted out of SMS",
        "description": "Sent when a contact opts out of SMS messages.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_unsubscribed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source",
                        "reason",
                        "member"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_delivered": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Campaign SMS delivered",
        "description": "Sent when the SMS of a campaign is delivered to a member.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_delivered",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "delivered_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sms_campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "sms",
                                  "example": "sms",
                                  "type": "string"
                                },
                                "sms_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "message": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "message",
                                        "sms_sender",
                                        "sms_sender_name"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sms_campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "failed": {
                                          "type": "integer"
                                        },
                                        "unsubscribed": {
                                          "type": "integer"
                                        },
                                        "clicked": {
                                          "type": "integer"
                                        },
                                        "replies": {
                                          "type": "integer"
                                        },
                                        "delivery_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "to_send": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "failed",
                                        "unsubscribed",
                                        "clicked",
                                        "replies",
                                        "delivery_rate",
                                        "click_rate",
                                        "to_send"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "hash": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "finished_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "sms_config",
                                "sms_campaign_stats",
                                "list_segment",
                                "groups",
                                "send_to",
                                "hash",
                                "created_at",
                                "updated_at",
                                "started_at",
                                "finished_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "message_id",
                        "phone",
                        "delivered_at",
                        "member",
                        "sms_campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_bounced": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Campaign SMS bounced",
        "description": "Sent when the SMS of a campaign cannot be delivered (hard bounce).\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_bounced",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sms_campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "sms",
                                  "example": "sms",
                                  "type": "string"
                                },
                                "sms_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "message": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "message",
                                        "sms_sender",
                                        "sms_sender_name"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sms_campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "failed": {
                                          "type": "integer"
                                        },
                                        "unsubscribed": {
                                          "type": "integer"
                                        },
                                        "clicked": {
                                          "type": "integer"
                                        },
                                        "replies": {
                                          "type": "integer"
                                        },
                                        "delivery_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "to_send": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "failed",
                                        "unsubscribed",
                                        "clicked",
                                        "replies",
                                        "delivery_rate",
                                        "click_rate",
                                        "to_send"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "hash": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "finished_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "sms_config",
                                "sms_campaign_stats",
                                "list_segment",
                                "groups",
                                "send_to",
                                "hash",
                                "created_at",
                                "updated_at",
                                "started_at",
                                "finished_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "status",
                        "code",
                        "description",
                        "message_id",
                        "member",
                        "sms_campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_clicked": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member clicked SMS link",
        "description": "Sent when a member clicks a link of an SMS campaign.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_clicked",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sms_campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "sms",
                                  "example": "sms",
                                  "type": "string"
                                },
                                "sms_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "message": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "message",
                                        "sms_sender",
                                        "sms_sender_name"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sms_campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "failed": {
                                          "type": "integer"
                                        },
                                        "unsubscribed": {
                                          "type": "integer"
                                        },
                                        "clicked": {
                                          "type": "integer"
                                        },
                                        "replies": {
                                          "type": "integer"
                                        },
                                        "delivery_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "to_send": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "failed",
                                        "unsubscribed",
                                        "clicked",
                                        "replies",
                                        "delivery_rate",
                                        "click_rate",
                                        "to_send"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "hash": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "finished_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "sms_config",
                                "sms_campaign_stats",
                                "list_segment",
                                "groups",
                                "send_to",
                                "hash",
                                "created_at",
                                "updated_at",
                                "started_at",
                                "finished_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "url",
                        "ip",
                        "phone",
                        "created_at",
                        "member",
                        "sms_campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "member_sms_replied": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Member replied to SMS",
        "description": "Sent when a contact replies to an SMS campaign. `stop_request` is true when the reply asks to stop receiving messages.\n\nSent to `marketing` webhooks subscribed to this event, for contacts of the webhook audience.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "member_sms_replied",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "message_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "body": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "stop_request": {
                          "type": "boolean"
                        },
                        "received_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "member": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "client_ip": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "rating": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "locale": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sms_opt_in_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_out_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "sms_opt_in_source": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "suscriber_count": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ]
                                      },
                                      "color": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "public": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "title",
                                      "description",
                                      "suscriber_count",
                                      "color",
                                      "public"
                                    ]
                                  }
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "list_field_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "list_field_id",
                                      "value"
                                    ]
                                  }
                                },
                                "member_consent": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "consent_at": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "format": "date-time"
                                        },
                                        "treatment_purposes": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "translations": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "translations"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "ip",
                                        "consent_at",
                                        "treatment_purposes"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "timezone": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "lat": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "lng": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "postal_code",
                                        "timezone",
                                        "country_code",
                                        "country",
                                        "lat",
                                        "lng"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "subscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "unsubscribed_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "email",
                                "status",
                                "source",
                                "client_ip",
                                "rating",
                                "locale",
                                "phone",
                                "first_name",
                                "last_name",
                                "sms_status",
                                "sms_opt_in_at",
                                "sms_opt_out_at",
                                "sms_opt_in_source",
                                "groups",
                                "custom_fields",
                                "member_consent",
                                "location",
                                "subscribed_at",
                                "unsubscribed_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sms_campaign": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "audience": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "channel": {
                                  "default": "sms",
                                  "example": "sms",
                                  "type": "string"
                                },
                                "sms_config": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "message": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "sms_sender_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "message",
                                        "sms_sender",
                                        "sms_sender_name"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sms_campaign_stats": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sent": {
                                          "type": "integer"
                                        },
                                        "delivered": {
                                          "type": "integer"
                                        },
                                        "failed": {
                                          "type": "integer"
                                        },
                                        "unsubscribed": {
                                          "type": "integer"
                                        },
                                        "clicked": {
                                          "type": "integer"
                                        },
                                        "replies": {
                                          "type": "integer"
                                        },
                                        "delivery_rate": {
                                          "type": "number"
                                        },
                                        "click_rate": {
                                          "type": "number"
                                        },
                                        "to_send": {
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "sent",
                                        "delivered",
                                        "failed",
                                        "unsubscribed",
                                        "clicked",
                                        "replies",
                                        "delivery_rate",
                                        "click_rate",
                                        "to_send"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "list_segment": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "groups": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "send_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "hash": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "created_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "updated_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "started_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                },
                                "finished_at": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "date-time"
                                }
                              },
                              "required": [
                                "id",
                                "audience",
                                "title",
                                "type",
                                "status",
                                "channel",
                                "sms_config",
                                "sms_campaign_stats",
                                "list_segment",
                                "groups",
                                "send_to",
                                "hash",
                                "created_at",
                                "updated_at",
                                "started_at",
                                "finished_at"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "message_id",
                        "body",
                        "stop_request",
                        "received_at",
                        "member",
                        "sms_campaign"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "marketing"
      }
    },
    "crm_contact_created": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Contact created",
        "description": "Sent when a contact is created, whatever the channel: the app, the public API, imports, forms or integrations. `event_data.record` is the contact as it was saved.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_contact_created",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "first_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "first_name",
                            "last_name",
                            "phone",
                            "owner_id",
                            "company_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_contact_updated": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Contact updated",
        "description": "Sent when fields or custom attributes of a contact change. `event_data.changed_fields` lists the changed fields of `record`; a custom attribute is listed as `attributes.<key>`. Changes to secondary emails and phones, tags and audience memberships do not send this event.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_contact_updated",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "first_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "first_name",
                            "last_name",
                            "phone",
                            "owner_id",
                            "company_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        },
                        "changed_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record",
                        "changed_fields"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_contact_deleted": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Contact deleted",
        "description": "Sent when a contact is deleted. `event_data.record` is the last representation of the contact before its deletion.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_contact_deleted",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record_type": {
                          "type": "string",
                          "const": "contact"
                        },
                        "record_id": {
                          "type": "string"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "first_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "first_name",
                            "last_name",
                            "phone",
                            "owner_id",
                            "company_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record_type",
                        "record_id",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_company_created": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Company created",
        "description": "Sent when a company is created, whatever the channel. `event_data.record` is the company as it was saved.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_company_created",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_company_updated": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Company updated",
        "description": "Sent when fields or custom attributes of a company change. `event_data.changed_fields` lists the changed fields of `record`; a custom attribute is listed as `attributes.<key>`. Changes to company domains do not send this event.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_company_updated",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        },
                        "changed_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record",
                        "changed_fields"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_company_deleted": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Company deleted",
        "description": "Sent when a company is deleted. `event_data.record` is the last representation of the company before its deletion.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_company_deleted",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record_type": {
                          "type": "string",
                          "const": "company"
                        },
                        "record_id": {
                          "type": "string"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record_type",
                        "record_id",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_opportunity_created": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Opportunity created",
        "description": "Sent when an opportunity is created, whatever the channel. `event_data.record` is the opportunity as it was saved.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_opportunity_created",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "pipeline_id": {
                              "type": "string"
                            },
                            "stage_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "amount": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "primary_contact_id": {
                              "description": "Contacto principal de la Oportunidad (uuid), `null` si no tiene Contactos.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "pipeline_id",
                            "stage_id",
                            "amount",
                            "currency",
                            "company_id",
                            "primary_contact_id",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_opportunity_updated": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Opportunity updated",
        "description": "Sent when fields or custom attributes of an opportunity change, its stage included. `event_data.changed_fields` lists the changed fields of `record`; a custom attribute is listed as `attributes.<key>`. A stage change also sends `crm_opportunity_stage_changed`, as a separate event with its own `id`. Changes to the contacts linked to the opportunity do not send this event.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_opportunity_updated",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "pipeline_id": {
                              "type": "string"
                            },
                            "stage_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "amount": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "primary_contact_id": {
                              "description": "Contacto principal de la Oportunidad (uuid), `null` si no tiene Contactos.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "pipeline_id",
                            "stage_id",
                            "amount",
                            "currency",
                            "company_id",
                            "primary_contact_id",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        },
                        "changed_fields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record",
                        "changed_fields"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_opportunity_deleted": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Opportunity deleted",
        "description": "Sent when an opportunity is deleted. `event_data.record` is the last representation of the opportunity before its deletion.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_opportunity_deleted",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "record_type": {
                          "type": "string",
                          "const": "opportunity"
                        },
                        "record_id": {
                          "type": "string"
                        },
                        "record": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "pipeline_id": {
                              "type": "string"
                            },
                            "stage_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "amount": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "primary_contact_id": {
                              "description": "Contacto principal de la Oportunidad (uuid), `null` si no tiene Contactos.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "pipeline_id",
                            "stage_id",
                            "amount",
                            "currency",
                            "company_id",
                            "primary_contact_id",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "record_type",
                        "record_id",
                        "record"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    },
    "crm_opportunity_stage_changed": {
      "post": {
        "responses": {
          "2XX": {
            "description": "Any 2XX status acknowledges the whole batch. A 404 or 410 deactivates the webhook. Any other status or a network error makes the batch be retried later, a limited number of times."
          }
        },
        "summary": "Opportunity stage changed",
        "description": "Sent when an opportunity moves to another stage or pipeline, also when its stage is deleted. `pipeline` is the pipeline it is in after the change. `previous_stage` is null when the opportunity had no stage, and `new_stage` is null when it is left without one because its stage was deleted. A stage `type` is `open`, `won` or `lost`. `actor.kind` is who made the change: `user`, `contact`, `automation`, `integration`, `system` or `external`; `actor.id` is null when there is no identifiable actor.\n\nSent to `crm` webhooks (account-wide, without audience) subscribed to this event.\n\nEasymailing sends the events in batches: the body is a JSON array of up to 100 events of the same webhook. Process them idempotently: an event can arrive more than once.",
        "parameters": [
          {
            "name": "Easymailing-Webhook-Id",
            "in": "header",
            "description": "Identifier of this delivery (UUID). Retries of the same batch keep it: use it to discard duplicates.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false
          },
          {
            "name": "Easymailing-Webhook-Signature",
            "in": "header",
            "description": "Signature of the request: `sha256=` followed by the hexadecimal HMAC-SHA256 of the raw request body, computed with the secret of the webhook. Compute it over the body exactly as received and compare it in constant time.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "schema": {
              "type": "string",
              "pattern": "^sha256=[0-9a-f]{64}$"
            },
            "style": "simple",
            "explode": false,
            "allowReserved": false,
            "example": "sha256=5d41402abc4b2a76b9719d911017c592ae2f8f0c6e4a7d5b9c1e3f2a4b6c8d0e"
          }
        ],
        "requestBody": {
          "description": "Batch of events.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Identifier of the event for this webhook: `/webhooks/{webhook_id}/webhook_events/{event_id}`. Unique per event and webhook; use it to discard duplicates.",
                      "example": "/webhooks/0d6e7a2b-6f4b-4f63-9a4e-3f1c2b9d8e71/webhook_events/6b1f0c8e-2d4a-4c3b-8e5f-9a7d1c2b3e4f"
                    },
                    "date": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the event was recorded (RFC 3339)."
                    },
                    "event_type": {
                      "type": "string",
                      "const": "crm_opportunity_stage_changed",
                      "description": "Type of the event."
                    },
                    "event_data": {
                      "type": "object",
                      "properties": {
                        "app_id": {
                          "type": "integer"
                        },
                        "contract_version": {
                          "default": 1,
                          "example": 1,
                          "type": "integer"
                        },
                        "opportunity": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "pipeline_id": {
                              "type": "string"
                            },
                            "stage_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "amount": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "company_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "primary_contact_id": {
                              "description": "Contacto principal de la Oportunidad (uuid), `null` si no tiene Contactos.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "owner_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Custom attribute values keyed by attribute key. Always a JSON object (`{}` when empty)."
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "pipeline_id",
                            "stage_id",
                            "amount",
                            "currency",
                            "company_id",
                            "primary_contact_id",
                            "owner_id",
                            "attributes",
                            "created_at",
                            "updated_at"
                          ]
                        },
                        "pipeline": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ]
                        },
                        "previous_stage": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "pipeline_id": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "pipeline_id",
                                "id",
                                "name",
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "new_stage": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "pipeline_id": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "pipeline_id",
                                "id",
                                "name",
                                "type"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "actor": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string"
                            },
                            "id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ]
                        },
                        "occurred_at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "app_id",
                        "contract_version",
                        "opportunity",
                        "pipeline",
                        "previous_stage",
                        "new_stage",
                        "actor",
                        "occurred_at"
                      ],
                      "description": "Data of the event."
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "event_type",
                    "event_data"
                  ]
                }
              }
            }
          },
          "required": true
        },
        "x-webhook-scope": "crm"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "CRM",
      "tags": [
        "Contacts",
        "Contact segments",
        "Contact filters",
        "Companies",
        "Company filters",
        "Opportunities",
        "Opportunity filters",
        "Pipelines",
        "Tasks",
        "Notes",
        "Files",
        "Emails",
        "Email drafts",
        "Email sends",
        "Email batches",
        "Email composing",
        "Email opt-outs",
        "Email sequences",
        "Meetings",
        "Booking pages",
        "Activity"
      ]
    },
    {
      "name": "CRM settings",
      "tags": [
        "Contact attributes",
        "Company attributes",
        "Opportunity attributes"
      ]
    },
    {
      "name": "Audiences",
      "tags": [
        "Audiences",
        "Members",
        "Groups",
        "Audience segments",
        "Custom fields",
        "Condition fields",
        "Merge tags"
      ]
    },
    {
      "name": "Forms & surveys",
      "tags": [
        "Subscription forms",
        "Surveys"
      ]
    },
    {
      "name": "Campaigns",
      "tags": [
        "Email campaigns",
        "SMS campaigns"
      ]
    },
    {
      "name": "Automations",
      "tags": [
        "Automations",
        "Automation triggers",
        "Automation steps",
        "Workflows",
        "AI agents"
      ]
    },
    {
      "name": "Design",
      "tags": [
        "Templates",
        "Master templates",
        "Themes",
        "Brand settings"
      ]
    },
    {
      "name": "Ecommerce",
      "tags": [
        "Stores",
        "Product categories",
        "Products",
        "Product variants",
        "Store customers",
        "Orders"
      ]
    },
    {
      "name": "Settings",
      "tags": [
        "Email senders",
        "SMS senders",
        "Sending domains",
        "Webhooks",
        "Privacy"
      ]
    },
    {
      "name": "Account",
      "tags": [
        "Plan & usage",
        "Invoices",
        "Support tickets",
        "Users and teams"
      ]
    },
    {
      "name": "Operations",
      "tags": [
        "Batch operations",
        "Async tasks"
      ]
    }
  ]
}
